Filtering the Global Address List

Posted on 2007-12-03
Medium Priority
Last Modified: 2008-02-01
We have a client running Exchange 2003 who was recently purchased by a much larger company that runs Lotus Notes.  They have decided to maintain their Exchange organization in a trusted domain; but want to import a list of the Lotus Notes users so that they can access free/busy information.

The issue is this:

1.  There are a very large number of users in the Lotus Notes environment so we want to keep them from being imported into the default GAL and have them be accessed by a separate address list.  That list has been created and works fine with the test accounts.  Those accounts currently appear in the default GAL.
2.  Each of the Lotus Notes user objects that is being imported is tagged with an extensionattribute that is unique to them and has no meaning in the current client network.
3.  There are many mail-enabled groups (security and distribution) in the current environment.
4.  I created a new GAL and configured it to filter based on that user extension attribute with a filter that looks like:

CustomAttribute 'is not' XXXXX

The obvious problem:
5.  Once the user extension attribute filter is applied, all accounts that are not user accounts are filtered because I apparently am too stupid to figure out a way to create a regular expression in the LDAP query.

How do I create a filter that does:

a)  Filter out any user object with the extension attribute value set to a specific value.
b) keep all the current mail-enabled groups visible in the GAL.

Question by:Manfre7874
  • 2
LVL 23

Expert Comment

by:Stacy Spear
ID: 20404351
You didn't post your filter! :)


Is how you do a not with LDAP. some folks will even do it like this (!(extensionttribute1=whatever))

Author Comment

ID: 20404526
oops, that would probably help.

(&(&(&(& (mailnickname=*) (| (&(objectCategory=person)(objectClass=user)(!(homeMDB=*))(!(msExchHomeServerName=*)))
(objectCategory=msExchDynamicDistributionList) )))(objectCategory=user)(!extensionAttribute15=XXXXX)))


I think it's probably something simple; but my actual abilities with writing LDAP are not great.

Thanks for looking.
LVL 23

Accepted Solution

Stacy Spear earned 1000 total points
ID: 20405239
Try this one out.

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

By putting the main delimiter near the front, you decrease the search time drastically by having a more efficient search.

Featured Post

Easily manage email signatures in Office 365

Managing email signatures in Office 365 can be a challenging task if you don't have the right tool. CodeTwo Email Signatures for Office 365 will help you implement a unified email signature look, no matter what email client is used by users. Test it for free!

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

What is the biggest problem in managing an exchange environment today? It is the lack of backups, disaster recovery (DR) plan, testing of the DR plan or believing that it won’t happen to us.
Organisation is organized in a pattern to flow the day to day business, every application and system is interdepended on each other and when very important “Exchange Server downtime” happened.
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Planning to migrate your EDB file(s) to a new or an existing Outlook PST file? This video will guide you how to convert EDB file(s) to PST. Besides this, it also describes, how one can easily search any item(s) from multiple folders or mailboxes…

600 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question