Fixed issue where authentication based searches were not storing user names correctly
This commit is contained in:
parent
a9d78fa581
commit
07e6a4d3a1
1 changed files with 7 additions and 1 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue