mirror of
https://github.com/humhub/humhub.git
synced 2025-01-17 22:28:51 +01:00
Fix: Rebind LDAP connection after successful login with administrative user
This commit is contained in:
parent
f761b159f6
commit
ab8039a456
@ -10,3 +10,4 @@ HumHub Change Log - v1.3-dev Branch
|
||||
- Enh: Committed composer.lock
|
||||
- Enh: Refactored ContentContainer Controller
|
||||
- Chg: Added ContentContainer ModuleManager, instead of individual handling (Space/User)
|
||||
- Fix: Rebind LDAP connection after successful login with administrative user
|
||||
|
@ -333,7 +333,12 @@ class ZendLdapClient extends BaseFormAuth implements interfaces\AutoSyncUsers, i
|
||||
|
||||
try {
|
||||
$this->getLdap()->bind($userName, $this->login->password);
|
||||
return $this->getLdap()->getCanonicalAccountName($userName, Ldap::ACCTNAME_FORM_DN);
|
||||
$dn = $this->getLdap()->getCanonicalAccountName($userName, Ldap::ACCTNAME_FORM_DN);
|
||||
|
||||
// Rebind with administrative DN
|
||||
$this->getLdap()->bind();
|
||||
|
||||
return $dn;
|
||||
} catch (LdapException $ex) {
|
||||
// User not found in LDAP
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user