]> source.dussan.org Git - gitea.git/commit
Add ServerName to tls.Config in LDAP auth (#3104)
authorPaul Tötterman <ptman@users.noreply.github.com>
Wed, 1 Jun 2016 08:11:28 +0000 (11:11 +0300)
committerUnknwon <u@gogs.io>
Wed, 1 Jun 2016 08:11:28 +0000 (01:11 -0700)
commitfb970b9d87ef662e429e651da459445d91020ccf
treec0389cdb86c53d18cd15f9e9d33da5b89d98c683
parent0240f520ab2565749b7244e79ca2f30f780af46d
Add ServerName to tls.Config in LDAP auth (#3104)

From https://godoc.org/crypto/tls#Config

    ServerName is used to verify the hostname on the returned
    certificates unless InsecureSkipVerify is given. It is also included
    in the client's handshake to support virtual hosting unless it is
    an IP address.

This is needed for certificate validation without InsecureSkipVerify.
modules/auth/ldap/ldap.go