Fix: on averti si le user est dsactiv sur le domain ldap
This commit is contained in:
parent
aaa1d47552
commit
b2deb4c896
@ -4,7 +4,7 @@ YouMustChangePassNextLogon=You must change your password on the domain %s
|
||||
UserMustChangePassNextLogon=User must change password on the domain %s
|
||||
LdapUacf_NORMAL_ACCOUNT=User account
|
||||
LdapUacf_DONT_EXPIRE_PASSWORD=Password never expires
|
||||
LdapUacf_ACCOUNTDISABLE=Account is disabled on this domain
|
||||
LdapUacf_ACCOUNTDISABLE=Account is disabled in the domain %s
|
||||
LDAPInformationsForThisContact=Information in LDAP database for this contact
|
||||
LDAPInformationsForThisUser=Information in LDAP database for this user
|
||||
LDAPInformationsForThisGroup=Information in LDAP database for this group
|
||||
|
||||
@ -4,7 +4,7 @@ YouMustChangePassNextLogon=Vous devez modifier votre mot de passe sur le domaine
|
||||
UserMustChangePassNextLogon=L'utilisateur doit modifier son mot de passe sur le domaine %s
|
||||
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
|
||||
LdapUacf_ACCOUNTDISABLE=Le compte est désactivé sur le domaine %s
|
||||
LDAPInformationsForThisContact=Informations en base LDAP pour ce contact
|
||||
LDAPInformationsForThisUser=Informations en base LDAP pour cet utilisateur
|
||||
LDAPInformationsForThisGroup=Informations en base LDAP pour ce groupe
|
||||
|
||||
@ -718,15 +718,24 @@ else
|
||||
|
||||
$passDoNotExpire = 0;
|
||||
$userChangePassNextLogon = 0;
|
||||
$userDisabled = 0;
|
||||
|
||||
//On verifie les options du compte
|
||||
foreach ($ldap->uacf as $key => $statut)
|
||||
if (sizeof($ldap->uacf) > 0)
|
||||
{
|
||||
if ($key == 65536)
|
||||
foreach ($ldap->uacf as $key => $statut)
|
||||
{
|
||||
$passDoNotExpire = 1;
|
||||
if ($key == 65536)
|
||||
{
|
||||
$passDoNotExpire = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$userDisabled = 1;
|
||||
}
|
||||
|
||||
if ($ldap->pwdlastset == 0)
|
||||
{
|
||||
$userChangePassNextLogon = 1;
|
||||
@ -848,6 +857,10 @@ else
|
||||
{
|
||||
print '<td class="warning">'.$langs->trans("UserMustChangePassNextLogon",$ldap->domainFQDN).'</td>';
|
||||
}
|
||||
else if($userDisabled)
|
||||
{
|
||||
print '<td class="warning">'.$langs->trans("LdapUacf_ACCOUNTDISABLE",$ldap->domainFQDN).'</td>';
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<td>'.$langs->trans("DomainPassword").'</td>';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user