Implemented LDAP authentication.