, 2003 9:34 AM
To: Edward Brookhouse; [EMAIL PROTECTED]
Subject: Re: Auth to AD via Net::LDAP
On Friday 10 October 2003 15:43, Edward Brookhouse wrote:
> I am attempting to use Net::LDAP to authenticate requests to MS Active
> Directory, and at first glance to below code works fine. W
password will not authenticate though. Anyone see anything in
this code that would cause the Perl module for LDAP to NOT return an
error code when authentication fails. Or is it my directory which is
allowing a bind with an incorrect password???
Any thoughts appreciated!
Regards,
Edward
Using
my @LDAPServerAddress = [ '172.19.1.11', '172.17.17.110' ];
my $ldap = Net::LDAP->new(@LDAPServerAddress,port=>389,timeout=>5)
|| return "Can't connect to @LDAPServerAddress via LDAP";
Works.
-Original Message-
From: Edwar
I am attempting to utilize Net::LDAP to authenticate to a directory, and
I have it working, but I now need to add redundancy.
The docs for Net::LDAP say "
HOST may also be a reference to an array of hosts, host-port pairs or
URIs to try. Each will be tried in order until a connection is made.
On