On 16/1/04 5:57 pm, D.Kreft <[EMAIL PROTECTED]> wrote: > Are there any known issues of ActiveDirectory ignoring the 'attr' argument > of search() in Net::LDAP v.0.2701? I've got a script in which I'm talking to > an AD server and I say this: > > my $base = "OU=Foo,DC=Bar,DC=blah,DC=eek"; > my $scope = "sub"; > my $filter = "CN=*"; > my $attributes = ['description', 'cn']; > > my $msg = $ldap->search(base => $base, > scope => $scope, > filter => $filter, > attr => $attributes); > > > But what is returned is all the records I'm lookin for, with *all* > attributes, not just 'description' and 'cn'. > > Any tips?
Add has an attr argument, search has an attrs argument. Try removing the 's' ;-) Cheers, Chris
