Brian, depending on your ldapsearch tool you will want to take a look at the default search filter. This usually is objectclass=*. My openldap ldapsearch 2.3.36 defaults to this and puts the search filter used at the top of the ldif output.
Don -----Original Message----- From: Brian G [mailto:[EMAIL PROTECTED] Sent: Thursday, December 06, 2007 8:43 AM To: perl-ldap@perl.org 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.