diff options
author | Unknwon <u@gogs.io> | 2015-09-14 15:48:51 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-09-14 15:48:51 -0400 |
commit | f5c7f22cc8595a81b5d9f9da4a0a29faf2dbbdce (patch) | |
tree | af338ee4d3f7ca0edec0f8e1159b52d69da5f912 /routers | |
parent | 2bc3e83e1ce89a6c250116216a93da3a401127db (diff) | |
download | gitea-f5c7f22cc8595a81b5d9f9da4a0a29faf2dbbdce.tar.gz gitea-f5c7f22cc8595a81b5d9f9da4a0a29faf2dbbdce.zip |
#1637 able to skip verify for LDAP
Diffstat (limited to 'routers')
-rw-r--r-- | routers/admin/auths.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/routers/admin/auths.go b/routers/admin/auths.go index a218ee09b7..e264f7a8ba 100644 --- a/routers/admin/auths.go +++ b/routers/admin/auths.go @@ -67,11 +67,12 @@ func NewAuthSource(ctx *middleware.Context) { func parseLDAPConfig(form auth.AuthenticationForm) *models.LDAPConfig { return &models.LDAPConfig{ - Ldapsource: ldap.Ldapsource{ + Source: &ldap.Source{ Name: form.Name, Host: form.Host, Port: form.Port, UseSSL: form.TLS, + SkipVerify: form.SkipVerify, BindDN: form.BindDN, UserDN: form.UserDN, BindPassword: form.BindPassword, |