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.95 2005/04/07 18:36:15 mast Exp $ + // $Id: client.pike,v 1.96 2005/04/20 15:20:22 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:302:    DWRITE(sprintf("result.create: rawres=%O\n",rawres[lastel]));       // The last element of 'rawres' is result itself    resultcode = ASN1_DECODE_RESULTCODE(rawres[lastel]);    DWRITE(sprintf("result.create: code=%d\n",resultcode));    resultstring = ASN1_DECODE_RESULTSTRING(rawres[lastel]);    if (resultstring == "")    resultstring = 0;    else if (ldap_version >= 3)    resultstring = utf8_to_string (resultstring); -  DWRITE(sprintf("result.create: str=%s\n",resultstring)); +  DWRITE(sprintf("result.create: str=%O\n",resultstring));   #ifdef V3_REFERRALS    // referral (v3 mode)    if(resultcode == 10) {    referrals = ({});    foreach(ASN1_DECODE_RESULTREFS(rawres[lastel]), object ref1)    referrals += ({ ref1->value });    DWRITE(sprintf("result.create: refs=%O\n",referrals));    }   #endif    DWRITE(sprintf("result.create: elements=%d\n",lastel+1));
pike.git/lib/modules/Protocols.pmod/LDAP.pmod/client.pike:553: 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.95 $"/" ")[1] ]); +  info = ([ "code_revision" : ("$Revision: 1.96 $"/" ")[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:1377:    // LDAP Control Extension for Simple Paged Results Manipulation    // RFC 2696.    ctrls += ({make_control (    LDAP_PAGED_RESULT_OID_STRING,    Standards.ASN1.Types.asn1_sequence(    ({    // size    Standards.ASN1.Types.asn1_integer(0x7fffffff),    cookie, // cookie    }))->get_der(), -  sizeof(cookie->value)?0:0xff)}); +  sizeof(cookie->value))});    },);    object controls;    if (sizeof(ctrls)) {    controls = .ldap_privates.asn1_sequence(0, ctrls);    }       if(intp(raw = do_op(search_request, controls))) {    THROW(({error_string()+"\n",backtrace()}));    return 0;    }