aboutsummaryrefslogtreecommitdiff
path: root/modules/auth/authentication.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2014-05-03 10:48:14 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2014-05-03 10:48:14 +0800
commit79ea34e70ebe989f1a5f8fbd71cfe3109c6f8a58 (patch)
tree066027c6a42b971030e0d8b41ff979bfaa1e25ae /modules/auth/authentication.go
parent8bab21d795a6af7c424e9f8f72d613863cf34a70 (diff)
ldap support
Diffstat (limited to 'modules/auth/authentication.go')
-rw-r--r--modules/auth/authentication.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/auth/authentication.go b/modules/auth/authentication.go
new file mode 100644
index 00000000..5c179f0f
--- /dev/null
+++ b/modules/auth/authentication.go
@@ -0,0 +1,13 @@
+package auth
+
+type AuthenticationForm struct {
+ 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"`
+}