aboutsummaryrefslogtreecommitdiff
path: root/modules/auth/authentication.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2014-05-05 16:42:15 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2014-05-05 16:42:15 +0800
commitd8136c9c3cf0f7d84510402f01cbe07a656a0587 (patch)
tree2a1a7553a111a008a0322625c30130ca952b6acd /modules/auth/authentication.go
parent02687cbdf37be3c89005abe45c7d1f6240e339e0 (diff)
parent1652dd5068f2f3ae1851bc2321832c88af85d570 (diff)
Merge branch 'dev-ldap' into dev
Diffstat (limited to 'modules/auth/authentication.go')
-rw-r--r--modules/auth/authentication.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/modules/auth/authentication.go b/modules/auth/authentication.go
new file mode 100644
index 00000000..d9c61b9d
--- /dev/null
+++ b/modules/auth/authentication.go
@@ -0,0 +1,15 @@
+package auth
+
+type AuthenticationForm struct {
+ Id int64 `form:"id"`
+ Type int `form:"type"`
+ Name string `form:"name" binding:"MaxSize(50)"`
+ Domain string `form:"domain"`
+ Host string `form:"host"`
+ Port int `form:"port"`
+ BaseDN string `form:"base_dn"`
+ Attributes string `form:"attributes"`
+ Filter string `form:"filter"`
+ MsAdSA string `form:"ms_ad_sa"`
+ IsActived bool `form:"is_actived"`
+}