How to combine 2 LDAP queries
How to combine 2 LDAP queries
(OP)
Hey guys, I have these two queries I'd like to combine into one. Is there any way of doing it?
Query 1: (&(!cn=SystemMailbox{*})(&(&(ou>="")(name=executive*)(objectCategory=organizationalUnit)(ou=*operations))))
Query 2: (&(!cn=SystemMailbox{*})(&(ou>="")(name=50*)))
Thanks in advance.
Query 1: (&(!cn=SystemMailbox{*})(&(&(ou>="")(name=executive*)(objectCategory=organizationalUnit)(ou=*operations))))
Query 2: (&(!cn=SystemMailbox{*})(&(ou>="")(name=50*)))
Thanks in advance.
RE: How to combine 2 LDAP queries
[R1] <filter> ::= '(' <filtercomp> ')'
[R2] <filtercomp> ::= <and> | <or> | etc ...
[R3] <and> ::= '&' <filterlist>
[R4] <or> ::= '|' <filterlist>
[R5] etc...
[R6] <filterlist> ::= <filter> | <filter> <filterlist>
[R7-R19] etc...
[1] The existing filters (query 1 and query 2) symbolically shown can be combined using R1,R2,R3 and R6.
filter_1 -> (filtercomp_1)
filter_2 -> (filtercomp_2)
filter_combined -> (&(filtercomp_1)(filtercomp_2))
[1.1] where it is observed that R6 effective mean a filterlist can be concatination of filters.
<filterlist> ::= <filter> | <filter><filter> | <filter><filter><filter> | ...
and in [1], it uses the case of the second case on the right-hand side.