pike.git / lib / modules / Protocols.pmod / LDAP.pmod / client.pike

version» Context lines:

pike.git/lib/modules/Protocols.pmod/LDAP.pmod/client.pike:1:   #pike __REAL_VERSION__      // LDAP client protocol implementation for Pike.   // - // $Id: client.pike,v 1.82 2005/03/14 16:19:10 mast Exp $ + // $Id: client.pike,v 1.83 2005/03/23 18:18:37 mast Exp $   //   // Honza Petrous, hop@unibase.cz   //   // ----------------------------------------------------------------------   //   // History:   //   // v0.0 1998-05-25 Starting up!   // v1.0 1998-06-21 Core functions (open, bind, unbind, delete, add,   // compare, search), only V2 operations,
pike.git/lib/modules/Protocols.pmod/LDAP.pmod/client.pike:387:    void first() { actnum = 0; }       //!    //! Moves the result cursor to the next entry    //! in the result list. Returns number of remained entries    //! in the result list. Returns 0 at the end.    //!    //! @seealso    //! @[LDAP.client.result.next]    int next() { -  if (actnum < (num_entries()-1)) { +  if (actnum < sizeof (entry))    actnum++;    return count_entries();    } -  return 0; -  } +        array(mapping(string:array(string))) fetch_all()    //! Convenience function to fetch all entries at once. The cursor    //! isn't affected.    //!    //! @returns    //! Returns an array where each element is the entry from the    //! result. Don't be destructive on the returned value.    //!    //! @seealso
pike.git/lib/modules/Protocols.pmod/LDAP.pmod/client.pike:484: Inside #if undefined(PARSE_RFCS)
   //! 2255.    //!    //! @param context    //! TLS context of connection    //!    //! @seealso    //! @[LDAP.client.bind], @[LDAP.client.search]    void create(string|void url, object|void context)    {    -  info = ([ "code_revision" : ("$Revision: 1.82 $"/" ")[1] ]); +  info = ([ "code_revision" : ("$Revision: 1.83 $"/" ")[1] ]);       if(!url || !sizeof(url))    url = LDAP_DEFAULT_URL;       lauth = parse_url(url);       if(!stringp(lauth->scheme) ||    ((lauth->scheme != "ldap")   #if constant(SSL.Cipher.CipherAlgorithm)    && (lauth->scheme != "ldaps")