General Information
Configuring a client to connect to an existing LDAP server.
In order to test this, you will need to setup a FreeIPA server for the client to authenticate to.
Two different back-end authentication daemons can be used:
FORCELEGACY=yes
To get a reminder of what commands you will need, execute:
authconfig --help | grep ldap
Configuring LDAP authentication with authconfig cli and SSSD.
yum install sssd
authconfig --enableldap --enableldapauth --ldapserver="ipa.example.com" --ldapbasedn="dc=example,dc=com" --enableldapstarttls --enablemkhomedir --update
scp ipa.example.com:/root/cacert.p12 /etc/openldap/cacerts/
ldap_uri = ldap://ipa.example.com ldap_id_use_start_tls = True ldap_tls_cacertdir = /etc/openldap/cacerts ldap_tls_reqcert = never
man sssd-ldap
systemctl restart sssd
Configuring LDAP authentication with authconfig-tui and SSSD back-end.
yum install sssd
authconfig-tui
scp ipa.example.com:/root/cacert.p12 /etc/openldap/cacerts/
authconfig --update --enablemkhomedir
ldap_uri = ldap://ipa.example.com ldap_id_use_start_tls = True ldap_tls_cacertdir = /etc/openldap/cacerts ldap_tls_reqcert = never
systemctl restart sssd
Documented for educational purposes…do not expect a GUI on the exam; learn the authconfig and/or authconfig-tui method
LDAP authentication via GUI setup and nslcd back-end.
Install authconfig gui
yum -y install authconfig-gtk
Open the GUI app
yum install -y nss-pam-ldapd yum install -y pam_krb5
tls_reqcert never
systemctl restart nslcd
Auto mounting NFS shared user home directories.
Install AutoFS and NFS utils
yum -y install autofs nfs-utils
Create a new Master Map autofs file in /etc/auto.master.d/ and have it look to the /etc/auto.home config
vim /etc/auto.master.d/home.autofs # For sub directories of /home/users, look at /etc/auto.home for mappings /home/users /etc/auto.home
Configure the new autofs indirect mappings mount file
vim /etc/auto.home # For any sub directory ("*"), mount read/write from myserver.com:/nfsshare/& * -rw myserver.com:/nfsshare/&
Ensure autofs is started and enabled at boot
systemctl start autofs
systemctl enable autofs