summaryrefslogtreecommitdiff
path: root/plugins/LdapAuthentication
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/LdapAuthentication')
-rw-r--r--plugins/LdapAuthentication/LdapAuthenticationPlugin.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/LdapAuthentication/LdapAuthenticationPlugin.php b/plugins/LdapAuthentication/LdapAuthenticationPlugin.php
index 25531a811..9e089485c 100644
--- a/plugins/LdapAuthentication/LdapAuthenticationPlugin.php
+++ b/plugins/LdapAuthentication/LdapAuthenticationPlugin.php
@@ -160,6 +160,10 @@ class LdapAuthenticationPlugin extends AuthenticationPlugin
function ldap_get_connection($config = null){
if($config == null){
+ static $ldap = null;
+ if($ldap != null){
+ return $ldap;
+ }
$config = $this->ldap_get_config();
}