[dev] [PATCH] kolab ldap fix
Robert Gerlach
khnz at gmx.de
Wed Jun 27 21:57:31 UTC 2007
Hello,
I think there is a bug in the mailForDn, the current check is always true.
Thanks,
Robert
Index: framework/Kolab/Kolab/LDAP.php
===================================================================
RCS file: /repository/framework/Kolab/Kolab/LDAP.php,v
retrieving revision 1.1
diff -u -r1.1 LDAP.php
--- framework/Kolab/Kolab/LDAP.php 9 Mar 2007 13:16:14 -0000 1.1
+++ framework/Kolab/Kolab/LDAP.php 27 Jun 2007 21:33:59 -0000
@@ -210,7 +210,7 @@
$entries = ldap_get_entries($this->connection, $result);
ldap_free_result($result);
- if ($entries['count'] == 1) {
+ if ($entries[0]['count'] == 1) {
return $entries[0]['mail'][0];
} else {
return PEAR::raiseError(sprintf(_("No such object %s!"),
$dn));
More information about the dev
mailing list