Novell Home

LDAP Search Examples for Retrieving Associations

Novell Cool Solutions: Tip
By Brent Kynaston

Digg This - Slashdot This

Posted: 19 May 2003
 

DirXML-State

-possible values:
DRIVER_STATE_STOPPED = 0;
DRIVER_STATE_STARTING = 1;
DRIVER_STATE_RUNNING = 2;
DRIVER_STATE_STOPPING = 3;

Example:
ldapsearch -h server.ip.address -D cn=admin,o=baseorg -w mypassword -b "cn=MyDriverName,cn=DriverSetName,ou=services,o=baseorg" objectClass=DirXML-Driver DirXML-State

DirXML-LastLogTime (found on the Publisher/Subscriber objects)

Example:
ldapsearch -h server.ip.address -D cn=admin,o=baseorg -w mypassword -b "cn=Subscriber,cn=MyDriverName,cn=DriverSetName,ou=services,o=baseorg" objectClass=DirXML-Subscriber DirXML-LastLogTime

DirXML-StatusLog (base64 encoded, found on the Publisher/Subscriber objects)

Example:
ldapsearch -h server.ip.address -D cn=admin,o=baseorg -w mypassword -b "cn=Subscriber,cn=MyDriverName,cn=DriverSetName,ou=services,o=baseorg" objectClass=DirXML-Subscriber DirXML-StatusLog

DirXML-Associations

The following are valid values for the association state:

0 DISABLED
1 Processed
2 Pending
3 Manual
4 Migrate
4278190086 ANY

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

The above search would return all objects with a disabled association state for the specified driver set. In order to find the current login time for users that have a processed association to a specific driver, use the following query:

ldapsearch -h server.ip.address -D "cn=admin,o=baseorg" -w mypassword -b o=tmp "(&(objectClass=user)(DirXML-Associations=cn=NDS2NDSPswrdSync,cn=DirXMLDriverSet,ou=dirxml,o=cos#1#*))" loginTime


Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

© 2014 Novell