host node18
base dc=dom18,dc=linux,dc=com
ldap_version 3
Modify /etc/nsswitch.conf
passwd: files ldap
group: files ldap
shadow: files ldap
#
hosts: files dns ldap
networks: files ldap
#
protocols: db files
services: db files
ethers: db files
rpc: db files
#
netgroup: nis
automount: ldap
Backup PAM config files in /etc/pam.d for services that need
LDAP authentication and copy modules with the same names from /usr/share/doc/libpam-ldap/examples/pam.d. For example,