From 1b8bf7b2505e6747ef175825eca9f60d35b1f613 Mon Sep 17 00:00:00 2001 From: bn8 Date: Tue, 16 Mar 2010 17:46:10 +0100 Subject: [PATCH] LSldap :: getEntry() : Fixed to don't set dafault_value of attributes --- public_html/includes/class/class.LSldap.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/public_html/includes/class/class.LSldap.php b/public_html/includes/class/class.LSldap.php index 3f3e1843..baa7d7c2 100644 --- a/public_html/includes/class/class.LSldap.php +++ b/public_html/includes/class/class.LSldap.php @@ -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;