pam_ldap(8)
π pam_ldap β the PAM module that hits up LDAP for auth π
okay so bestie, this is pam_ldap(8) from the System Manager's Manual, and it's literally the glow-up your login stack needed. sit down, grab a boba, and let's get into it π§β¨
β¨ NAME β¨
pam_ldap β a PAM module for LDAP-based authentication π«Ά
πΈ SYNOPSIS πΈ
pam_ldap.so [...]
that's it. that's the whole vibe. the [...] is where all your little option besties go π
π DESCRIPTION π
This is a PAM module that uses an LDAP server to verify user access rights and credentials. so like, when someone tries to log in, this module is the one sliding into your LDAP directory like "hey, do we know her? is the password giving?" and then it reports back. no cap. π
π OPTIONS π
every option is a little accessory and you can stack them. here's the full collection, no skips, no cuts:
use_first_passβ tells the PAM module to use the first password provided in the authentication stack and not prompt the user for a password. like, we already have a password bestie, we're not asking twice π ββοΈtry_first_passβ tells the PAM module to use the first password provided in the authentication stack, and if that fails, prompt the user for a password. so it'suse_first_passwith a lil backup plan πnullokβ specifying this option allows users to log in with a blank password π normally logins without a password are denied. so like... this one is a choice, and you should know it's a choice.ignore_unknown_userβ tells the PAM module to returnPAM_IGNOREfor users that are not present in the LDAP directory. this causes the PAM framework to ignore this module. stranger danger protocol activated π¦ignore_authinfo_unavailβ tells the PAM module to returnPAM_IGNOREif it cannot contact the LDAP server. this causes the PAM framework to ignore this module. server's not picking up the phone? okay, we move on β¨no_warnβ tells the PAM module that warning messages should not be propagated to the PAM application. keeping it lowkey π€«use_authtokβ this causes the PAM module to use the earlier provided password when changing the password. the module will not prompt the user for a new password (it is analogous touse_first_pass). recycling era β»οΈdebugβ this option causes the PAM module to log debugging information tosyslog(3). when it's not working and you need to know why, turn this on and let it yap πminimum_uid=UIDβ this option causes the PAM module to ignore the user if the user id is lower than the specified value. this can be used to bypass LDAP checks for system users (e.g. by setting it to1000). protect the system girlies π
π MODULE SERVICES PROVIDED π
All services are provided by this module, but currently sessions changes are not implemented in the nslcd daemon. so like... it's giving everything, except that one thing. noted. π
π¦ FILES π¦
/etc/pam.confβ the main PAM configuration file ποΈ/etc/nslcd.confβ the configuration file for thenslcddaemon (seenslcd.conf(5)) ποΈ
β SEE ALSO β
pam.conf(5), nslcd(8), nslcd.conf(5)
go read those too, they're the supporting cast and they ate π
π AUTHOR π
This manual was written by Arthur de Jong <arthur@arthurdejong.org>. iconic behavior, honestly. π«Ά
and that's the whole page bestie, you're now fully fluent in pam_ldap β¨
Version 0.9.13 Β· Feb 2025 Β· mwah, love u, go authenticate something ππ
π¦ where this page comes from
- arch rolling: nss-pam-ldapd 0.9.13-1 Β· LGPL2.1
- debian trixie: libpam-ldapd 0.9.13-1
- nixos 26.05: nss-pam-ldapd 0.9.13
- nixpkgs unstable: nss-pam-ldapd 0.9.13
- ubuntu questing: libpam-ldapd 0.9.13-1
- ubuntu questing: libpam-ldapd 0.9.13-1ubuntu0.1
- ubuntu resolute: libpam-ldapd 0.9.13-2ubuntu2
- ubuntu stonking: libpam-ldapd 0.9.13-2ubuntu2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms