Try authentication by LDAP using given configuration.
Try authentication by LDAP using given configuration. Returns Right(LDAPUserInfo) if authentication is successful, otherwise Left(errorMessage).
Creates dummy address (userName@ldap-devnull) for LDAP login.
Creates dummy address (userName@ldap-devnull) for LDAP login.
If mail address is not managed in LDAP server, GitBucket stores this dummy address in first LDAP login. GitBucket does not send any mails to this dummy address. And these users must input their mail address at the first step after LDAP authentication.
Returns true if mail address ends with "@ldap-devnull"
Utility for LDAP authentication.