pike.git / lib / modules / Protocols.pmod / LDAP.pmod / client.pike

version» Context lines:

pike.git/lib/modules/Protocols.pmod/LDAP.pmod/client.pike:1:   // LDAP client protocol implementation for Pike.   // - // $Id: client.pike,v 1.4 1999/08/27 21:55:03 grubba Exp $ + // $Id: client.pike,v 1.13 2000/02/12 10:57:02 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:37:   // (ASN.1 LDAP-related classes and hacks)   // - changed default of 'ldap_scope' to 0   // - search filter now correctly processed '\(' & '\)'   // [! Still unimplemented escaped conditions chars!]   //   // v1.10 1999-03-28 - moved core to the new 'protocol' code   // 1999-03-28 - rewritten ldap_[op] startup code   //   // v1.11 1999-04-10 - search filter now processed multiple wild '*' chars   // [ Escaping untested, yet ] + // v1.13 2000-02-12 - fixed search NOT op bug (end revision normalized)   //   // Specifications:   //   // RFC 1558 (search filter representations)   // RFC 1777,1778,1779 (version2 spec)   // RFC 1823 (v2 API)   // RFC 2251,2252,2253,2254,2255,2256 (version3 spec)   // draft-ietf-asid-ldap-c-api-00.txt (v3 API)   // RFC2279 (UTF-8)   //
pike.git/lib/modules/Protocols.pmod/LDAP.pmod/client.pike:653:    else    return(0); // error: Filter parameter error!    DWRITE(sprintf("client.make_filter: expr_cnt=%d\n",sizeof(oarr)));    //ohlp = Standards.ASN1.Encode.asn1_set(@oarr);    op = 0;    if (filter[0] == '|')    op = 1;    return(ASN1_CONTEXT_SET(op, oarr));    case '!': // not    if (objectp(ohlp = make_filter(filter_get_sub1expr(filter[1..])[0]))) -  return(ASN1_CONTEXT_SEQUENCE(2, ohlp)); +  return(ASN1_CONTEXT_SEQUENCE(2, ({ ohlp}) ));    else    return(0); // error: Filter parameter error!    break;    default : // we assume simple filter    return(make_simple_filter(filter));    }   }       private int|string send_search_op(string basedn, int scope, int deref,    int sizelimit, int timelimit, int attrsonly,