|
From: Graham B. <gb...@po...> - 2000-05-18 16:53:32
|
On Thu, May 18, 2000 at 09:36:12AM -0700, Paul Heinlein wrote:
> On Thu, 18 May 2000, Neil Betty wrote:
>
> > my $mesg = $ldap->search ( # perform a search
> > base => $base,
> > #scope => "sub",
> > filter => '(&(cn=neil*)(sn=b*)',
> > attrs => ['cn','mail','Extension-Attribute-1',
> > 'Extension-Attribute-3','department',
> > 'Extension-Name']
> > );
>
> Don't know how relevant this is, but it seems to me that a final paren is
> missing from your search filter.
Ah, there was a bug in that release in Net::LDAP::Filter
$f = Net::LDAP::Filter->new('(&(cn=neil*)(sn=b*)') or die;
print $f->as_string,"\n";
(&(cn=neil*)(sn=b*))
However, the version in 0.17 is worse, it gives
(cn=neil*)
It should of course flag an error, then ->search() would return
with an error of LDAP_PARAM_ERROR
Fix coming soon...
Graham.
|