Scenario details: Test the directory database

After you have entered the employee data into the directory database, test the directory database and Directory Server by doing one of the following:

Search the directory database using your e-mail address book

Information in an LDAP directory can be easily searched by LDAP enabled programs. Many e-mail clients can search LDAP directory servers as part of their address book function. The following are example procedures to configure Lotus Notes 6 and Microsoft Outlook Express 6. The procedure for most other e-mail clients will be similar.

Lotus Notes

  1. Open your address book.
  2. Click Actions —> New —> Account.
  3. Type myiSeries in the Account name field.
  4. Type myiSeries.my_co.com in the Account server name field.
  5. Select LDAP in the Protocol field.
  6. Click the Protocol Configuration tab.
  7. Type dc=my_co,dc=com in the Search base field.
  8. Click Save and close.
  9. Click Create —> Mail —> Memo.
  10. Click Address....
  11. Select myiSeries in the Choose address book field.
  12. Type Alvirez in the Search for field.
  13. Click Search. The data for Jose Alvirez appears

Microsoft Outlook Express

  1. Click Tools —> Accounts.
  2. Click Add —> Directory Service.
  3. Type the Web address of the iSeries in the Internet Directory (LDAP) server field (myiSeries.my_co.com).
  4. Uncheck the My LDAP server requires me to log on check box
  5. Click Next.
  6. Click Next.
  7. Click Finish.
  8. Select myiSeries.my_co.com (the directory service that you just configured) and click Properties.
  9. Click Advanced.
  10. Type dc=my_co,dc=com in the Search base field.
  11. Click Ok.
  12. Click Close.
  13. Type Ctrl+E to open the Find People window.
  14. Select myiSeries.my_co.com from the Look in list.
  15. Type Alvirez in the Name field.
  16. Click Find now. The data for Jose Alvirez appears.

Search the directory database using the ldapsearch command line command

  1. On the character-based interface enter the CL command QSH to open a Qshell session.
  2. Enter the following to retrieve a list of all the LDAP entries in the database.
    ldapsearch –h myiSeries.my_co.com –b dc=my_co,dc=com objectclass=*

    Where:

    –h
    is the name of the host machine running the LDAP server.
    –b
    is the base DN to search under.
    objectclass=*
    returns all of the entries in the directory.
    This command returns something like the following:
     dc=my_co,dc=com
     dc=my_co
     objectclass=domain
     objectclass=top
    
     cn=MyCo employee,dc=my_co,dc=com
    
    .
    .
    .
    
    cn=Jose Alvirez,cn=MyCo Employees,dc=my_co,dc=com
    
    sn=Alvirez
    departmentNumber=DEPTA
    mail=jalvirez@my_co.com
    telephoneNumber=999 999 9999
    objectclass=top
    objectclass=inetOrgPerson
    objectclass=organizationalPerson
    objectclass=person
    cn=Jose Alvirez
    
    .
    .
    .
                                      

    The first line of each entry is called the distinguished name (DN). DNs are like the complete file name of each entry. Some of the entries do not contain data and are only structural. Those with the line objectclass=inetOrgPerson correspond to the entries you created for people. Jose Alvirez's DN is cn=Jose Alvirez,cn=MyCo Employees,dc=my_co,dc=com.