From 6c554a9db47698ef2e53a257bd828fe673355346 Mon Sep 17 00:00:00 2001 From: cajus Date: Tue, 27 Jun 2006 11:34:32 +0000 Subject: [PATCH] Smart workaround for broken dn's git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3940 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_ldap.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/class_ldap.inc b/include/class_ldap.inc index 5295eb284..a319babbe 100644 --- a/include/class_ldap.inc +++ b/include/class_ldap.inc @@ -281,7 +281,7 @@ class LDAP{ if ($this->re) { $att= @ldap_get_attributes($this->cid, $this->re); - $att['dn']= $this->convert(@ldap_get_dn($this->cid, $this->re)); + $att['dn']= trim($this->convert(@ldap_get_dn($this->cid, $this->re))); } $this->error = @ldap_error($this->cid); if (!isset($att)){ @@ -325,7 +325,7 @@ class LDAP{ $rv = @ldap_get_dn($this->cid, $this->re); $this->error = @ldap_error($this->cid); - return($this->convert($rv)); + return(trim($this->convert($rv))); } }else{ $this->error = "Perform a Fetch with no Search"; -- 2.30.2