Re: Synchronize only attributes you want ADAMSync



On Aug 6, 4:31 pm, Enrico <nri...@xxxxxxxxx> wrote:
On Aug 1, 11:54 am, "Lee Flight" <l...@xxxxxxxxxxxxxxx> wrote:





Hi"Enrico" <nri...@xxxxxxxxx> wrote in message

news:1185980980.280352.219650@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

After doing some reasearch online, it seems that <object-
filter>(objectClass=User)</object-filter> is not the most efficient
way for me to grab user objects from AD via ADAMsync. In an attempt
to clean this up, I have been working with the filter:
<object-filter>(&(objectCategory=Person)(objectClass=User))</object-
filter>
Even though most references on the internet say this is the way to
specify a user search, I keep getting a syntax error when attempting
to install my MS-AdamSyncConf file.
----------
Error: Error parsing XML File. A name was started with an invalid
character. . Line 13, Position 21 in (null)

Since object-filter is an element in an XML
document certain components of the LDAP filter
need to be replaced by the appropriate XML entity
or character reference:

and = "&" use &amp;
or = "|" use &#124;
not = "!" use &#33;

e.g.
(&amp;(objectCategory=Person)(objectClass=User))

Something to be aware of is that using more complex filters
in ADAMSync can lead to unexpected results, e.g. the
presence of objectCategory in the filter above means
that object deletions in AD will not be sync'ed toADAM
in subsequent ADAMSync runs as objectCategory is not
preserved by default on deleted objects in AD.

Lee Flight

Lee,

I am almost at completion of synchronization of the attributes I
want. The final wall I am hitting is when I attempt to use the
objectFilter to only sync specific attributes to myADAMinstance

Using the following object filter
<object-filter>(&#124;(objectClass=User)(objectClass=Organizational-
Unit))</object-filter>
I am attempting to sync only user and Organizational Unit objects.

However, I am noticing that for an OU without any user objects,ADAM
is not brining over the OU. I can't seem to find any reference toADAMlooking for these OU object during Sync.

Am I performing the object-filter correctly, or do I need to
synchronize additional attributes to get empty OUs to appear?

Thanks

Enrico- Hide quoted text -

- Show quoted text -

Lee,

Please disregard that last comment. Since an empty OU doesn't have
any users associated with it, I actually don't need to sync it into my
adam instance.

Thanks again for all of your help.

Enrico

.



Relevant Pages

  • Re: ADAM sync
    ... Is it because of the filter, ... on deletion of the object might help but extensionAttribute7 is an Exchange ... clever with ADAMSync object-filter usually ends in disappointment. ... In principal using ADAMSync aging should help, ...
    (microsoft.public.windows.server.active_directory)
  • Re: Synchronize only attributes you want ADAMSync
    ... way for me to grab user objects from AD via ADAMsync. ... I have been working with the filter: ... However, I am noticing that for an OU without any user objects, ADAM ...
    (microsoft.public.windows.server.active_directory)
  • Re: Synchronize only attributes you want ADAMSync
    ... way for me to grab user objects from AD via ADAMsync. ... I have been working with the filter: ... Since object-filter is an element in an XML ...
    (microsoft.public.windows.server.active_directory)
  • Re: New Eton E5 gloat
    ... Must be the sync is drifting off center ... carrier due to the tone created by the musical note looking like ... I hear this "note-flattening" on music fairly frequently when listening ... Filter selection. ...
    (rec.radio.shortwave)
  • Re: line gain question
    ... Sometimes it will sync and connect first attempt, ... Did you change the ADSL filter after the lighting strike? ... Eveerything I've tried since the lightening strike has ... carrying my router around the house because it was more convenient I ...
    (uk.telecom.broadband)