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.81 2005/03/14 16:07:23 mast Exp $ + // $Id: client.pike,v 1.82 2005/03/14 16:19:10 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:343:    //! This special entry contains the object name of the entry as    //! a distinguished name.    //! @endmapping    //!    //! Zero is returned if the cursor is outside the valid range of    //! entries.    //!    //! @note    //! Don't be destructive on the returned mapping.    //! +  //! @note +  //! In Pike 7.6 and earlier, the special @expr{"dn"@} entry was +  //! incorrectly returned in UTF-8 encoded form for LDAPv3 +  //! connections. +  //!    //! @seealso    //! @[fetch_all]    int|mapping(string:array(string)) fetch(int|void idx) {       if (!idx)    idx = actnum + 1;    if ((idx <= num_entries()) && (idx > 0)) {    actnum = idx - 1;    return entry[actnum];    }    return 0;    }       //!    //! Returns distinguished name (DN) of the current entry    //! in the result list. Notice that this is the same -  //! as fetch()->dn[0]. +  //! as @expr{fetch()->dn[0]@}. +  //! +  //! @note +  //! In Pike 7.6 and earlier, this field was incorrectly returned +  //! in UTF-8 encoded form for LDAPv3 connections.    string get_dn() { return fetch()["dn"][0]; }       //!    //! Initialized the result cursor to the first entry    //! in the result list.    //!    //! @seealso    //! @[LDAP.client.result.next]    void first() { actnum = 0; }   
pike.git/lib/modules/Protocols.pmod/LDAP.pmod/client.pike:475: 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.81 $"/" ")[1] ]); +  info = ([ "code_revision" : ("$Revision: 1.82 $"/" ")[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")