Has anyone had problems with Search using an array to list the attributes returned?
 
Quick snippet...this works but returns all attributes, regardless of contents of the 
array.
 
@attr = ("cn", "surname");
$entry = $ldap->search(base => "$opt{b}", 
                             scope => "$opt{s}",
                             filter => "$search",
                             attrs => @attr);
 
 
However, if I do this:
 
$attr = [ 'cn','surname' ];
$entry = $ldap->search(base => "$opt{b}", 
                             scope => "$opt{s}",
                             filter => "$search",
                             attrs => $attr);
 
Then I get just the CN and the Surname.
 
Anyone have any ideas? This is just nuts.
 
Thank you in advance.
 
Drue

Reply via email to