Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GAL LDAP Query

Status
Not open for further replies.

Mighty

Programmer
Feb 22, 2001
1,682
US
I have attached the LDAP query for my default GAL below:

Code:
(& (mailnickname=*) (| (&(objectCategory=person)(objectClass=user)(!(homeMDB=*))(!(msExchHomeServerName=*)))(&(objectCategory=person)(objectClass=user)(|(homeMDB=*)(msExchHomeServerName=*)))(&(objectCategory=person)(objectClass=contact))(objectCategory=group)(objectCategory=publicFolder)(objectCategory=msExchDynamicDistributionList) ))

I am trying to create a customised GAL which basically contains the same list as the default GAL but excludes contacts and public folders. Can anyone advise me on what changes I need to make to the LDAP query to facilitate that. i have been messing around with it and it is driving me mad.

Mighty
 
(& (mailnickname=*) (| (&(objectCategory=person)(objectClass=user)(!(homeMDB=*))(!(msExchHomeServerName=*)))(&(objectCategory=person)(objectClass=user)(|(homeMDB=*)(msExchHomeServerName=*)))(&(objectCategory=person))(objectCategory=group)(objectCategory=msExchDynamicDistributionList) ))

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
When I enter that LDAP query for my custom GAL and do a preview I still get all the contacts. I had already attempted the changes that you specified which is why it was driving me mad - I assumed it would be that simple!!

Mighty
 
To look at it from the other side, this is the current LDAP query for my custom GAL which I get from the Exchange tab when specifying content of GAL. I pick people with an exchange mailbox. When I add groups to this they don't appear. The only problem with this GAL is that it doesn't include groups.

Code:
(&(&(&(|(&(objectCategory=person)(objectSid=*)(!samAccountType:1.2.840.113556.1.4.804:=3))(&(objectCategory=person)(!objectSid=*))(&(objectCategory=group)(groupType:1.2.840.113556.1.4.804:=14)))(& (mailnickname=*) (| (&(objectCategory=person)(objectClass=user)(|(homeMDB=*)(msExchHomeServerName=*))) )))(objectCategory=user)(!displayName=ClearStream Leaver)(!displayName=BESADMIN)))

Mighty
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top