• Deploy a Debian 12 VM on Google Cloud.
• Set your hostname:
sudo hostnamectl set-hostname client.learn-linux.local
echo "127.0.1.1 client.learn-linux.local ldap" | sudo tee -a /etc/hosts
• Add the LDAP Server’s hostname to the hosts file:
echo "LDAP SERVER IP ADDRESS ldap.learn-linux.local ldap" | sudo tee -a /etc/hosts
• Update the system and install necessary LDAP authentication packages:
sudo apt update && sudo apt upgrade -y
sudo apt install libnss-ldap libpam-ldap ldap-utils nscd -y
• libnss-ldap → Enables system authentication via LDAP.
• libpam-ldap → Integrates LDAP authentication with PAM.
• ldap-utils → Provides ldapsearch and other LDAP tools.
• nscd → Caches LDAP queries for performance.
• During installation, you will be prompted to enter LDAP details. Use these values:
• LDAP Server URI: ldap://ldap.learn-linux.local
• Base DN: dc=learn-linux,dc=local
• Enable: group, passwd and shadow.