diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-04-27 14:01:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-27 14:01:15 +0200 |
commit | 7102ddad50f4c71697e6e8233f338ec5482ef4df (patch) | |
tree | 9379bfc2c2bb5ea2ab2f792803a42625c41b6e83 /apps | |
parent | 7306d30708ae72dc5f9b2251eeb903bcfe58fd41 (diff) | |
parent | 8637b90e1514cc2fc03dad3d7eedd2e7da03df70 (diff) | |
download | nextcloud-server-7102ddad50f4c71697e6e8233f338ec5482ef4df.tar.gz nextcloud-server-7102ddad50f4c71697e6e8233f338ec5482ef4df.zip |
Merge pull request #9325 from GitHubUser4234/ldap_cloned_connection_nc13fix
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 a5bbc957ac9..e6a01a17d25 100644 --- a/apps/user_ldap/lib/Connection.php +++ b/apps/user_ldap/lib/Connection.php @@ -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; } |