Fix get_dn function
This commit is contained in:
parent
00c62bf8de
commit
745be49652
@ -124,7 +124,7 @@ sub get_dn($$@)
|
|||||||
my $mesg = $ldap->search( # search
|
my $mesg = $ldap->search( # search
|
||||||
base => "$dn",
|
base => "$dn",
|
||||||
filter => "(objectClass=*)",
|
filter => "(objectClass=*)",
|
||||||
attrs => @_,
|
attrs => \@_,
|
||||||
scope => "sub"
|
scope => "sub"
|
||||||
);
|
);
|
||||||
if ($mesg->code != 0) { log(WARN, $mesg->error); return undef; }
|
if ($mesg->code != 0) { log(WARN, $mesg->error); return undef; }
|
||||||
|
Reference in New Issue
Block a user