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.39 2002/07/12 14:39:08 manual Exp $ + // $Id: client.pike,v 1.40 2002/07/13 16:45:24 hop 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.39 $"/" ")[1] ]); +  info = ([ "code_revision" : ("$Revision: 1.40 $"/" ")[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:450:    //! @param password    //! Password used for authentication.    //!    //! Third form allows specify the version of LDAP protocol used    //! by connection to the LDAP server.    //!    //! @param version    //! Only @tt{2@} or @tt{3@} can be entered.    //!    //! @returns -  //! Returns @tt{1@} on uccess, @tt{0@} otherwise. +  //! Returns @tt{1@} on success, @tt{0@} otherwise.    //!    //! @note    //! Only simple authentication type is implemented. So be warned    //! clear text passwords are sent to the directory server.    //!    //! @note    //! The API change: the returning code was changed in Pike 7.3+    //! to follow his logic better.    int bind (string|void dn, string|void password, int|void version) {   
pike.git/lib/modules/Protocols.pmod/LDAP.pmod/client.pike:534:    return (do_op(ASN1_APPLICATION_OCTET_STRING(op, dn)));       }       //!    //! Deletes entry from the LDAP server.    //!    //! @param dn    //! The distinguished name of deleted entry.    //! +  //! @returns +  //! Returns @tt{1@} on success, @tt{0@} otherwise. +  //!    //! @note    //! The API change: the returning code was changed in Pike 7.3+    //! to follow his logic better.    int delete (string dn) {       int id;    mixed raw;       if (chk_ver())    return(0);
pike.git/lib/modules/Protocols.pmod/LDAP.pmod/client.pike:590:       //!    //! Compares given attribute value with one in the directory.    //!    //! @param dn    //! The distinguished name of compared entry.    //!    //! @param aval    //! The mapping of compared attributes and theirs values.    //! +  //! @returns +  //! Returns @tt{1@} on success, @tt{0@} otherwise. +  //!    //! @note    //! The API change: the returning code was changed in Pike 7.3+    //! to follow his logic better.    int compare (string dn, array(string) aval) {       int id;    mixed raw;       // if (!aval || sizeof(aval)<2)    // error
pike.git/lib/modules/Protocols.pmod/LDAP.pmod/client.pike:661:    //! The Add Operation allows a client to request the addition    //! of an entry into the directory    //!    //! @param dn    //! The Distinguished Name of the entry to be added.    //!    //! @param attrs    //! The mapping of attributes and their values that make up the content    //! of the entry being added.    //! +  //! @returns +  //! Returns @tt{1@} on success, @tt{0@} otherwise. +  //!    //! @note    //! The API change: the returning code was changed in Pike 7.3+    //! to follow his logic better.    int add (string dn, mapping(string:array(string)) attrs) {       int id;    mixed raw;       if (chk_ver())    return(0);
pike.git/lib/modules/Protocols.pmod/LDAP.pmod/client.pike:1157:    //!    //! @param deleteoldrdn    //! The parameter controls whether the old RDN attribute values    //! are to be retained as attributes of the entry, or deleted    //! from the entry.    //!    //! @param newsuperior    //! If present, this is the Distinguished Name of the entry    //! which becomes the immediate superior of the existing entry.    //! +  //! @returns +  //! Returns @tt{1@} on success, @tt{0@} otherwise. +  //!    //! @note    //! The API change: the returning code was changed in Pike 7.3+    //! to follow his logic better.    int modifydn (string dn, string newrdn, int deleteoldrdn,    string|void newsuperior) {       mixed raw;       if (chk_ver())    return(0);