LDAP-UX Client Services B.05.01 Administrator Guide for HP directory servers and Windows ADS

C Samples of LDAP-UX configuration files created or
modified by autosetup
The sections in this appendix provide samples of the configuration files modified or created by the
autosetup program:
Section C.1: NSS configuration file /etc/nsswitch.conf
Section C.2: PAM configuration file /etc/pam.conf
Section C.3: Startup configuration file /etc/opt/ldapux/ldapux_client.conf
Section C.4: Client daemon configuration file /etc/opt/ldapux/ldapux_client.conf
In the sample files provided in this appendix, changes to the default configuration files made by
autosetup are highlighted in bold print.
C.1 NSS configuration file after autosetup configuration
The autosetup script automatically configures the NSS configuration file /etc/nsswitch.conf
(in addition to the PAM configuration file /etc/pam.conf file, as documented in Section C.2
(page 410)) to support the LDAP backend. To configure the NSS module, autosetup first determines
whether the /etc/nsswitch.conf file exists. If the file does not exist on the system, autosetup
creates the /etc/nsswitch.conf file as shown in the following example. The same file is created
for both HP directory server and Windows ADS environments.
#
# /etc/nsswitch.conf:
#
# The file is created by autosetup of LDAPUX only if the system does
# not have /etc/nsswitch.conf exist during the autosetup is executing.
#
passwd: files ldap
group: files ldap
hosts: dns [NOTFOUND=return] files ldap
ipnodes: dns [NOTFOUND=return] files
networks: files
protocols: files
rpc: files
publickey: files
netgroup: files
automount: files
aliases: files
services: files
C.2 PAM configuration file after autosetup configuration
Section C.2.1 (page 410) includes a sample PAM configuration file created by autosetup for an
HP directory server environment, while Section C.2.2 (page 412) includes a sample created for a
Windows ADS environment.
NOTE: For more information about the structure of the PAM configuration file and how to configure
it, see “Sample PAM configuration (pam.conf) files ” (page 420). For additional information about
PAM and the pam.conf file, see the pam(3) and pam.conf(4) manpages, and the Managing
Systems and Workgroups: A Guide for HP-UX System Administrators document at the following
location:
http://www.hp.com/go/hpux-core-docs (click HP-UX 11i v2)
C.2.1 PAM configuration file for HP directory server environment
In an HP server environment, the autosetup script configures LDAP support by adding, for all
services of each service module type (auth, account, session, and password) defined in the /etc/
410 Samples of LDAP-UX configuration files created or modified by autosetup