I run this command and I get the expected result: ldapsearch -h 10.19.15.50 -x -b ou=addresslist,ou=test,ou=cfmrs,ou=sftaccess,o=sft -s one dn
I then try to emulate this command with Net::LDAP using this code and get
nothing:
my $scope = "one";
my $ldap = Net::LDAP->new("10.19.15.50") or die "$@";
my $mesg = $ldap->search(
base =>
"ou=addresslist,ou=test,ou=cfmrs,ou=sftaccess,o=sft",
scope => $scope,
attrs => ['*', 'dn'],
);
Thanks.
