Solved

Filtering the Global Address List

Posted on 2007-12-03
3
421 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
ID: 20404351
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
ID: 20404526
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
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.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
In-place Upgrading Dirsync to Azure AD Connect
In this video we show how to create a Shared Mailbox 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 Recipients >> Sha…
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…

828 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