mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-23 02:19:07 +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)){
|
if(is_array($obj_conf)){
|
||||||
$entry = self :: getLdapEntry($dn);
|
$entry = self :: getLdapEntry($dn);
|
||||||
if ($entry === false) {
|
if ($entry === false) {
|
||||||
$attributes = array();
|
$newentry = self :: getNewEntry($dn,$obj_conf['objectclass'],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);
|
|
||||||
|
|
||||||
if (!$newentry) {
|
if (!$newentry) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue