mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-22 16:33:48 +01:00
LSldap :: getEntry() : Fixed to don't set dafault_value of attributes
This commit is contained in:
parent
890670eaf4
commit
1b8bf7b250
1 changed files with 1 additions and 8 deletions
|
@ -188,14 +188,7 @@ class LSldap {
|
|||
if(is_array($obj_conf)){
|
||||
$entry = self :: getLdapEntry($dn);
|
||||
if ($entry === false) {
|
||||
$attributes = array();
|
||||
foreach($obj_conf['attrs'] as $attr_name => $attr_conf) {
|
||||
if( isset($attr_conf['default_value']) ) {
|
||||
$attributes[$attr_name]=$attr_conf['default_value'];
|
||||
}
|
||||
}
|
||||
|
||||
$newentry = self :: getNewEntry($dn,$obj_conf['objectclass'],$attributes);
|
||||
$newentry = self :: getNewEntry($dn,$obj_conf['objectclass'],array());
|
||||
|
||||
if (!$newentry) {
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue