Branch: Tag:

2005-04-20

2005-04-20 15:20:22 by Martin Stjernholm <mast@lysator.liu.se>

The paged result control should be optional in the first search query and
critical in the rest, not the other way around. This fixes servers that
don't support paged queries in the whole tree.

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

2:      // LDAP client protocol implementation for Pike.   // - // $Id: client.pike,v 1.95 2005/04/07 18:36:15 mast Exp $ + // $Id: client.pike,v 1.96 2005/04/20 15:20:22 mast Exp $   //   // Honza Petrous, hop@unibase.cz   //
309:    resultstring = 0;    else if (ldap_version >= 3)    resultstring = utf8_to_string (resultstring); -  DWRITE(sprintf("result.create: str=%s\n",resultstring)); +  DWRITE(sprintf("result.create: str=%O\n",resultstring));   #ifdef V3_REFERRALS    // referral (v3 mode)    if(resultcode == 10) {
560: Inside #if undefined(PARSE_RFCS)
   void create(string|mapping(string:mixed)|void url, object|void context)    {    -  info = ([ "code_revision" : ("$Revision: 1.95 $"/" ")[1] ]); +  info = ([ "code_revision" : ("$Revision: 1.96 $"/" ")[1] ]);       if(!url || !sizeof(url))    url = LDAP_DEFAULT_URL;
1384:    Standards.ASN1.Types.asn1_integer(0x7fffffff),    cookie, // cookie    }))->get_der(), -  sizeof(cookie->value)?0:0xff)}); +  sizeof(cookie->value))});    },);    object controls;    if (sizeof(ctrls)) {