The DirXML-Association Attribute determines the state of the entry's synchronization state for a given DirXML Driver.
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
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
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
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
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
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
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