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