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.87 2005/03/24 14:49:17 mast Exp $ + // $Id: client.pike,v 1.88 2005/03/24 14:57:12 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:480: 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.87 $"/" ")[1] ]); +  info = ([ "code_revision" : ("$Revision: 1.88 $"/" ")[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")
pike.git/lib/modules/Protocols.pmod/LDAP.pmod/client.pike:549:       DWRITE("client.create: connected!\n");       DWRITE(sprintf("client.create: remote = %s\n", low_fd->query_address()));    DWRITE_HI("client.OPEN: " + lauth->host + ":" + (string)(lauth->port) + " - OK\n");       binded = 0;       if(lauth->scope)    set_scope(lauth->scope); -  if(lauth->basedn) +     set_basedn(lauth->basedn);       } // create   #endif       private mixed send_bind_op(string name, string password) {    // Simple BIND operation       object msgval, vers, namedn, auth, app;    string pass = password;
pike.git/lib/modules/Protocols.pmod/LDAP.pmod/client.pike:2022:    }    res->ext = extensions;    }    case 4: res->filter = _Roxen.http_decode_string (ar[3]);    case 3: res->scope = (["base": SCOPE_BASE,    "one": SCOPE_ONE,    "sub": SCOPE_SUB])[ar[2]];    case 2: if (sizeof(ar[1])) res->attributes =    map (ar[1] / ",", _Roxen.http_decode_string);    case 1: res->basedn = _Roxen.http_decode_string (ar[0]); +  break; +  default: res->basedn = "";    }       return res;       } //parse_uri         // Schema handling.      static mapping(string:array(string)) query_subschema (string dn,