Authentication for LDAP

Added authentication for LDAP servers, needs to digest MD5 and
credentials to be passed in headers