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.101 2006/06/22 15:39:23 mast Exp $ + // $Id: client.pike,v 1.102 2006/11/04 19:06:49 nilsson 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:591: Inside #if undefined(PARSE_RFCS)
   //! @[Protocol.LDAP.parse_ldap_url].    //!    //! @param context    //! TLS context of connection    //!    //! @seealso    //! @[LDAP.client.bind], @[LDAP.client.search]    void create(string|mapping(string:mixed)|void url, object|void context)    {    -  info = ([ "code_revision" : ("$Revision: 1.101 $"/" ")[1] ]); +  info = ([ "code_revision" : ("$Revision: 1.102 $"/" ")[1] ]);       if(!url || !sizeof(url))    url = LDAP_DEFAULT_URL;       if (mappingp (url))    lauth = url;    else    lauth = parse_ldap_url(url);       if(!stringp(lauth->scheme) ||
pike.git/lib/modules/Protocols.pmod/LDAP.pmod/client.pike:1484:    control_info->elements[1]->type_name != "OCTET STRING") {    // Unexpected control information.    continue;    }    if (sizeof(control_info->elements[1]->value)) {    cookie = control_info->elements[1];    }    }    if (cookie) {    // Remove the extra end marker. -  rawarr = rawarr[..sizeof(rawarr)-2]; +  rawarr = rawarr[..<1];    }    }       },);    } while (cookie);       PROFILE("result", last_rv = result (rawarr, 0, flags));    if(objectp(last_rv))    seterr (last_rv->error_number(), last_rv->error_string());    //if (rv->error_number() || !rv->num_entries()) // if error or entries=0