first commit symfony 6
This commit is contained in:
@ -496,6 +496,11 @@ class SynchroCommand extends Command
|
||||
$filter="gidnumber=".$group->getId();
|
||||
$ldapentrys=$this->ldap->search($filter,$attributes,$this->basegroup);
|
||||
if(empty($ldapentrys)) {
|
||||
$filter=str_replace("*",$group->getLabel(),$this->filtergroup);
|
||||
$ldapentrys=$this->ldap->search($filter,$attributes,$this->baseniveau01);
|
||||
}
|
||||
|
||||
if(empty($ldapentrys)) {
|
||||
$this->writeln($group->getLabel()." = SUBMIT");
|
||||
$this->ldap->addGroup($group);
|
||||
}
|
||||
@ -522,6 +527,11 @@ class SynchroCommand extends Command
|
||||
foreach($niveau02s as $niveau02) {
|
||||
$filter="gidnumber=".$niveau02->getId();
|
||||
$ldapentrys=$this->ldap->search($filter,$attributes,$this->baseniveau02);
|
||||
if(empty($ldapentrys)) {
|
||||
$filter=str_replace("*",$niveau02->getLabel(),$this->filtergroup);
|
||||
$ldapentrys=$this->ldap->search($filter,$attributes,$this->baseniveau01);
|
||||
}
|
||||
|
||||
if(empty($ldapentrys)) {
|
||||
$this->writeln($niveau02->getLabel()." = SUBMIT");
|
||||
$this->ldap->addNiveau02($niveau02);
|
||||
@ -554,6 +564,11 @@ class SynchroCommand extends Command
|
||||
|
||||
$filter="gidnumber=".$niveau01->getId();
|
||||
$ldapentrys=$this->ldap->search($filter,$attributes,$this->baseniveau01);
|
||||
if(empty($ldapentrys)) {
|
||||
$filter=str_replace("*",$niveau01->getLabel(),$this->filtergroup);
|
||||
$ldapentrys=$this->ldap->search($filter,$attributes,$this->baseniveau01);
|
||||
}
|
||||
|
||||
if(empty($ldapentrys)) {
|
||||
$this->writeln($niveau01->getLabel()." = SUBMIT");
|
||||
$this->ldap->addNiveau01($niveau01);
|
||||
|
Reference in New Issue
Block a user