diff options
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 +} |