mirror of
https://github.com/nextcloud/server.git
synced 2026-05-25 02:34:12 -04:00
Merge pull request #9522 from nextcloud/backport/9325/stable13
[stable13] Fix for unbound cloned LDAP connections
This commit is contained in:
commit
01d3586a0f
1 changed files with 3 additions and 0 deletions
|
|
@ -125,6 +125,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