diff options
author | Thomas Boerger <thomas@webhippie.de> | 2016-11-27 16:21:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-27 16:21:49 +0100 |
commit | 25b5722155c0dc974239f862b3990b7423e28bfb (patch) | |
tree | d849fb1070fe15136538404127099e9a7e0dd302 /modules/auth/ldap | |
parent | e6da2cf2cbff4d550cf938548233a59ceef6528e (diff) | |
parent | d0bef011ad747b11e0ae3eaa8430c493282ec421 (diff) | |
download | gitea-25b5722155c0dc974239f862b3990b7423e28bfb.tar.gz gitea-25b5722155c0dc974239f862b3990b7423e28bfb.zip |
Merge pull request #274 from lunny/lunny/golint_modules_auth
Golint fixed for modules/auth
Diffstat (limited to 'modules/auth/ldap')
-rw-r--r-- | modules/auth/ldap/ldap.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/auth/ldap/ldap.go b/modules/auth/ldap/ldap.go index e2cbf18d98..0cabcb20a0 100644 --- a/modules/auth/ldap/ldap.go +++ b/modules/auth/ldap/ldap.go @@ -16,6 +16,7 @@ import ( "code.gitea.io/gitea/modules/log" ) +// SecurityProtocol protocol type type SecurityProtocol int // Note: new type must be added at the end of list to maintain compatibility. @@ -25,7 +26,7 @@ const ( SecurityProtocolStartTLS ) -// Basic LDAP authentication service +// Source Basic LDAP authentication service type Source struct { Name string // canonical name (ie. corporate.ad) Host string // LDAP host @@ -148,7 +149,7 @@ func bindUser(l *ldap.Conn, userDN, passwd string) error { return err } -// searchEntry : search an LDAP source if an entry (name, passwd) is valid and in the specific filter +// SearchEntry : search an LDAP source if an entry (name, passwd) is valid and in the specific filter func (ls *Source) SearchEntry(name, passwd string, directBind bool) (string, string, string, string, bool, bool) { l, err := dial(ls) if err != nil { |