The way the get function in perl-ldap worked was changed in .20.
It use to return the attribute value directly, so:
$cn = $entry->get(`cn`);
might return "Mike Hickey" in the older versions, it will now return 
ARRAY(0xsomememaddress).


To get the value directly now, you have to do:
$cn = $entry->get(`cn`)->[0];
which will suck the first value out of the array.

AuthLDAP2.pm v1.10
Line 385 is:
my @vals=$ent->get($attr);
should be:
my @vals=$ent->get($attr)->[0];

Sorry - One day I'll learn how to use patch :-)


Mike

===
Archive at http://www.starport.net/~radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.

Reply via email to