Correct typo for LDAP authentication
Add support for HTTPS
URL encode both username and password