Suggested LDAP Feature
rbarnett@neuromics.com
rbarnett@neuromics.com
Sat, 12 May 2001 17:07:24 +0000
Hi,
I'm new to Horde, but I have a small addition to suggest for turba.
My local ldap directory contains some entries that aren't appropriate for a
contact list, so I'd like add a constraint to all searches to require a
particular object class. I found that the following patch to
lib/Driver/ldap.php does what I need by adding a configuration parameter called
"filter" to the LDAP parameters.
Rodney
*** ldap.php.dist Sat Mar 17 21:20:02 2001
--- ldap.php Sat May 12 11:50:29 2001
***************
*** 78,83 ****
--- 78,86 ----
}
}
$filter .= ' )';
+
+ if (isset($this->params['filter']))
+ $filter = '(&' . $filter . '(' . $this->params['filter'] . '))';
/*
* Four11 (at least) doesn't seem to return 'cn' if you don't ask
-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/