admin / ldapconfig

Last active 1 month ago

Like 0

Revision 71c4aac1765e490ee39948dad00c3520ca5e4a4f

ldapconfig Raw
1If it's plain OpenLDAP
2The libpam-ldapd route is the least painful because the installer prompts you interactively and auto-configures nsswitch.conf + PAM:
3
4sudo apt install libnss-ldapd libpam-ldapd
5
6When it prompts, just fill in:
7
8LDAP server URI: ldap://your-server:389
9Search base: dc=example,dc=com
10Check passwd, group, shadow
11Then set the bind DN/password:
12
13sudo nano /etc/nslcd.conf
14
15binddn "cn=readonly,dc=example,dc=com"
16bindpw your-password
17
18sudo systemctl restart nslcd
19sudo reboot
20
21