summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2255bc8)
raw | patch | inline | side by side (parent: 2255bc8)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 30 Nov 2006 06:52:11 +0000 (06:52 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 30 Nov 2006 06:52:11 +0000 (06:52 +0000) |
It works as expected, and can replace ldap_explode_dn.
gosa_ldap_explode_dn is a remake of ldap_explode_dn without character encoding problems.
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5258 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa_ldap_explode_dn is a remake of ldap_explode_dn without character encoding problems.
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5258 594d385d-05f5-0310-b6e9-bd551577e9d8
include/functions.inc | patch | blob | history | |
include/functions_FAI.inc | patch | blob | history |
diff --git a/include/functions.inc b/include/functions.inc
index 58942bd7852960ba30c399e363dcd9b0a1ce0264..b1deb986ec57f75b944bff664fe34e9233818f49 100644 (file)
--- a/include/functions.inc
+++ b/include/functions.inc
$ldap = $config->get_ldap_link();
}
- $Diff = ldap_explode_dn($dn,0);
-
/* Lets start */
$called = false;
while(preg_match("/,/",$dn) && $next && $cnt < $max){
}
$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);
}
index 781f66c93386b5cc222b33aa0502d6f335e9bad7..9fc2270b88af2c63d9cc286fe2db494bfb9f92e2 100644 (file)
$ret = array();
/* Explode dns into pieces, to be able to build parent dns */
-# $dns_to_check = gosa_ldap_explode_dn(str_ireplace(",".$config->current['BASE'],"",$dn),0);
$dns_to_check = gosa_ldap_explode_dn(preg_replace("/".normalizePreg(",".$config->current['BASE'])."/i","",$dn));
if(!is_array($dns_to_check)){
$ldap->cd($config->current['BASE']);
/* Split dn into pices */
-# $dns_to_check = gosa_ldap_explode_dn(str_ireplace(",".$config->current['BASE'],"",$Current_DN),0);
$dns_to_check = gosa_ldap_explode_dn(preg_replace("/".normalizePreg(",".$config->current['BASE'])."/i","",$Current_DN));
if(!is_array($dns_to_check)){