HP OSMS Blueprint: Directory Services on HP ProLiant Servers with SLES10

9. To verify the LDAP server is configured properly and prepare test data for upcoming
examples, add initial entries to the directory by performing the following substeps.
a. Stop the LDAP server by entering the following command:
# /etc/init.d/cdsserver stop
b. Modify the /opt/symas/etc/openldap/slapd.conf file by uncommenting the
following lines:
include /opt/symas/etc/openldap/schema/ppolicy.schema
include /opt/symas/etc/openldap/schema/cosine.schema
include /opt/symas/etc/openldap/schema/inetorgperson.schema
c. Using a text editor, create an LDIF file, save it as /tmp/example.ldif, and add the
following content:
NOTE: The following abbreviations are used in the file content: Distinguished Name
(dn), Domain Component (dc), and Common Name (cn).
dn: dc=example,dc=com
objectClass: dcObject
objectClass: organization
dc: example
o: example
dn: dc=osm,dc=example,dc=com
objectClass: dcObject
objectClass: organizationalUnit
dc: osm
ou: osm
dn: ou=people,dc=osm,dc=example,dc=com
objectClass: organizationalUnit
ou: people
dn: uid=benw,ou=people,dc=osm,dc=example,dc=com
objectClass: inetOrgPerson
uid: benw
sn: ben
cn: ben won
mail: ben.won@example.com
userPassword: ben
dn: ou=groups,dc=osm,dc=example,dc=com
objectClass: organizationalUnit
ou: groups
dn: cn=tomcat,ou=groups,dc=osm,dc=example,dc=com
objectClass: groupOfUniqueNames
cn: tomcat
uniqueMember: uid=benw,ou=people,dc=osm,dc=example,dc=com
d. Add the entries in the example.ldif file to the LDAP server by entering the following
command:
# /opt/symas/bin/slapadd –f /tmp/example.ldif
NOTE: Verify that the CDS server has been stopped before running the slapadd
command.
e. Start the CDS server and verify the entries were added by entering the following:
# /etc/init.d/cdsserver start
10