Monday, August 19, 2013

Configure Linux to use LDAP Server to use LDAP to authenticate


Install packages required


pam_ldap-32bit
pam_ldap
nss_ldap-32bit
nss_ldap

Authentication Methods

change /etc/nsswitch.conf to use local file and ldap
passwd: compat


and append below entry

passwd_compat:  ldap

User credential

/etc/passwd

append below entry to passwd
+::::::

/etc/shadow

append below entry to shadow
+::0:0:0::::

LDAP Information

/etc/ldap.conf
base    dc=goweekend,dc=ca
bind_policy     soft
pam_lookup_policy       yes
pam_password    exop
nss_initgroups_ignoreusers      root,ldap
nss_schema      rfc2307bis
nss_map_attribute       uniqueMember member
ssl     no
uri     ldap://ldap.goweekend.ca
ldap_version    3
pam_filter      objectClass=posixAccount

No comments:

Post a Comment