Adds LDAP support to debug authentication.