ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzahy_5.4.0.1/rzahyscenariotest.htm

128 lines
6.5 KiB
HTML

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="dc.language" scheme="rfc1766" content="en-us" />
<!-- All rights reserved. Licensed Materials Property of IBM -->
<!-- US Government Users Restricted Rights -->
<!-- Use, duplication or disclosure restricted by -->
<!-- GSA ADP Schedule Contract with IBM Corp. -->
<meta name="dc.date" scheme="iso8601" content="2005-09-06" />
<meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" />
<meta name="security" content="public" />
<meta name="Robots" content="index,follow"/>
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<title>Directory Server (LDAP) - Scenario details: Test the directory database</title>
<link rel="stylesheet" type="text/css" href="ibmidwb.css" />
<link rel="stylesheet" type="text/css" href="ic.css" />
</head>
<body>
<a id="Top_Of_Page" name="Top_Of_Page"></a><!-- Java sync-link -->
<script language = "Javascript" src = "../rzahg/synch.js" type="text/javascript"></script>
<a name="rzahyscenariotest"></a>
<h2 id="rzahyscenariotest">Scenario details: Test the directory database</h2>
<p>After you have entered the employee data into the directory database, test
the directory database and Directory Server by doing one of the following:</p>
<p class="sectionscenariobar"><span class="bold">Search the directory
database using your e-mail address book</span></p>
<p>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.</p><blockquote>
<p><span class="bold">Lotus Notes</span></p>
<ol type="1">
<li>Open your address book.</li>
<li>Click <span class="bold">Actions &mdash;> New &mdash;> Account</span>.</li>
<li>Type <tt class="xph">myiSeries</tt> in the <span class="bold">Account name</span> field.</li>
<li>Type <tt class="xph">myiSeries.my_co.com</tt> in the <span class="bold">Account server name</span> field.</li>
<li>Select <span class="bold">LDAP</span> in the <span class="bold">Protocol</span> field.</li>
<li>Click the <span class="bold">Protocol Configuration</span> tab.</li>
<li>Type <tt class="xph">dc=my_co,dc=com</tt> in the <span class="bold">Search base</span> field.</li>
<li>Click <span class="bold">Save and close</span>.</li>
<li>Click <span class="bold">Create &mdash;> Mail &mdash;> Memo</span>.</li>
<li>Click <span class="bold">Address...</span>.</li>
<li>Select <tt class="xph">myiSeries</tt> in the <span class="bold">Choose address book</span> field.</li>
<li>Type <tt>Alvirez</tt> in the <span class="bold">Search for</span> field.</li>
<li>Click <span class="bold">Search</span>. The data for Jose Alvirez
appears</li></ol>
<p><span class="bold">Microsoft Outlook Express</span></p>
<ol type="1">
<li>Click <span class="bold">Tools &mdash;> Accounts</span>.</li>
<li>Click <span class="bold">Add &mdash;> Directory Service</span>.</li>
<li>Type the Web address of the iSeries in the <span class="bold">Internet Directory (LDAP) server</span> field (<tt class="xph">myiSeries.my_co.com</tt>).</li>
<li>Uncheck the <span class="bold">My LDAP server requires me to log on</span> check
box</li>
<li>Click <span class="bold">Next</span>.</li>
<li>Click <span class="bold">Next</span>.</li>
<li>Click <span class="bold">Finish</span>.</li>
<li>Select <tt class="xph">myiSeries.my_co.com</tt> (the directory service
that you just configured) and click <span class="bold">Properties</span>.</li>
<li>Click <span class="bold">Advanced</span>.</li>
<li>Type <tt>dc=my_co,dc=com</tt> in the <span class="bold">Search base</span> field.</li>
<li>Click <span class="bold">Ok</span>.</li>
<li>Click <span class="bold">Close</span>.</li>
<li>Type <tt class="xph">Ctrl+E</tt> to open the <span class="bold">Find People</span> window.</li>
<li>Select <tt class="xph">myiSeries.my_co.com</tt> from the <span class="bold">Look in</span> list.</li>
<li>Type <tt>Alvirez</tt> in the <span class="bold">Name</span> field.</li>
<li>Click <span class="bold">Find now</span>. The data for Jose Alvirez
appears.</li></ol></blockquote>
<p class="sectionscenariobar"><span class="bold">Search the directory database
using the ldapsearch command line command</span></p>
<ol type="1">
<li>On the character-based interface enter the CL command <span class="bold">QSH</span> to open a Qshell session.</li>
<li>Enter the following to retrieve a list of all the LDAP entries in the
database.
<pre class="xmp">ldapsearch &ndash;h myiSeries.my_co.com &ndash;b dc=my_co,dc=com objectclass=*</pre>
<p>Where: </p>
<dl>
<dt class="bold"><tt class="xph">&ndash;h </tt></dt>
<dd>is the name of the host machine running the LDAP server.
</dd>
<dt class="bold"><tt class="xph">&ndash;b</tt></dt>
<dd>is the base DN to search under.
</dd>
<dt class="bold"><tt class="xph">objectclass=*</tt></dt>
<dd> returns all of the entries in the directory.
</dd>
</dl>This command returns something like the following:
<pre class="xmp"> 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
.
.
.
</pre>
<p>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 <span class="bold">objectclass=inetOrgPerson</span> correspond
to the entries you created for people. Jose Alvirez's DN is <span class="bold">cn=Jose Alvirez,cn=MyCo Employees,dc=my_co,dc=com</span>.</p></li></ol>
<a id="Bot_Of_Page" name="Bot_Of_Page"></a>
</body>
</html>