LDAP
From Wikitech
Hosts should be to use LDAP for users and some other stuff.
Things are moving to NIS... very, very slowly...
Contents |
setup LDAP client on new machine
- run /home/wikipedia/bin/setup-ldap
- copy zwinger:/etc/ldap.conf to the new machine
LDAP server is on srv1 (master) and srv2 (slave). failover should be automatic. to add new users, add them on srv1, then run ldapsync. srv2 will update automatically.
Overload
If the local caching daemon nscd dies on clients, the server can get badly overloaded and logins can fail.
If necessary restart it sitewide. :P
Server logging
slapd's logging stuff goes to a channel on syslog that's not logged by default. On a new server, you may have to manually edit syslog.conf and add something for local4.*
Then set an appropriate loglevel in /etc/openldap/slapd.conf
LDAP take 2
Installing/Configuring the server manually
Install required packages
apt-get install openjdk-6-jre openjdk-6-jdk ldap-utils
Initial installation
Create a Basic Directory Information Tree (DIT)
Add a proxy agent
Add the sudoers schema
Enable replication
Install/configure phpldapadmin =
Installing/Configuring the client manually
Install required packages
apt-get install ldap-utils sudo-ldap libpam-ldap libnss-ldap nss-updatedb libnss-db autofs5 autofs5-ldap nscdInstall the server certificate's CA
- Install to /etc/ssl/certs/ldapca.crt
- Run:
pushd /etc/ssl/certs ln -s ldapca.crt $(openssl x509 -hash -noout -in ldapca.crt).0 popd