summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib/connection.php
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2014-03-21 15:27:51 +0100
committerArthur Schiwon <blizzz@owncloud.com>2014-03-21 15:27:51 +0100
commit055a09e487c2c6fedaa213a11434f9a985e12423 (patch)
tree2f63c1232f92664d79904153437dce30293f9b65 /apps/user_ldap/lib/connection.php
parent37af74efb3e3511b2d6eacef67dc90f22a685bd3 (diff)
downloadnextcloud-server-055a09e487c2c6fedaa213a11434f9a985e12423.tar.gz
nextcloud-server-055a09e487c2c6fedaa213a11434f9a985e12423.zip
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.
Diffstat (limited to 'apps/user_ldap/lib/connection.php')
-rw-r--r--apps/user_ldap/lib/connection.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/user_ldap/lib/connection.php b/apps/user_ldap/lib/connection.php
index b2075748a3b..08ac4ac626b 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) {