aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/security
diff options
context:
space:
mode:
Diffstat (limited to 'application/security')
-rw-r--r--application/security/LoginManager.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/application/security/LoginManager.php b/application/security/LoginManager.php
index e34e0efa..5f395a87 100644
--- a/application/security/LoginManager.php
+++ b/application/security/LoginManager.php
@@ -206,7 +206,12 @@ class LoginManager
206 { 206 {
207 $connect = $connect ?? function($host) { return ldap_connect($host); }; 207 $connect = $connect ?? function($host) { return ldap_connect($host); };
208 $bind = $bind ?? function($handle, $dn, $password) { return ldap_bind($handle, $dn, $password); }; 208 $bind = $bind ?? function($handle, $dn, $password) { return ldap_bind($handle, $dn, $password); };
209 return $bind($connect($this->configManager->get('ldap.host')), sprintf($this->configManager->get('ldap.dn'), $login), $password); 209
210 return $bind(
211 $connect($this->configManager->get('ldap.host')),
212 sprintf($this->configManager->get('ldap.dn'), $login),
213 $password
214 );
210 } 215 }
211 216
212 /** 217 /**