aboutsummaryrefslogtreecommitdiff
path: root/modules/auth/auth_form.go
diff options
context:
space:
mode:
author无闻 <u@gogs.io>2015-02-23 13:41:29 -0500
committer无闻 <u@gogs.io>2015-02-23 13:41:29 -0500
commitcd8b43d9844cb0de3ef7887178140f1dc43ec72c (patch)
treecbb401237beac8b18145ac8186f30d2c113f131a /modules/auth/auth_form.go
parent2369881808a906f3072c935ab0575f08bd358821 (diff)
parent00653e52ee078ae76872f722f056805fb75d98af (diff)
Merge pull request #915 from Lafriks/dev
Get username, name, surname and e-mail from LDAP server
Diffstat (limited to 'modules/auth/auth_form.go')
-rw-r--r--modules/auth/auth_form.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/auth/auth_form.go b/modules/auth/auth_form.go
index e9789634..c7b93896 100644
--- a/modules/auth/auth_form.go
+++ b/modules/auth/auth_form.go
@@ -18,7 +18,10 @@ type AuthenticationForm struct {
Port int `form:"port"`
UseSSL bool `form:"usessl"`
BaseDN string `form:"base_dn"`
- Attributes string `form:"attributes"`
+ AttributeUsername string `form:"attribute_username"`
+ AttributeName string `form:"attribute_name"`
+ AttributeSurname string `form:"attribute_surname"`
+ AttributeMail string `form:"attribute_mail"`
Filter string `form:"filter"`
MsAdSA string `form:"ms_ad_sa"`
IsActived bool `form:"is_actived"`