nss-pam-ldapd: how to setup nss-pam-ldapd

This document tries to describe the steps needed to have a basic setup of having account and group information in LDAP. It does not describe how to set up an LDAP server (there are better documents for that and look into migrationtools), only the client-side stuff.

This document is work-in-progress and specific for Debian.

Another place where you should be able to find some more documentation is the Debian wiki.

Before you begin

You have have an LDAP server available that contains the correct information and is accessable from the client machine.

Step 1: Install packages

apt-get install nslcd libnss-ldapd libpam-ldapd nscd

Answer the installation questions configuring the correct LDAP server (if not all of these questions are asked, don't worry the defaults are usually fine).

Step 2: test

getent passwd
should list users from LDAP
su - nobody -c 'su - USER'
where USER is an LDAP user.

Miscelanious notes