From: Chris R. <chr...@me...> - 2002-03-20 13:26:09
|
Michael Wille <mw...@do...> wrote: > Hello all, > > I am having a problem with named binds against a Novell server running > NDS 8. The response I receive is code 32 and "NDS error: no such entry > (-601)". The strange thing is I can do an anonymous bind and search on > that username. Has anyone had any experience with this? > > Thanks for any pointers! > > - Mike Wille > > > Here is the test script I am using: > > use Net::LDAP; > > $LDAPAddress = "172.16.1.21"; > > ##################################################### > # Try an anonymous bind and search > > $ldap = Net::LDAP->new($LDAPAddress) or die("Unable to connect to LDAP > server<br>Reason: $@"); $ldap->bind (version => 3) or die "Couldn't bind > $@"; > > $mesg = $ldap->search( > filter => "(cn=mwille)", > attrs => ['uid','fullName','title','telephoneNumber'] > ); > > if($mesg->code()) { > print "Search returned, errorcode #".$mesg->code()."\n"; > print "Message: ".$mesg->error."\n"; > } > print "Search Results: \n"; > for(my $i = 0; $i < $mesg->count; $i++) { > my $entry = $mesg->entry($i); What does $entry->dn() return? Cheers, Chris |