Link to home
Create AccountLog in
Avatar of pleyden1974
pleyden1974

asked on

LDAP Exchange Recipient Policy

Hi,
I am trying to assign an exchange 2003 recipient policy (windows 2003 AD) to our users based on Information Store (as opposed to Exchange Admin Group / Server / Mail Database).
Problem is I don't know what LDAP query to use for setting different primary SMTP addresses to users based on different Information Stores.
Thanks
Avatar of Sudhirchauhan3
Sudhirchauhan3
Flag of India image

It is quite straight forward.  Refer Snapshot

Picture-1.png
Avatar of pleyden1974
pleyden1974

ASKER

hi Sud,

Thanks for your reply, Yes I saw that when I was attempting to set it up, however it is for Mail Databse not Information Store. I didn't want to set up 16 policies for each Mail Databse (I have 4 stores with 4 mail databases in each) and doing one for the Server only isn't an option.
I guess I need to find the exchange atrtibute that relates to "Information Store"
Well In that Case you can have a custom search recipient policy. In homeMDB attribute specify your storage group. It should work for you :D

 

(&(&(& (mailnickname=*) (| (&(objectCategory=person)(objectClass=user)(homeMDB=CN=Storage_Group,CN=InformationStore,CN=Servername,CN=Servers,CN=First Administrative Group,CN=Administrative Groups,CN=ORG,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=xxx,dc=yyy)) ))))



ASKER CERTIFIED SOLUTION
Avatar of Sudhirchauhan3
Sudhirchauhan3
Flag of India image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Hi Sud,
Great, This was the query against the mail store - which worked - but is not what I want:
(&(&(& (mailnickname=*) (| (&(objectCategory=person)(objectClass=user)(homeMDB=CN=Database A - F,CN=SG1,CN=InformationStore,CN=servername,CN=Servers,CN=AdminGroup,CN=Administrative Groups,CN=Organisation,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=xxx,DC=yyy)) ))))

So I removed "Database A- F" so there is only the Storage Group listed:
(&(&(& (mailnickname=*) (| (&(objectCategory=person)(objectClass=user)(homeMDB=CN=SG1,CN=InformationStore,CN=servername,CN=Servers,CN=AdminGroup,CN=Administrative Groups,CN=Organisation,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=xxx,DC=yyy)) ))))

however this query came back with no results?
and I wasn't able to paste in a large query in the custom LDAP query in AD (for testing) which included multiple Mail Databases eg (CN=Database A -F etc etc)(CN=Database G - S etc etc)(CN=Database T - Z etc etc)
if you ran your query agains your Storage Groups, do you get a result showing all users in the databases under that storage group?
I was able to get into my lab. Apparently there is restriction on query size so you are out of luck here.