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.89 2005/03/29 17:40:00 mast Exp $ + // $Id: client.pike,v 1.90 2005/04/02 19:12:19 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:110:    int ldap_scope = 0; // SCOPE_*    int ldap_deref = 0; // 0: ...    int ldap_sizelimit = 0;    int ldap_timelimit = 0;    mapping lauth = ([]);    object last_rv = 0; // last returned value    }      static constant supported_extensions = (<"bindname">);    + //! @ignore   static function(string:string) get_attr_decoder (string attr,    DO_IF_DEBUG (void|int nowarn))   {    if (mapping(string:mixed) attr_descr = get_attr_type_descr (attr)) {    if (function(string:string) decoder =    syntax_decode_fns[attr_descr->syntax_oid])    return decoder;   #ifdef DEBUG    else if (!get_constant_name (attr_descr->syntax_oid))    werror ("Warning: Unknown syntax %O for attribute %O - "    "binary content assumed.\n", attr_descr->syntax_oid, attr);   #endif    }   #ifdef DEBUG    else if (!nowarn && !has_suffix (attr, ";binary") && !has_value (attr, ";binary;"))    werror ("Warning: Couldn't fetch attribute description for %O - "    "binary content assumed.\n", attr);   #endif    return 0;   } -  + //! @endignore      static function(string:string) get_attr_encoder (string attr)   {    if (mapping(string:mixed) attr_descr = get_attr_type_descr (attr)) {    if (function(string:string) encoder =    syntax_encode_fns[attr_descr->syntax_oid])    return encoder;   #ifdef DEBUG    else if (!get_constant_name (attr_descr->syntax_oid))    werror ("Warning: Unknown syntax %O for attribute %O - "
pike.git/lib/modules/Protocols.pmod/LDAP.pmod/client.pike:488: Inside #if undefined(PARSE_RFCS)
   //! 2255.    //!    //! @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.89 $"/" ")[1] ]); +  info = ([ "code_revision" : ("$Revision: 1.90 $"/" ")[1] ]);       if(!url || !sizeof(url))    url = LDAP_DEFAULT_URL;       lauth = parse_url(url);       if(!stringp(lauth->scheme) ||    ((lauth->scheme != "ldap")   #if constant(SSL.Cipher.CipherAlgorithm)    && (lauth->scheme != "ldaps")
pike.git/lib/modules/Protocols.pmod/LDAP.pmod/client.pike:1886:    //! The mapping of attributes with requested operation and attribute's    //! values.    //!    //! @code    //! attropval=([ attribute: ({operation, value1, value2, ...}) ])    //! @endcode    //!    //! Where operation is one of the following:    //!    //! @dl -  //! @item Protocols.LDAP.MODIFY_ADD (0) +  //! @item Protocols.LDAP.MODIFY_ADD    //! Add values listed to the given attribute, creating the    //! attribute if necessary. -  //! @item Protocols.LDAP.MODIFY_DELETE (1) +  //! @item Protocols.LDAP.MODIFY_DELETE    //! Delete values listed from the given attribute, removing the    //! entire attribute if no values are listed, or if all current    //! values of the attribute are listed for deletion. -  //! @item Protocols.LDAP.MODIFY_REPLACE (2) +  //! @item Protocols.LDAP.MODIFY_REPLACE    //! Replace all existing values of the given attribute with the    //! new values listed, creating the attribute if it did not    //! already exist. A replace with no value will delete the entire    //! attribute if it exists, and is ignored if the attribute does    //! not exist.    //! @enddl    //!    //! Values that are sent UTF-8 encoded according the the attribute    //! syntaxes are encoded automatically.    //!