summaryrefslogtreecommitdiff
path: root/app/Auth/Ldap.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Auth/Ldap.php')
-rw-r--r--app/Auth/Ldap.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Auth/Ldap.php b/app/Auth/Ldap.php
index 376d16f6..ed29199f 100644
--- a/app/Auth/Ldap.php
+++ b/app/Auth/Ldap.php
@@ -261,7 +261,7 @@ class Ldap extends Base
private function getQuery($username, $email)
{
if ($username && $email) {
- return '(&('.sprintf(LDAP_USER_PATTERN, $username).')('.sprintf(LDAP_ACCOUNT_EMAIL, $email).')';
+ return '(&('.sprintf(LDAP_USER_PATTERN, $username).')('.LDAP_ACCOUNT_EMAIL.'='.$email.'))';
}
else if ($username) {
return sprintf(LDAP_USER_PATTERN, $username);