diff --git a/htdocs/user.class.php b/htdocs/user.class.php index 9c6baea3542..fcd8e3d1c61 100644 --- a/htdocs/user.class.php +++ b/htdocs/user.class.php @@ -1266,6 +1266,7 @@ class User if ($this->nom && $conf->global->LDAP_FIELD_NAME) $info[$conf->global->LDAP_FIELD_NAME] = $this->nom; if ($this->prenom && $conf->global->LDAP_FIELD_FIRSTNAME) $info[$conf->global->LDAP_FIELD_FIRSTNAME] = $this->prenom; if ($this->login && $conf->global->LDAP_FIELD_LOGIN) $info[$conf->global->LDAP_FIELD_LOGIN] = $this->login; + if ($this->login && $conf->global->LDAP_FIELD_LOGIN_SAMBA) $info[$conf->global->LDAP_FIELD_LOGIN_SAMBA] = $this->login; if ($this->poste) $info["title"] = $this->poste; if ($this->societe_id > 0) {