From 0ea48299978c93ed2bd77bf42f6a392e1e6e731a Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 6 Feb 2009 09:59:52 +0000 Subject: [PATCH] Updated class_ldap -> create missing trees -creation of the root DSE wasn't working for single objects e.g. "dc=test" git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13390 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_ldap.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gosa-core/include/class_ldap.inc b/gosa-core/include/class_ldap.inc index 81e7dd044..f3baf144d 100644 --- a/gosa-core/include/class_ldap.inc +++ b/gosa-core/include/class_ldap.inc @@ -618,7 +618,7 @@ class LDAP{ } else { $type= preg_replace('/^([^=]+)=.*$/', '\\1', $cdn); - $param= preg_replace('/^[^=]+=([^,]+),.*$/', '\\1', $cdn); + $param= preg_replace('/^[^=]+=([^,]+).*$/', '\\1', $cdn); $na= array(); @@ -702,6 +702,9 @@ class LDAP{ $this->add($na); if (!$this->success()){ + + print_a(array($cdn,$na)); + msg_dialog::display(_("LDAP error"), msgPool::ldaperror($this->get_error(), $cdn, LDAP_ADD, get_class())); return FALSE; } -- 2.30.2