Last post Jul 05, 2007 10:39 AM by Novice.Net
Jul 04, 2007 03:47 PM|teebo|LINK
Is it possible to filter users by the available services they have?
Like what would be the LDAP filter syntax if I only want AD to return a list of Exchange users ?
Jul 04, 2007 06:12 PM|Novice.Net|LINK
You would need to know of a unique attribute for that service. In the example you gave of Exchange then you could use mailNickname as this relates to the Mail alias which is given when a object is mail enabled. If yu wanted users who are mailbox enabled
then use home-mdb as this is the server reference where their mailbox is located:
Therefore the filter would be:
Jul 05, 2007 09:09 AM|teebo|LINK
Thanks Paul !
It worked with (&(objectClass=user)(homeMDB=*))
Jul 05, 2007 10:39 AM|Novice.Net|LINK
Blimey I must have been tired when I wrote that other post, the filter criteria were all wrong!!
should have been (&(objectCategory=person)(objectClass=User)(homeMDB=*))
The reason I included objectCategory is because it is Indexed whilst objectClass is not. I'll let myself off of home-MDB as opposed to homeMDB because I have bee writing a lot of queries against Exchange 5.5 which uses home-MDB whilst AD uses homeMDB
Glad I gave you at least a point in the right direction.