Overview #

We show how To Determine the State of DirXML-Associations for any entry using Ldapsearch command utility.

The DirXML-Association Attribute determines the state of the entry's synchronization state for a given DirXML Driver.

Find disabled DirXML Association State #

The search to return all objects with a disabled association state for the specified driver set:
 
ldapsearch -h server.ip.address -D cn=admin,o=baseorg -w mypassword -b o=adm "DirXML-Associations=cn=MyDriverName,cn=DriverSetName,ou=services,o=baseorg#0#" cn 

Find Associated (ie Processed) DirXML Association state #

The search to return all objects with a Associated (ie Processed) state for the specified driver set:
 
ldapsearch -h server.ip.address -D cn=admin,o=baseorg -w mypassword -b o=adm "DirXML-Associations=cn=MyDriverName,cn=DriverSetName,ou=services,o=baseorg#1#*" cn 

Find Pending DirXML Association state #

The search to return all objects with a Pending state for the specified driver set:
 
ldapsearch -h server.ip.address -D cn=admin,o=baseorg -w mypassword -b o=adm "DirXML-Associations=cn=MyDriverName,cn=DriverSetName,ou=services,o=baseorg#2#" cn 

Find Manual DirXML Association state #

The search to return all objects with a Manual state for the specified driver set:
 
ldapsearch -h server.ip.address -D cn=admin,o=baseorg -w mypassword -b o=adm "DirXML-Associations=cn=MyDriverName,cn=DriverSetName,ou=services,o=baseorg#3#" cn 

Find Migrate DirXML Association state #

The search to return all objects with a Migrate state for the specified driver set:
 
ldapsearch -h server.ip.address -D cn=admin,o=baseorg -w mypassword -b o=adm "DirXML-Associations=cn=MyDriverName,cn=DriverSetName,ou=services,o=baseorg#4#" cn 

Find ANY DirXML Association state #

The search to return all objects with a Migrate state for the specified driver set:
 
ldapsearch -h server.ip.address -D cn=admin,o=baseorg -w mypassword -b o=adm "DirXML-Associations=cn=MyDriverName,cn=DriverSetName,ou=services,o=baseorg#4278190086#*" cn 

Find those entries with NO Association #

Now one would think that a query like:
 
ldapsearch -h server.ip.address -D cn=admin,o=baseorg -w mypassword -b o=adm "(!(DirXML-Associations=cn=MyDriverName,cn=DriverSetName,ou=services,o=baseorg#4278190086#*))" cn 
Would return only the entries with no value. This does not seem to work. The result set has values like:
 
DirXML-Associations=cn=MyDriverName,cn=DriverSetName,ou=services,o=baseorg#4# 
))) 

So trying: 
{{{ 
ldapsearch -h server.ip.address -D cn=admin,o=baseorg -w mypassword -b o=adm "(&(!(DirXML-Associations=cn=MyDriverName,cn=DriverSetName,ou=services,o=baseorg#4278190086#*))(!(DirXML-Associations=cn=MyDriverName,cn=DriverSetName,ou=services,o=baseorg#4#)))" cn 
Worked for us.

Let us know if you find some other items about Determine the State of DirXML-Associations

More Information #

There might be more information for this subject on one of the following:

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-15) was last changed on 04-Nov-2014 16:52 by jim