diff --git a/htdocs/langs/fr_FR/ldap.lang b/htdocs/langs/fr_FR/ldap.lang index ed15ee4645b..2b9f35ef150 100644 --- a/htdocs/langs/fr_FR/ldap.lang +++ b/htdocs/langs/fr_FR/ldap.lang @@ -2,7 +2,7 @@ DomainPassword=Mot de passe du domaine YouMustChangePassNextLogon=Vous devez modifier votre mot de passe sur le domaine %s UserMustChangePassNextLogon=L'utilisateur doit modifier son mot de passe sur le domaine %s -LdapUacf_NORMAL_ACCOUNT=Compte Utilisateur +LdapUacf_NORMAL_ACCOUNT=Compte utilisateur LdapUacf_DONT_EXPIRE_PASSWORD=Le mot de passe n'expire jamais LdapUacf_ACCOUNTDISABLE=Le compte est désactivé sur le domaine %s LDAPInformationsForThisContact=Informations en base LDAP pour ce contact diff --git a/htdocs/user/fiche.php b/htdocs/user/fiche.php index 60e17746102..ff9beaa5f18 100644 --- a/htdocs/user/fiche.php +++ b/htdocs/user/fiche.php @@ -719,21 +719,24 @@ else $passDoNotExpire = 0; $userChangePassNextLogon = 0; $userDisabled = 0; + $statutUACF = ''; //On verifie les options du compte - if (sizeof($ldap->uacf > 0) + if (sizeof($ldap->uacf) > 0) { foreach ($ldap->uacf as $key => $statut) { if ($key == 65536) { $passDoNotExpire = 1; + $statutUACF = $statut; } } } else { $userDisabled = 1; + $statutUACF = "ACCOUNTDISABLE"; } if ($ldap->pwdlastset == 0) @@ -851,7 +854,7 @@ else { if ($passDoNotExpire) { - print ''.$langs->trans("LdapUacf_".$statut).''; + print ''.$langs->trans("LdapUacf_".$statutUACF).''; } else if($userChangePassNextLogon) { @@ -859,7 +862,7 @@ else } else if($userDisabled) { - print ''.$langs->trans("LdapUacf_ACCOUNTDISABLE",$ldap->domainFQDN).''; + print ''.$langs->trans("LdapUacf_".$statutUACF,$ldap->domainFQDN).''; } else {