Hi,
On Tuesday 24 August 2004 02:05, Drue Reeves wrote:
> 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);
Try
attrs => [EMAIL PROTECTED]
or
attrs => [ @attr ]
attrs needs an array reference as value.
Peter
--
Peter Marschall
eMail: [EMAIL PROTECTED]