Sunday, November 15, 2009

few commands in ITDS

1. Use the ldapQuery script to issue an LDAP search

ldapQuery.bat and ldapQuery.sh

Then input the user to be searched in format:

ldapsearch -D cn=root -w password -b dc=edu,dc=,dc=com (objectclass=*)
ldapsearch -D cn=root -w password -b cn=sunil*

2. To start/stop ITDS LDAP Server instance
ibmdirctl -D cn=root -w password start
ibmdirctl -D cn=root -w password stop

3. To start/stop ITDS Admin Daemon
ibmdirctl -D cn=root -w password admstop
ibmdiradm& - to start

4. To check the LDAP Server status
ibmdirctl -D cn=root -w password status

5. Create a group in ITDS LDAP
Prepare an LDIF file with the following content:

dn: cn=groupname,cn=groups
objectclass: groupOfNames
objectclass: top
cn: groupname
owner: cn=ITDS Admins,cn=groups
member: cn=Sunil Sagar,dc=edu,dc=,dc=com


NOTE: Member is a required attribute. If not included, you will receive ObjectClass violation error.

ldapmodify –a –c –D adminID -w adminPW –h hostname -p -i ldif_file_name

No comments: