From: hickert Date: Fri, 6 Feb 2009 09:59:52 +0000 (+0000) Subject: Updated class_ldap -> create missing trees X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0ea48299978c93ed2bd77bf42f6a392e1e6e731a;p=gosa.git 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 --- 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; }