...
Not tested (may all be done by the commands above): if running or using any of avahi, CUPS, ejabberd, Exim, /etc/motd, OpenSSH server, ssmtp or sysklogd then read the Debian WIKI page on changing hostname.
Change the ldap
...
client's uri
- edit /etc/ldap.conf
- replace the uri=service.av to the appropriate hostname. Note: if the uri=///ldapi or anything else of the kind, leave it
- service slapd restart
...