Added LDAP authentication

LDAP authentication support, adapted from Prosody’s