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.79 2005/03/11 16:49:57 mast Exp $ + // $Id: client.pike,v 1.80 2005/03/13 13:21:17 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:475: 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.79 $"/" ")[1] ]); +  info = ([ "code_revision" : ("$Revision: 1.80 $"/" ")[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:810:    //!    //! @param attr    //! The type (aka name) of the attribute to compare.    //!    //! @param value    //! The value to compare with. It's UTF-8 encoded automatically if    //! the attribute syntax specifies that.    //!    //! @returns    //! Returns @expr{1@} if at least one of the values for the -  //! attribute in the directory is equal to @[value], @expr{0@} -  //! otherwise. +  //! attribute in the directory is equal to @[value], @expr{0@} if +  //! it didn't match or there was some error (use @[error_number] to +  //! find out).    //!    //! @note -  //! The API change: the returning code was changed in Pike 7.3+ -  //! to follow his logic better. +  //! This function has changed arguments since version 7.6. From +  //! 7.3 to 7.6 it was effectively useless since it always returned +  //! true.    //!    //! @note    //! The equality matching rule for the attribute governs the    //! comparison. There are attributes where the assertion syntax    //! used here isn't the same as the attribute value syntax.    int compare (string dn, string attr, string value) {       int id;    mixed raw;