diff options
author | Sébastien NOBILI <s-code-github@pipoprods.org> | 2020-06-03 10:36:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-03 10:36:04 +0200 |
commit | a69cfe0dd23fbd2e25c07ec92717998585a9560d (patch) | |
tree | ff365d5208d6015743b7f0fd0e8c4d4be08d8d17 /application/security/LoginManager.php | |
parent | 9ba6982ea312c49a5c2b2cc5ad09d350e46fd87f (diff) | |
download | Shaarli-a69cfe0dd23fbd2e25c07ec92717998585a9560d.tar.gz Shaarli-a69cfe0dd23fbd2e25c07ec92717998585a9560d.tar.zst Shaarli-a69cfe0dd23fbd2e25c07ec92717998585a9560d.zip |
Update application/security/LoginManager.php
Co-authored-by: ArthurHoaro <arthur@hoa.ro>
Diffstat (limited to 'application/security/LoginManager.php')
-rw-r--r-- | application/security/LoginManager.php | 7 |
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 | /** |