cmdref.net - Cheat Sheet and Example

cmdref.net is command references/cheat sheets/examples for system engineers.

User Tools

Site Tools


Sidebar








Cloud



Etc


Reference














.

os:linux:user:ldap:index.html



Linux

LDAP - How to Configure LDAP in Linux

Install

RHEL6/CentOS6

# yum  install openldap-clients nss-pam-ldapd


Configuration

/etc/nsswitch.conf

passwd:     files ldap
shadow:     files ldap
group:      files ldap 

hosts:      files dns

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files ldap

netgroup:   files ldap

publickey:  nisplus

automount:  files ldap
aliases:    files nisplus

/etc/pam_ldap.conf (/etc/ldap.conf)

RHEL6/CentOS6 : /etc/pam_ldap.conf
RHEL5/CentOS5 : /etc/ldap.conf

LDAP pluggable authentication module

/etc/pam.d/system-auth (/etc/pam.d/system-auth-ac)

lrwxrwxrwx 1 root root    14 Apr 23  2014 system-auth -> system-auth-ac

/etc/pam.d/password-auth (/etc/pam.d/password-auth-ac)

After RHEL6/CentOS6

/etc/nslcd.conf

configuration file for LDAP nameservice daemon
After RHEL6/CentOS6


Check

# getent passwd
# getent group
# id USER



os/linux/user/ldap/index.html.txt ยท Last modified: 2017/05/14 by admin

Page Tools