summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fe24b1f)
raw | patch | inline | side by side (parent: fe24b1f)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 27 Jun 2006 11:34:41 +0000 (11:34 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 27 Jun 2006 11:34:41 +0000 (11:34 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@3941 594d385d-05f5-0310-b6e9-bd551577e9d8
include/class_ldap.inc | patch | blob | history |
diff --git a/include/class_ldap.inc b/include/class_ldap.inc
index 7b82a8b327bf262cc2a9804681c47bfc3b71f7b4..4d842d42d92b75c3c22c9621694faf073aaaf3e3 100644 (file)
--- a/include/class_ldap.inc
+++ b/include/class_ldap.inc
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)){
$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";