fix (#500): ldap issue as reported in #500

This commit is contained in:
Mickael Kerjean 2022-08-28 23:41:20 +10:00
parent bb91f589e1
commit 28c2e5070d

View file

@ -40,8 +40,6 @@ func (this LDAP) Init(params map[string]string, app *App) (IBackend, error) {
if obj := LDAPCache.Get(params); obj != nil {
return obj.(*LDAP), nil
}
params["hostname"] = strings.TrimPrefix("ldap://", params["hostname"])
params["hostname"] = strings.TrimPrefix("ldaps://", params["hostname"])
dialURL := func() string {
if params["port"] == "" {