Hello,

I have never done LDAP before and I have a very simple question. How do I use the method bind for named binding to a server? There is a user "admin" in "root" with the rights of an administrator and the password "x". Here is some Code, I tryed:

$dn="cn=admin,o=root"
$ldap = Net::LDAP->new($LDAPhost) or return $retFail;        

$msg=$ldap->bind ($dn, password => "x");

if ($msg->is_error()){print $m->error_name();}

I tryed different $dn (cn=admin admin c=root,cn=admin cn=admin,c=root ...) but none of them worked. :(

So the question is how has $dn to be defined?

Thanks for helping

Andreas Elflein



Reply via email to