From d04026d1c3ae5a384e40c07a9d92774f50b89ef9 Mon Sep 17 00:00:00 2001 From: Alexander Noack Date: Wed, 31 Mar 2021 13:29:03 +0200 Subject: [PATCH] Fix error in SSO against MS AD --- 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 475634f8..aa5db772 100644 --- a/webui/model/user/auth.php +++ b/webui/model/user/auth.php @@ -535,7 +535,7 @@ class ModelUserAuth extends Model { $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); + $emails = $this->get_email_array_from_ldap_attr($query->rows, $ldap_distributionlist_objectclass); $extra_emails = $this->model_user_user->get_email_addresses_from_groups($emails); $emails = array_merge($emails, $extra_emails);