Début ajout gestion utilisateurs ldap
This commit is contained in:
parent
f8e8a82c79
commit
a0e134808e
@ -1,4 +1,5 @@
|
|||||||
# Dolibarr language file - fr_FR - ldap
|
# Dolibarr language file - fr_FR - ldap
|
||||||
|
DomainPassword=Mot de passe du domaine
|
||||||
UserMustChangePassNextLogon=L'utilisateur doit changer de mot de passe à la prochaine connexion
|
UserMustChangePassNextLogon=L'utilisateur doit changer de mot de passe à la prochaine connexion
|
||||||
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
|
||||||
|
|||||||
@ -118,7 +118,7 @@ class AuthLdap {
|
|||||||
$this->ldapProtocolVersion = $conf->global->LDAP_SERVER_PROTOCOLVERSION;
|
$this->ldapProtocolVersion = $conf->global->LDAP_SERVER_PROTOCOLVERSION;
|
||||||
$this->dn = $conf->global->LDAP_SERVER_DN;
|
$this->dn = $conf->global->LDAP_SERVER_DN;
|
||||||
$this->serverType = $conf->global->LDAP_SERVER_TYPE;
|
$this->serverType = $conf->global->LDAP_SERVER_TYPE;
|
||||||
$this->domain = $sDomain; //Todo: ajouter en base
|
$this->domain = $conf->global->LDAP_SERVER_DN;
|
||||||
$this->searchUser = $conf->global->LDAP_ADMIN_DN;
|
$this->searchUser = $conf->global->LDAP_ADMIN_DN;
|
||||||
$this->searchPassword = $conf->global->LDAP_ADMIN_PASS;
|
$this->searchPassword = $conf->global->LDAP_ADMIN_PASS;
|
||||||
$this->people = $conf->global->LDAP_USER_DN;
|
$this->people = $conf->global->LDAP_USER_DN;
|
||||||
@ -499,8 +499,8 @@ class AuthLdap {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$filter = '('.$this->filter.'('.$this->getUserIdentifier().'='.$search.'))';
|
$filter = '('.$this->filter.'('.$this->getUserIdentifier().'='.$search.'))';
|
||||||
|
|
||||||
$this->result = @ldap_search( $this->connection, $this->People, $filter);
|
$this->result = @ldap_search( $this->connection, $this->people, $filter);
|
||||||
|
|
||||||
if (!$this->result)
|
if (!$this->result)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -748,6 +748,10 @@ else
|
|||||||
{
|
{
|
||||||
print '<td>'.$userChangePassNextLogon.'</td>';
|
print '<td>'.$userChangePassNextLogon.'</td>';
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
print '<td>'.$langs->trans("DomainPassword").'</td>';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user