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#*))" cnWould 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#)))" cnWorked 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:- [#1] - http://www.novell.com/coolsolutions/tip/8549.htm
- based on information observed on 2013-04-10