Ubuntu LDAP Client Installation
Client Configuration
- During the installation of the LDAP client, a pop-up interface will appear, requiring manual configuration (not conducive to automation) LDAP server address: ldap://192.168.2.110 (fill in your own address, not random) dc=mephisto,dc=come
apt-get install -y ldap-utils libpam-ldap libnss-ldap nslcd sudo-ldap
- Add the following line to /etc/nsswitch.conf: ldap
passwd: compat ldap group: compat ldap shadow: compat ldap
- Add the following line to /etc/pam.d/login:
Session required: pam_mkhomedir.so: skel=/etc/skel umask=0022
- /etc/pam.d/common-session (I haven't tested this to see if it's necessary; I haven't had time)
Session required: pam_mkhomedir.so: skel=/etc/skel umask=0022
- update-rc.d nslcd enable
update-rc.d nslcd enable
- /etc/init.d/nscd restart
/etc/init.d/nscd restart
sudo configuration
echo -e "uri ldap://192.168.2.110\nSudoers_base" ou=Sudoers,dc=mephisto.com,dc=com" > /etc/sudo-ldap.conf echo "Sudoers: files ldap" >> /etc/nsswitch.conf
Lastmod: Saturday, August 9, 2025
Copyright statement:
- All content that is not sourced is original., please do not reprint without authorization (because the typesetting is often disordered after reprinting, the content is uncontrollable, and cannot be continuously updated, etc.);
- For non-profit purposes, to deduce any content of this blog, please give the relevant webpage address of this site in the form of 'source of original text' or 'reference link' (for the convenience of readers).
See Also:
- Ubuntu notify-send Scheduled Notifications
- lvs side deployment
- alacritty terminal use
- Building a Raspberry Pi Wireless Router