Branch: Tag:

2005-03-24

2005-03-24 14:57:12 by Martin Stjernholm <mast@lysator.liu.se>

Ensure that parse_url always sets basedn.

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

2:      // LDAP client protocol implementation for Pike.   // - // $Id: client.pike,v 1.87 2005/03/24 14:49:17 mast Exp $ + // $Id: client.pike,v 1.88 2005/03/24 14:57:12 mast Exp $   //   // Honza Petrous, hop@unibase.cz   //
487: Inside #if undefined(PARSE_RFCS)
   void create(string|void url, object|void context)    {    -  info = ([ "code_revision" : ("$Revision: 1.87 $"/" ")[1] ]); +  info = ([ "code_revision" : ("$Revision: 1.88 $"/" ")[1] ]);       if(!url || !sizeof(url))    url = LDAP_DEFAULT_URL;
556:       if(lauth->scope)    set_scope(lauth->scope); -  if(lauth->basedn) +     set_basedn(lauth->basedn);       } // create
2029:    case 2: if (sizeof(ar[1])) res->attributes =    map (ar[1] / ",", _Roxen.http_decode_string);    case 1: res->basedn = _Roxen.http_decode_string (ar[0]); +  break; +  default: res->basedn = "";    }       return res;