diff options
author | Wim <wim@42.be> | 2016-04-16 20:39:43 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2016-04-16 20:39:43 +0200 |
commit | 51265d546409de12483531773fc1fbc73453ae6e (patch) | |
tree | 924b5be51b320a6fe05784f2495a2bfcfc7a3242 /vendor/github.com/mattermost/platform/einterfaces/ldap.go | |
parent | de4c7804101a47a01d0c9b88ea34d2b153e2b6b9 (diff) | |
download | matterbridge-msglm-51265d546409de12483531773fc1fbc73453ae6e.tar.gz matterbridge-msglm-51265d546409de12483531773fc1fbc73453ae6e.tar.bz2 matterbridge-msglm-51265d546409de12483531773fc1fbc73453ae6e.zip |
Sync with mattermost 2.2.0 release
Diffstat (limited to 'vendor/github.com/mattermost/platform/einterfaces/ldap.go')
-rw-r--r-- | vendor/github.com/mattermost/platform/einterfaces/ldap.go | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/vendor/github.com/mattermost/platform/einterfaces/ldap.go b/vendor/github.com/mattermost/platform/einterfaces/ldap.go new file mode 100644 index 00000000..1c593832 --- /dev/null +++ b/vendor/github.com/mattermost/platform/einterfaces/ldap.go @@ -0,0 +1,24 @@ +// 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) + GetUser(id string) (*model.User, *model.AppError) + CheckPassword(id string, password string) *model.AppError +} + +var theLdapInterface LdapInterface + +func RegisterLdapInterface(newInterface LdapInterface) { + theLdapInterface = newInterface +} + +func GetLdapInterface() LdapInterface { + return theLdapInterface +} |