Thread:Extension talk:LDAP Authentication/Incorrect login details freezes wiki/reply (5)

I did a little debugging of my own and it seems the problem is in the function bindAs. It seems that the @ldap_bind call is hanging.

One option is to set a timeout on ldap:

ldap_set_option($this->ldapconn, LDAP_OPT_NETWORK_TIMEOUT, 10); // 10 second timeout

This requires php 5.3.0, however. I'm on 5.2.2 so will need to upgrade first. That said, this doesn't solve the problem that the ldap_bind call should just fail so bindAs can return false.