Fixed issue where authentication based searches were not storing user names correctly

This commit is contained in:
Frank Dillon 2005-05-10 22:03:09 +00:00
parent a9d78fa581
commit 07e6a4d3a1

View file

@ -251,7 +251,13 @@ sub createAccountSave {
#Get connectDN from settings
my $uri = URI->new($connection->{ldapURL});
my $ldap = Net::LDAP->new($uri->host, (port=>$uri->port));
$ldap->bind;
my $auth;
if($connection->{connectDn}) {
$auth = $ldap->bind(dn=>$connection->{connectDn}, password=>$connection->{identifier});
}else{
$auth = $ldap->bind;
}
#$ldap->bind;
my $search = $ldap->search (base => $uri->dn, filter=>$connection->{ldapIdentity}."=".$username);
my $connectDN = "";
if (defined $search->entry(0)) {