diff --git a/webui/model/group/group.php b/webui/model/group/group.php index 82501b3f..3b3b75b4 100644 --- a/webui/model/group/group.php +++ b/webui/model/group/group.php @@ -194,7 +194,7 @@ class ModelGroupGroup extends Model { $query = $ldap->query(LDAP_BASE_DN, "(&(objectClass=" . LDAP_ACCOUNT_OBJECTCLASS . ")(" . LDAP_MAIL_ATTR . "=" . $username_prefix . $s . "*))", array()); if(isset($query->rows)) { - $emails = $this->model_user_auth->get_email_array_from_ldap_attr($query->rows); + $emails = $this->model_user_auth->get_email_array_from_ldap_attr($query->rows, LDAP_DISTRIBUTIONLIST_OBJECTCLASS); } } } diff --git a/webui/model/user/auth.php b/webui/model/user/auth.php index aa5db772..a51b2929 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, $ldap_distributionlist_objectclass); + $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);