Compare commits

2 Commits

Author SHA1 Message Date
d1a3187cba gestion attribut sAMAccountType AD 2021-02-23 16:34:27 +01:00
8574a7e35a compilation 2021-02-23 13:45:37 +01:00
2 changed files with 13 additions and 2 deletions

View File

@ -8,7 +8,6 @@ EOLE_VERSION=2.6
EOLE_RELEASE=2.6.2
PKGAPPS=web
################################
# Début de zone à ne pas éditer
################################

View File

@ -440,7 +440,11 @@ class ldapService
private function fillAttributesNiveau01(Niveau01 $niveau01, array &$attrs) {
$attrs['cn'] = $niveau01->getLabel();
$attrs['gidNumber'] = $niveau01->getId();
$attrs['siren'] = $niveau01->getSiren();
$attrs['siren'] = $niveau01->getSiren();
if($this->type=="AD") {
$attrs['sAMAccountName'] = $niveau01->getLabel();
}
}
public function getNiveau01DN($id) {
@ -530,6 +534,10 @@ class ldapService
$attrs['gidNumber'] = $niveau02->getId();
$attrs['siret'] = $niveau02->getSiret();
$attrs['postalAddress'] = $niveau02->getPostaladress();
if($this->type=="AD") {
$attrs['sAMAccountName'] = $niveau02->getLabel();
}
}
public function getNiveau02DN($id) {
@ -616,6 +624,10 @@ class ldapService
$attrs['cn'] = $group->getLabel();
$attrs['gidNumber'] = $group->getId();
$attrs['mail'] = $group->getEmail();
if($this->type=="AD") {
$attrs['sAMAccountName'] = $group->getLabel();
}
}
public function getGroupDN($id) {