Added LDAP authentication

* ldap authentication functioning