But I couldn't find nslcd package for centos 5. It seems like it is available only for Centos 6 and above?? What should I do? I'm looking into alternate solutions if that package isn't available
Repos:
CentOS-Base.repo CentOS-Media.repo epel.repo CentOS-Debuginfo.repo CentOS-Vault.repo webtatic-el5.repo
Following packages were installed:
package { "krb5-workstation": ensure => installed }
package { "openldap-clients": ensure => installed }
package { "nss_ldap": ensure => installed }
package { "pam_krb5": ensure => installed }
I want the following content to be in nslcd.conf in order to complete the setup. Any alternate way to get it working?
It seems ldap.conf has similar (nss_map_attribute instead of "map passwd" ) in its default config file. Trying out if it works with some modification.
Code: Select all
# This file is managed by puppet
# nslcd configuration file. See nslcd.conf(5)
# for details.
referrals off
# The user and group nslcd should run as.
uid nslcd
gid nslcd
# The location at which the LDAP server(s) should be reachable.
uri ldap://example.com
# The search base that will be used for all queries.
base dc=example,dc=com
# The LDAP protocol version to use.
ldap_version 3
# The DN to bind with for normal lookups.
binddn CN=Temp User,CN=Users,DC=example,DC=com
bindpw bind_password_here
# The DN used for password modifications by root.
#rootpwmoddn cn=admin,dc=example,dc=com
# SSL options
#ssl off
tls_reqcert never
# The search scope.
scope sub
filter passwd (&(objectClass=user)(!(objectClass=computer))(uidNumber=*)(unixHomeDirectory=*))
map passwd uid sAMAccountName
map passwd uidnumber uidNumber
map passwd homedirectory unixHomeDirectory
map passwd loginshell loginShell
map passwd gecos displayName
filter shadow (&(objectClass=user)(!(userAccountControl:1.2.840.113556.1.4.803:=2))(!(objectClass=computer))(uidNumber=*)(unixHomeDirectory=*))
map shadow uid sAMAccountName
filter group (&(objectClass=group)(gidNumber=*))
~