note 28593 added to function.ldap-search
| From: | nick at rack1 dot php dot net | Date: | Fri, 17 Jan 2003 14:59:46 +0000 |
| Subject: | note 28593 added to function.ldap-search | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-42280@lists.php.net to get a copy of this message | ||
It might be useful to list here the operators that work:
= - matches exact value
=*xxx - matches values ending xxx
=xxx* - matches values beginning xxx
=*xxx* - matches values containing xxx
=* - matches all values (if set - NULLS are not returned)
>=xxx - matches everthing from xxx to end of directory
<=xxx - matches everything up to xxx in directory
~=xxx - matches similar entries (not all systems)
Boolean operators for constructing complex search
&(term1)(term2) - matches term1 AND term2
| (term1)(term2) - matches term1 OR term2
!(term1) - matches NOT term1
&(|(term1)(term2))(!(&(term1)(term2)) - matches XOR term1 term2
some of the more compelx constructions seem to work with varying degrees of efficiency - sometimes
it can be better to filter some of the results with the search and do further filtering in PHP.
--
http://www.php.net/manual/en/function.ldap-search.php
http://master.php.net/manage/user-notes.php?action=edit+28593
http://master.php.net/manage/user-notes.php?action=delete+28593
http://master.php.net/manage/user-notes.php?action=reject+28593