I would like to know how I need to define an Active Directory LDAP query for mail distribution.
The following is the situation:
I have an OU=TEST1 and a Sub-OU=TEST2
In the query I posted, I select all members from ou TEST2. However, I need to also select all members from the above ou TEST1 where the user description is like 'IT DEPARTMENT'.
This is due to the fact that in our environment I cannot have one and the same user in multiple OUs.
Can you please show me how I can select all members from TEST2 and union the ones from TEST1 where the user description field contains the criteria '%IT%'!
It wouldn't be a problem is SQL but LDAP is so much different! :-)
Many thanks for your help! I appreciate your effort!