Comments on How to set up OpenLDAP Client on Debian 10

In this tutorial, I will show you how to install and configure an OpenLDAP client using the Debian 10 Buster.

2 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Metta Crawler

You should not install the libpam-ldap package. It is old and does not do automatic /etc/nsswitch.conf and automatic PAM configuration.

The new package is libpam-ldapd (with a "d" on the end) and it automatically configures /etc/nsswitch.conf and PAM. You just have to update /etc/nslcd.conf to have an account that can bind. Update binddn and bindpw in /etc/nslcd.conf and optionally run pam-auth-update to set the control that creates home directories automatically at login.

 

By: Golle

Hello and thank you for a very helpful and useful guide.

I think the guide is a bit outdated now though, I did find this way much smoother in the end, it automates many of the steps your guide performs manually:

apt install libnss-ldapd libpam-ldapd

echo "session optional pam_mkhomedir.so skel=/etc/skel umask=077" >> /etc/pam.d/common-session