mirror of
https://github.com/nextcloud/server.git
synced 2026-06-13 18:50:47 -04:00
Merge pull request #9325 from GitHubUser4234/ldap_cloned_connection_nc13fix
Fix for unbound cloned LDAP connections
This commit is contained in:
commit
7102ddad50
1 changed files with 3 additions and 0 deletions
|
|
@ -126,6 +126,9 @@ class Connection extends LDAPUtility {
|
|||
public function __clone() {
|
||||
$this->configuration = new Configuration($this->configPrefix,
|
||||
!is_null($this->configID));
|
||||
if(count($this->bindResult) !== 0 && $this->bindResult['result'] === true) {
|
||||
$this->bindResult = [];
|
||||
}
|
||||
$this->ldapConnectionRes = null;
|
||||
$this->dontDestruct = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue