LDAP Flashcards
Check to see if authconfig is installed
rpm -q authconfig
check to see if nss-pam-ldapd is installed
rpm -q nss-pam-ldapd
Necessary packages for LDAP auth
yum install authconfig nss-pam-ldapd openldap openldap-clients -y
how to see the authconfig options ldap options
authconfig –help | grep ldap
What options to use with authconfig
authconfig –enableldap –enableldapauth –ldapserver=ldap://ldap.cert.com –ldapbasedn=”dc=cert,dc=com” –update
restart the local LDAP name service
systemctl restart nslcd.service
What is the nslcd.service?
nslcd is a daemon that will do LDAP queries for local processes based on a simple configuration file.
To create home dir when authenticated with ldap
authconfig –enablemkhomedir –update
Check if ldap is working
su - ldap2
Configuring LDAP with authconfig-tui
cd /etc/openldap/cacerts
wget ftp://ipa.cert.local/pub/ca.cert
restorecon ca.crt
authconfig-tui
Select:
[ ] Use LDAP
[ ] Use LDAP Authentication
[ ] Local authorization is sufficient
Next
Server: ldap://server.cert.com
Base DN: dc=cert, dc=com
Check if none local user is able to auth
getent passwd ldapuser1
Ensure that you are able to connect to the LDAP server
add entry to /etc/hosts
192.168.1.2 hostname.cert.com
Allow connection with through firewalld
firewall-cmd –permanent –add-service=ldap