From: Michaud Tim-A. <AT...@mo...> - 2001-02-15 17:57:58
|
Hello, I've been researching this for a while, but am unable to perform a bind. I'm sorry to post what is probably a simple question, but after days of looking at slim documentation i'm in need of help. If anyone has links to good beginners perl - ldap documentation, i'd be happy to hear them. When i connect to the LDAP server, bind annonomously, and do a search i am able to retrieve data fine. But when i tried to bind and authenticate, i began getting an error 32 message. Can you only bind using the cn and password? or can you use other attributes, like what i used here- 'uid' ? Here is my code- #!/usr/local/bin/perl use strict; use Net::LDAP; my $host = 'ids.mot.com'; #name of the LDAP host my $uid = shift; my $pw = shift; my $ldap = new Net::LDAP($host); #authenticate to the LDAP server as the directory super-user my $mesg = $ldap->bind('uid=$uid', password=> $pw); die ("failed to bind with ",$mesg->code(),"\n") if $mesg->code(); When i enter what i believe to be correct info, i get an error 32, if i just leave the l/p info blank, i get an error 48. Is there documentation on these error codes somewhere? Sorry and Thanks in advance, Timothy Michaud |