From 8bf87221c8a8bf4def6ad65f04c0023177f20931 Mon Sep 17 00:00:00 2001 From: SJ Date: Mon, 16 Mar 2015 14:09:56 +0100 Subject: [PATCH] fixed sso ldap query --- webui/model/user/auth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webui/model/user/auth.php b/webui/model/user/auth.php index 19182fb2..ba74e8ec 100644 --- a/webui/model/user/auth.php +++ b/webui/model/user/auth.php @@ -440,7 +440,7 @@ class ModelUserAuth extends Model { $ldap_mail_attr = LDAP_MAIL_ATTR; if(LDAP_MAIL_ATTR == 'proxyAddresses') { $ldap_mail_attr = 'proxyAddresses=smtp:'; } - $query = $ldap->query(LDAP_BASE_DN, "(|(&(objectClass=user)(" . $ldap_mail_attr . "=$username))(&(objectClass=group)(member=$username))(&(objectClass=group)(member=" . stripslashes($a['dn']) . ")))", array()); + $query = $ldap->query(LDAP_BASE_DN, "(|(&(objectClass=user)(" . $ldap_mail_attr . "$username))(&(objectClass=group)(member=$username))(&(objectClass=group)(member=" . stripslashes($a['dn']) . ")))", array()); $emails = $this->get_email_array_from_ldap_attr($query->rows);