Solved

Filtering the Global Address List

Posted on 2007-12-03
3
401 Views
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.
AND
b) keep all the current mail-enabled groups visible in the GAL.

Thanks.
0
Comment
Question by:Manfre7874
  • 2
3 Comments
 
LVL 23

Expert Comment

by:Stacy Spear
Comment Utility
You didn't post your filter! :)

!extensionttribute1=whatever

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

Author Comment

by:Manfre7874
Comment Utility
oops, that would probably help.

-----------------------------
(&(&(&(& (mailnickname=*) (| (&(objectCategory=person)(objectClass=user)(!(homeMDB=*))(!(msExchHomeServerName=*)))
(&(objectCategory=person)(objectClass=user)(|(homeMDB=*)(msExchHomeServerName=*)))
(&(objectCategory=person)(objectClass=contact))(objectCategory=group)(objectCategory=publicFolder)
(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.
0
 
LVL 23

Accepted Solution

by:
Stacy Spear earned 250 total points
Comment Utility
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.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Easy CSR creation in Exchange 2007,2010 and 2013
Following basic email etiquette rules will help you write a professional email and achieve a good, lasting impression with your contacts.
In this video we show how to create an Accepted Domain in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Ac…
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now