From 28c2e5070d3568838ebb04221adabc0fb25e41fb Mon Sep 17 00:00:00 2001 From: Mickael Kerjean Date: Sun, 28 Aug 2022 23:41:20 +1000 Subject: [PATCH] fix (#500): ldap issue as reported in #500 --- server/plugin/plg_backend_ldap/index.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/server/plugin/plg_backend_ldap/index.go b/server/plugin/plg_backend_ldap/index.go index ba3982e6..6194be9d 100644 --- a/server/plugin/plg_backend_ldap/index.go +++ b/server/plugin/plg_backend_ldap/index.go @@ -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"] == "" {