[SoftNAS KB]: Configure a CentOS/AWS Linux based Client for SoftNAS LDAP Server
Symptoms
You need to add a SoftNAS deployment to a LDAP Server.
Purpose
This article assumes the SoftNAS LDAP server is the Test Server Created in the SoftNAS LDAP Server Article.
However, these steps will work by replacing the relevant data to access existing LDAP Servers.
SoftNAS provides limited Support for LDAP integration.
As root:
yum -y install openldap-clients nss-pam-ldapdonano /etc/openldap/ldap.conf (add the following lines at the end):URI ldap://x.x.x.x/
BASE dc=softnasdomain,dc=com
TLS_CACERTDIR /etc/openldap/certs
nano /etc/nslcd.conf(add the following):uri ldap://x.x.x.x/
base dc=softnasdomain,dc=com
ssl no
tls_cacertdir /etc/openldap/certs
nano /etc/pam_ldap.conf( add the following):base dc=softnasdomain,dc=com
# add at the last line
uri ldap://x.x.x.x/
ssl no
tls_cacertdir /etc/openldap/certs
pam_password md5
--ALSO, add the following line in /etc/pam.d/system-auth:
account [default=bad success=ok user_unknown=ignore] pam_ldap.so
REFER TO IMAGE ONE
REFER TO IMAGE TWO
nano etc/sysconfig/authconfig# line 18: change
USELDAP= yes
chkconfig nslcd onreboot
----Optionally--- Users and groups can be added in Webmin for LDAP using the LDAP User and
Groups module after all the above is setup.