summaryrefslogtreecommitdiffstats
path: root/modules/auth/ldap/ldap.go
diff options
context:
space:
mode:
authorJoseph Crail <jbcrail@gmail.com>2014-12-06 20:22:48 -0500
committerJoseph Crail <jbcrail@gmail.com>2014-12-06 20:22:48 -0500
commit39c068400e9dd3a577580faa41e87140c2d2e499 (patch)
tree96f3d13fa2f884b845c7b1507c1de07927da1617 /modules/auth/ldap/ldap.go
parent47e7175b80d1f1bf05bd2da3a38c898596b12835 (diff)
downloadgitea-39c068400e9dd3a577580faa41e87140c2d2e499.tar.gz
gitea-39c068400e9dd3a577580faa41e87140c2d2e499.zip
Fix spelling errors in comments.
Diffstat (limited to 'modules/auth/ldap/ldap.go')
-rw-r--r--modules/auth/ldap/ldap.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/auth/ldap/ldap.go b/modules/auth/ldap/ldap.go
index 79b59519e2..44c130a104 100644
--- a/modules/auth/ldap/ldap.go
+++ b/modules/auth/ldap/ldap.go
@@ -20,7 +20,7 @@ type Ldapsource struct {
Port int // port number
UseSSL bool // Use SSL
BaseDN string // Base DN
- Attributes string // Attribut to search
+ Attributes string // Attribute to search
Filter string // Query filter to validate entry
MsAdSAFormat string // in the case of MS AD Simple Authen, the format to use (see: http://msdn.microsoft.com/en-us/library/cc223499.aspx)
Enabled bool // if this source is disabled
@@ -37,7 +37,7 @@ func AddSource(name string, host string, port int, usessl bool, basedn string, a
Authensource = append(Authensource, ldaphost)
}
-//LoginUser : try to login an user to LDAP sources, return requested (attribut,true) if ok, ("",false) other wise
+//LoginUser : try to login an user to LDAP sources, return requested (attribute,true) if ok, ("",false) other wise
//First match wins
//Returns first attribute if exists
func LoginUser(name, passwd string) (a string, r bool) {