diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2018-05-23 09:18:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-23 09:18:21 +0200 |
commit | 01d3586a0ff930fb8fe5d05d0be98d39c5ed2a35 (patch) | |
tree | 44bfcc91d1f67596d597c140f8d1275286608df8 /apps | |
parent | 82d0d1d704668fe3729501f133d6302cd0065f75 (diff) | |
parent | 8c43834dbcf300b371968345eb7bbd6f862befa8 (diff) | |
download | nextcloud-server-01d3586a0ff930fb8fe5d05d0be98d39c5ed2a35.tar.gz nextcloud-server-01d3586a0ff930fb8fe5d05d0be98d39c5ed2a35.zip |
Merge pull request #9522 from nextcloud/backport/9325/stable13
[stable13] Fix for unbound cloned LDAP connections
Diffstat (limited to 'apps')
-rw-r--r-- | apps/user_ldap/lib/Connection.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/user_ldap/lib/Connection.php b/apps/user_ldap/lib/Connection.php index ab1ab11de47..758d3f906b7 100644 --- a/apps/user_ldap/lib/Connection.php +++ b/apps/user_ldap/lib/Connection.php @@ -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; } |