logo       
Google Custom Search
    AddThis Social Bookmark Button

Ldap search does not return expected result: msg#00005

Subject: Ldap search does not return expected result
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. 






Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>