HP-UX OSRA for Web Services 2.5 Blueprint and Configuration Guide
Integrating the Web Server With LDAP
Integrating LDAP with the web server is simplified by use of the built in LDAP authentication
module auth_ldap.
For details on how to configure auth_ldap, see the auth_ldap documentation at:
http://<servername>.com/hp_docs/apache/apache.admin.guide
Edit the httpd.conf file, identifying the appropriate modules as shown in the following example.
Also include a separate file containing the auth_ldap directives.
/opt/hpws/apache/conf/httpd.conf file:
.
.
LoadModule ldap_module modules/mod_ldap.so
LoadModule auth_ldap_module modules/mod_auth_ldap.so.
.
.
Include conf/ldap.conf
You must configure the auth_ldap module to define how to search the LDAP directory and to
authenticate and authorize user logins.
The following example uses the LDAP configuration where LDAP: Uid 200 and 201 are defined
under ou=People, dc=example, dc=com.
Sample /opt/hpws/apache/conf/ldap.conf file:
# Use ldap to protect the manual directory
<IfModule !mod_auth_ldap.c>
LoadModule auth_ldap_module modules/auth_ldap.so
</IfModule>
<IfModule mod_auth_ldap.c>
LDAPSharedCacheFile logs/ldap_cache
</IfModule>
<Location /manual>
AuthName "Restricted Area"
AuthType Basic
# AuthLDAPURL should point to your ldap server
AuthLDAPURL ldap://hpdhl217.example.com:1389/ou=People,dc=example,dc=com?uid
# AuthLDAPStartTLS on
require valid-user
</Location>
Activate the changes by starting and stopping the web server :
# /opt/hpws/apache/bin/apachectl stop
# /opt/hpws/apache/bin/apachectl start or startssl
You can check the web server error log for any errors.
/opt/hpws/apache/logs/error_log
Integrating the Web Server With LDAP 23