From 8c43834dbcf300b371968345eb7bbd6f862befa8 Mon Sep 17 00:00:00 2001 From: Roger Szabo Date: Fri, 27 Apr 2018 17:29:15 +0800 Subject: [PATCH] unbound cloned connection fix Signed-off-by: Roger Szabo --- apps/user_ldap/lib/Connection.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/user_ldap/lib/Connection.php b/apps/user_ldap/lib/Connection.php index ab1ab11de4..758d3f906b 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; }