summaryrefslogtreecommitdiffstats
path: root/einterfaces/ldap.go
diff options
context:
space:
mode:
Diffstat (limited to 'einterfaces/ldap.go')
-rw-r--r--einterfaces/ldap.go22
1 files changed, 22 insertions, 0 deletions
diff --git a/einterfaces/ldap.go b/einterfaces/ldap.go
new file mode 100644
index 000000000..d4bfadc21
--- /dev/null
+++ b/einterfaces/ldap.go
@@ -0,0 +1,22 @@
+// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved.
+// See License.txt for license information.
+
+package einterfaces
+
+import (
+ "github.com/mattermost/platform/model"
+)
+
+type LdapInterface interface {
+ DoLogin(team *model.Team, id string, password string) (*model.User, *model.AppError)
+}
+
+var theLdapInterface LdapInterface
+
+func RegisterLdapInterface(newInterface LdapInterface) {
+ theLdapInterface = newInterface
+}
+
+func GetLdapInterface() LdapInterface {
+ return theLdapInterface
+}