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.38 2002/07/12 13:35:56 hop Exp $ + // $Id: client.pike,v 1.39 2002/07/12 14:39:08 manual 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:351:    //! @tt{"ldap://hostname/basedn?attrlist?scope?ext"@}    //!    //! @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.38 $"/" ")[1] ]); +  info = ([ "code_revision" : ("$Revision: 1.39 $"/" ")[1] ]);       if(!url || !sizeof(url))    url = LDAP_DEFAULT_URL;       lauth = parse_url(url);       if(!stringp(lauth->scheme) ||    ((lauth->scheme != "ldap") && (lauth->scheme != "ldaps"))) {    THROW(({"Unknown scheme in server URL.\n",backtrace()}));    }
pike.git/lib/modules/Protocols.pmod/LDAP.pmod/client.pike:1258:    last_rv = result(({raw}));    DWRITE_HI(sprintf("client.MODIFY: %s\n", last_rv->error_string()));    seterr (last_rv->error_number());    return (!last_rv->error_number());       } // modify       //! Gets referrals.    //!    //! @returns -  //! Returns mapping of referrals or @tt[0@]. +  //! Returns mapping of referrals or @tt{0@}.    mapping|int get_referrals() {    if(last_rv->referrals)    return last_rv->referrals;    return 0;    }       //! @param ldapuri    //! LDAP URL    mapping|int parse_url (string ldapuri) {