LSldap :: getEntry() : Fixed to don't set dafault_value of attributes
authorbn8 <bn8@zionetrix.net>
Tue, 16 Mar 2010 16:46:10 +0000 (17:46 +0100)
committerbn8 <bn8@zionetrix.net>
Tue, 16 Mar 2010 16:46:10 +0000 (17:46 +0100)
public_html/includes/class/class.LSldap.php

index 3f3e184..baa7d7c 100644 (file)
@@ -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;