Fix: on averti si le user est désactivé 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
|
UserMustChangePassNextLogon=User must change password on the domain %s
|
||||||
LdapUacf_NORMAL_ACCOUNT=User account
|
LdapUacf_NORMAL_ACCOUNT=User account
|
||||||
LdapUacf_DONT_EXPIRE_PASSWORD=Password never expires
|
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
|
LDAPInformationsForThisContact=Information in LDAP database for this contact
|
||||||
LDAPInformationsForThisUser=Information in LDAP database for this user
|
LDAPInformationsForThisUser=Information in LDAP database for this user
|
||||||
LDAPInformationsForThisGroup=Information in LDAP database for this group
|
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
|
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_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
|
LDAPInformationsForThisContact=Informations en base LDAP pour ce contact
|
||||||
LDAPInformationsForThisUser=Informations en base LDAP pour cet utilisateur
|
LDAPInformationsForThisUser=Informations en base LDAP pour cet utilisateur
|
||||||
LDAPInformationsForThisGroup=Informations en base LDAP pour ce groupe
|
LDAPInformationsForThisGroup=Informations en base LDAP pour ce groupe
|
||||||
|
|||||||
@ -718,8 +718,11 @@ else
|
|||||||
|
|
||||||
$passDoNotExpire = 0;
|
$passDoNotExpire = 0;
|
||||||
$userChangePassNextLogon = 0;
|
$userChangePassNextLogon = 0;
|
||||||
|
$userDisabled = 0;
|
||||||
|
|
||||||
//On verifie les options du compte
|
//On verifie les options du compte
|
||||||
|
if (sizeof($ldap->uacf) > 0)
|
||||||
|
{
|
||||||
foreach ($ldap->uacf as $key => $statut)
|
foreach ($ldap->uacf as $key => $statut)
|
||||||
{
|
{
|
||||||
if ($key == 65536)
|
if ($key == 65536)
|
||||||
@ -727,6 +730,12 @@ else
|
|||||||
$passDoNotExpire = 1;
|
$passDoNotExpire = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$userDisabled = 1;
|
||||||
|
}
|
||||||
|
|
||||||
if ($ldap->pwdlastset == 0)
|
if ($ldap->pwdlastset == 0)
|
||||||
{
|
{
|
||||||
$userChangePassNextLogon = 1;
|
$userChangePassNextLogon = 1;
|
||||||
@ -848,6 +857,10 @@ else
|
|||||||
{
|
{
|
||||||
print '<td class="warning">'.$langs->trans("UserMustChangePassNextLogon",$ldap->domainFQDN).'</td>';
|
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
|
else
|
||||||
{
|
{
|
||||||
print '<td>'.$langs->trans("DomainPassword").'</td>';
|
print '<td>'.$langs->trans("DomainPassword").'</td>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user