X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=include%2Ffunctions.inc;h=9f0aef9e4e863c58b4d8d3877fba539620ceed52;hb=f1714ac56cc41319519c97c1ab7749d4d8a637c3;hp=58942bd7852960ba30c399e363dcd9b0a1ce0264;hpb=2255bc8f95b2e1159d9306a99f1c563536eb06c6;p=gosa.git diff --git a/include/functions.inc b/include/functions.inc index 58942bd78..9f0aef9e4 100644 --- a/include/functions.inc +++ b/include/functions.inc @@ -291,7 +291,8 @@ function ldap_init ($server, $base, $binddn='', $pass='') { global $config; - $ldap = new LDAP ($binddn, $pass, $server, isset($config->current['RECURSIVE']) && $config->current['RECURSIVE'] == "true", + $ldap = new LDAP ($binddn, $pass, $server, + isset($config->current['RECURSIVE']) && $config->current['RECURSIVE'] == "true", isset($config->current['TLS']) && $config->current['TLS'] == "true"); /* Sadly we've no proper return values here. Use the error message instead. */ @@ -2081,8 +2082,6 @@ function gosa_ldap_explode_dn($dn,$config = NULL,$verify_in_ldap=false) $ldap = $config->get_ldap_link(); } - $Diff = ldap_explode_dn($dn,0); - /* Lets start */ $called = false; while(preg_match("/,/",$dn) && $next && $cnt < $max){ @@ -2124,10 +2123,6 @@ function gosa_ldap_explode_dn($dn,$config = NULL,$verify_in_ldap=false) } $ret['count'] = count($ret) - 1; - $diff = array_diff($ret,$Diff); - if($diff){ - print_a(array("Diff" => $diff,"OLD" => $Diff,"NEW"=> $ret,"DEBUG"=> debug_backtrace())); - } return($ret); }