From 055a09e487c2c6fedaa213a11434f9a985e12423 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Fri, 21 Mar 2014 15:27:51 +0100 Subject: [PATCH] On clone create a new instance of the Configuration To avide effects on the original instance of Connection when the clone is modified, for instance on authentication checks. --- apps/user_ldap/lib/connection.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/user_ldap/lib/connection.php b/apps/user_ldap/lib/connection.php index b2075748a3..08ac4ac626 100644 --- a/apps/user_ldap/lib/connection.php +++ b/apps/user_ldap/lib/connection.php @@ -78,6 +78,8 @@ class Connection extends LDAPUtility { //a cloned instance inherits the connection resource. It may use it, //but it may not disconnect it $this->dontDestruct = true; + $this->configuration = new Configuration($this->configPrefix, + !is_null($this->configID)); } public function __get($name) {