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.30 2001/11/02 08:59:32 hop Exp $ + // $Id: client.pike,v 1.31 2001/11/05 00:50:54 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:234:    int num_entries() { return(entrycnt); }       //!    //! Returns the number of entries from current cursor    //! possition till end of the list.    //!    //! @seealso    //! @[LDAP.client.result.first], @[LDAP.client.result.next]    int count_entries() { return(entrycnt - actnum); }    -  //! @decl mapping(string:array(string)) fetch() -  //! @decl mapping(string:array(string)) fetch(int index) -  //! +     //! Returns a mapping with an entry for each attribute.    //! Each entry is an array of values of the attribute.    //!    //! @param index    //! Optional argument can be used for direct access    //! to the entry other then currently pointed by cursor.    int|mapping(string:array(string)) fetch(int|void idx) {       if (!idx)    idx = actnum + 1;
pike.git/lib/modules/Protocols.pmod/LDAP.pmod/client.pike:345:    //! @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.30 $"/" ")[1] ]); +  info = ([ "code_revision" : ("$Revision: 1.31 $"/" ")[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:629:       msgval = ASN1_APPLICATION_SEQUENCE(8,    ({Standards.ASN1.Types.asn1_octet_string(dn),    Standards.ASN1.Types.asn1_sequence(oatt)    }));       return (do_op(msgval));    }       -  //! @decl add(dn, mapping(string:array(string))) -  //! +     //! 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.    //!
pike.git/lib/modules/Protocols.pmod/LDAP.pmod/client.pike:1088:    Standards.ASN1.Types.asn1_boolean(deleteoldrdn)    });    if(newsuperior)    seq+=({Standards.ASN1.Types.asn1_octet_string(newsuperior)});       msgval = ASN1_APPLICATION_SEQUENCE(12, seq);       return (do_op(msgval));    }    -  //! @decl modifydn(string, string, int) -  //! @decl modifydn(string, string, int, string) -  //! +     //! The Modify DN Operation allows a client to change the leftmost    //! (least significant) component of the name of an entry in the directory,    //! or to move a subtree of entries to a new location in the directory.    //!    //! @param dn    //! DN of source object    //!    //! @param newrdn    //! RDN of destination    //!
pike.git/lib/modules/Protocols.pmod/LDAP.pmod/client.pike:1138:    THROW(({error_string()+"\n",backtrace()}));    return(-ldap_errno);    }       rv = result(({raw}));    DWRITE_HI(sprintf("client.MODIFYDN: %s\n", rv->error_string()));    return (seterr (rv->error_number()));       } //modifydn    -  //! @decl modify(string, mapping(string:array(mixed))) -  //! +     //! The Modify Operation allows a client to request that a modification    //! of an entry be performed on its behalf by a server.    //!    //! @param dn    //! The distinguished name of modified entry.    //!    //! @param attropval    //! The mapping of attributes with requested operation and attribute's    //! values.    //!