From: Chris R. <chr...@me...> - 2001-03-28 08:53:34
|
Behruz Rushenas <beh...@cp...> wrote: > > Thanks Chris, > > Your questions helped me to figure out where was the problem. You are > right by the default it use the LDAP V2. so what I did, i specified > during the bind operation version=>3 and that solved my problem. Was the server sending back mangled values in the LDAPv2 case? In other words, do you think this is a bug in Net::LDAP :-) > Thanks again > > By the way how can you setup the PERL-LDAP to be V3 by default? There's no way to set the default using the API, but basically you could do something like this: $Net::LDAP::LDAP_VERSION = 3; in your code, before binding. Doing this would mean your code could break in future Net::LDAP releases, as this variable is not public. It seems to me better simply to specify the LDAP version you want when you bind - you are cleanly specifying what you want using a public API. > Thanks and have a nice day. > Behruz. Cheers, Chris |