Branch: Tag:

2002-09-05

2002-09-05 17:08:50 by H. William Welliver III <bill@welliver.org>

add catch to prevent search from bombing out when talking to active directory servers. this is not a good fix, as the cause seems to be referrer data.

this will need to be looked at more closely, but it at least allows us to talk to m$ systems.

Rev: lib/modules/Protocols.pmod/LDAP.pmod/client.pike:1.44

2:      // LDAP client protocol implementation for Pike.   // - // $Id: client.pike,v 1.43 2002/09/05 15:59:15 bill Exp $ + // $Id: client.pike,v 1.44 2002/09/05 17:08:50 bill Exp $   //   // Honza Petrous, hop@unibase.cz   //
160:    foreach(ar, string raw1) {    oder = (.ldap_privates.ldap_der_decode(raw1)->elements[1]);    attrs = (["dn":({ASN1_DECODE_DN(oder)})]); -  entry1 = ASN1_GET_ATTR_ARRAY(oder); +  if(catch(entry1 = ASN1_GET_ATTR_ARRAY(oder))) continue;    foreach(entry1, object attr1) {    attrs += ([ASN1_GET_ATTR_NAME(attr1):_get_attr_values(ldap_version, attr1)]);    }
360:    void create(string|void url, object|void context)    {    -  info = ([ "code_revision" : ("$Revision: 1.43 $"/" ")[1] ]); +  info = ([ "code_revision" : ("$Revision: 1.44 $"/" ")[1] ]);       if(!url || !sizeof(url))    url = LDAP_DEFAULT_URL;