From: Diffenderfer, R. <ran...@ed...> - 2001-01-17 16:33:33
|
Folks, I have run across an "unexpected result" while using the perl-ldap library, v 0.22. The code looks something like this... use Net::LDAP; $ldap = Net::LDAP->new(...); $entry = Net::LDAP::Entry->new(); $entry->dn( $dn ); $entry->add( ... 'foo' => $foo, ... ); $rc = $ldap->add( $entry ); What the problem is, though, is if "$foo" = " foo" (a leading blank character), then the resulting directory entry attribute 'foo' ends up being hosed in mysterious ways, with "bizarre" contents, e.g. "IEFxyz==" (or something like that...). If "$foo" = "foo" (without a leading blank character), everything works as expected. Can you tell me what is going on here, and whether it is "expected" or not? Thank you, Randy Diffenderfer ran...@ed... |