add ldap validation

added ldap validation on the server side
Merge pull request #79 from metridoc/ldap-config-validation

add ldap validation