python-ldap waits for a server without end, to connect and for each answer: a directory that stopped answering held every login's thread. The settings template's LDAP block sets 5 seconds to connect and 10 for each answer.