nslcd(8)

๐Ÿ“ฆ
version 0.9.13 ยท 5 versions
, in arch rolling, debian trixie, nixos 26.05, nixpkgs unstable, ubuntu questing, ubuntu resolute, ubuntu stonking

๐Ÿ’– nslcd โ€” local LDAP name service daemon ๐Ÿ’–

okay bestie, sit down, hydrate, and let me tell you about nslcd(8) from the System Manager's Manual โ€” she's the daemon that goes and asks LDAP all your naming questions so your local processes don't have to ๐Ÿซถ


โœจ NAME โœจ

nslcd โ€” local LDAP name service daemon ๐Ÿ’…


๐ŸŽ€ SYNOPSIS ๐ŸŽ€

nslcd [options]

๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

So nslcd is a daemon that does LDAP queries on behalf of local processes that want to do user, group and other naming lookups โ€” that's NSS โ€” or that want to do user authentication, authorisation or password modification โ€” that's PAM. she's basically the middle bestie between your machine and the directory server, no cap โœจ

nslcd gets configured through a configuration file (peep nslcd.conf(5) if you wanna see her settings, iykyk).

Also, lowkey important: see the included README for the deets on configuring the LDAP server itself. that part is not in this page, bestie, go read the README ๐Ÿ’–


๐ŸŒธ OPTIONS ๐ŸŒธ

nslcd accepts the following options:

  • -c, --check โ€” checks if the daemon is running. this makes nslcd return 0 if the daemon is already running and 1 if it is not. vibe check for the daemon itself, fr fr โœจ
  • -d, --debug โ€” turns on debugging mode. nslcd will not put itself in the background, and it sends verbose debugging info to stderr. nslcd will handle connections as usual though. this option is for debugging purposes only โ€” specify this option multiple times to also include more detailed logging from the LDAP library ๐Ÿ”ฅ
  • -n, --nofork โ€” do not fork or daemonise, and run nslcd in the foreground. main character stays visible ๐Ÿ’…
  • -f, --config FILE โ€” parse the supplied configuration file in place of the default /etc/nslcd.conf file.
  • -t, --test โ€” validate the configuration and exit. this performs syntax checking of the configuration, checks for presence of files referred in the configuration and does some minimal other sanity checking. this makes nslcd return 0 if the configuration appears valid and 1 if it is not. it's giving "read the receipt before you buy" ๐Ÿงพโœจ
  • --help โ€” display short help and exit. ๐Ÿซถ
  • -V, --version โ€” output version information and exit.

๐Ÿ’œ SIGNALS ๐Ÿ’œ

  • SIGTERM/SIGINT โ€” cancel any running queries and exit. she's done, she's leaving, periodt โœŒ๏ธ
  • SIGUSR1 โ€” cause nslcd to retry any failing connections to the LDAP server, regardless of the reconnect_sleeptime and reconnect_retrytime options. like, she does not care what the config says about waiting, she's trying again rn ๐Ÿ”ฅ

๐Ÿ“ FILES ๐Ÿ“

  • /etc/nslcd.conf โ€” the configuration file (see nslcd.conf(5))

๐ŸŒˆ SEE ALSO ๐ŸŒˆ


๐Ÿ‘‘ AUTHOR ๐Ÿ‘‘

This manual was written by Arthur de Jong <arthur@arthurdejong.org>.


and that's the whole page, bestie!! ๐ŸŽ€ she's Version 0.9.13, dated Feb 2025, and this whole glow-up was nslcd(8) โ€” go forth and LDAP responsibly, you ate ๐Ÿ’…โœจ๐Ÿ’–