From: Michael W. <mw...@do...> - 2002-03-19 21:45:08
|
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 =3D "172.16.1.21"; ##################################################### # Try an anonymous bind and search $ldap =3D Net::LDAP->new($LDAPAddress) or die("Unable to connect to LDAP = server<br>Reason: $@"); $ldap->bind (version =3D> 3) or die "Couldn't bind $@"; $mesg =3D $ldap->search( filter =3D> "(cn=3Dmwille)", attrs =3D> ['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 =3D 0; $i < $mesg->count; $i++) { my $entry =3D $mesg->entry($i); foreach my $attr ($entry->attributes) { $User{$attr} =3D $entry->get_value($attr); print "$attr: ".$entry->get_value($attr)."\n"; } } $ldap->unbind; ####################################################### # Try a Named bind... undef $ldap; print "\nPerforming Bind\n"; $ldap =3D Net::LDAP->new($LDAPAddress, version =3D> 3) or die "$@"; #$ldap->start_tls(verify =3D> 'none', sslversion =3D> 'tlsv1') or die = "$@"; # all of these below come up with the same results... #$mesg =3D $ldap->bind (dn =3D> "cn=3Dmwille, o=3Dxxx, c=3Dus", password = =3D> "password"); #$mesg =3D $ldap->bind (dn =3D> "cn=3Dmwille, o=3Dxxx", password =3D> = "password"); $mesg =3D $ldap->bind (dn =3D> "cn=3Dmwille", password=3D>"password"); if($mesg->code()) { print "Return Code: ".$mesg->code()."\n"; print "Error: ".$mesg->error."\n"; } print "\n**** Done ****\n"; $ldap->unbind(); |