From ee2c6e8215c05fd9b257dafc9a34795318484fcf Mon Sep 17 00:00:00 2001 From: Jarkko Lehtoranta Date: Tue, 13 Jun 2017 21:28:19 +0300 Subject: [PATCH] LDAP: Remove unnecessary "recursion" fix This reverts commit 86d72b9a61f5e8a9b57c6f0bb431eb6722aa12a3 "LDAP: fix possible recursion". Signed-off-by: Jarkko Lehtoranta --- apps/user_ldap/lib/Connection.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/apps/user_ldap/lib/Connection.php b/apps/user_ldap/lib/Connection.php index d3da4f8dadc..66dfd80adc9 100644 --- a/apps/user_ldap/lib/Connection.php +++ b/apps/user_ldap/lib/Connection.php @@ -599,17 +599,10 @@ class Connection extends LDAPUtility { * Binds to LDAP */ public function bind() { - static $getConnectionResourceAttempt = false; if(!$this->configuration->ldapConfigurationActive) { return false; } - if($getConnectionResourceAttempt) { - $getConnectionResourceAttempt = false; - return false; - } - $getConnectionResourceAttempt = true; $cr = $this->getConnectionResource(); - $getConnectionResourceAttempt = false; if(!$this->ldap->isResource($cr)) { return false; }