HP Open Source Middleware Stacks Blueprints: LAMP Architecture on HP ProLiant BladeSystem Servers on SLES
data arrives, the LDAP directory looks at all entries to find a unique match. If it is found,
mod_authnz_ldap uses the domain name (DN) of the entry and the password provided by the
HTTP client to bind the directory server.
Configuring CDS and LDAP Services
Use the following procedure to configure the CDS and LDAP services:
NOTE: In the steps for this procedure:
rootdn is set to"cn=Manager,dc=example,dc=com"
rootpw is set to secret in the slapd.conf file
1. Create a file named webbase.ldif that contains the following lines:
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=tomy,ou=people,dc=osm,dc=example,dc=com
objectClass: inetOrgPerson
uid: tomy
sn: tom
cn: tom yan
mail:tom.yan@example.com
carLicense:sea4321
userPassword: tom
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
2. Add these records into the directory using the ldapadd command by entering the following
command:
# /opt/symas/bin/ldapadd -x -D " cn=Manager,dc=example,dc=com " \
-w secret –f webbase.ldif
Secure the Web Server Stack 25