From: Behruz R. <beh...@cp...> - 2001-03-23 18:47:02
|
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. Thanks again By the way how can you setup the PERL-LDAP to be V3 by default? Thanks and have a nice day. Behruz. -----Original Message----- From: Chris Ridd [mailto:chr...@me...] Sent: Friday, March 23, 2001 3:40 AM To: perl-ldap Cc: Behruz Rushenas Subject: Re: (no subject) Behruz Rushenas <beh...@cp...> wrote: > Hi Graham, > > First of all thanks for the great job on LDAP. > I have a question concerning an ldap attribute which contains special > caraters such as "#". > When I call the function entry->get( attribute_name), the value is > returned with some special caracter instead of #. > How can i fix that. > > Thanks. > Behruz. > > > Net::LDAP doesn't do any particular mangling of the results from the directory. They're just stored in scalars, which can hold arbitrary octets including NUL bytes etc. Perhaps your server is returning mangled results, or alternatively perhaps Perl is doing something odd perhaps in the area of Unicode handling. What version of LDAP are you specifying in the bind? Remember the default is v2. You can peek at the bytes the server's returning by creating the Net::LDAP object with debug set to 4 (see the documentation for Net::LDAP->new). Cheers, Chris |