5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-12-27 12:25:40 +00:00
matterbridge/vendor/github.com/mattermost/platform/einterfaces/ldap.go

32 lines
840 B
Go
Raw Normal View History

2016-04-16 18:39:43 +00:00
// 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 {
2016-05-15 21:02:30 +00:00
DoLogin(id string, password string) (*model.User, *model.AppError)
2016-04-16 18:39:43 +00:00
GetUser(id string) (*model.User, *model.AppError)
CheckPassword(id string, password string) *model.AppError
2016-05-15 21:02:30 +00:00
SwitchToLdap(userId, ldapId, ldapPassword string) *model.AppError
ValidateFilter(filter string) *model.AppError
2016-06-23 18:28:05 +00:00
Syncronize() *model.AppError
StartLdapSyncJob()
2016-08-15 16:47:31 +00:00
SyncNow()
2016-09-17 13:19:18 +00:00
RunTest() *model.AppError
2016-08-15 16:47:31 +00:00
GetAllLdapUsers() ([]*model.User, *model.AppError)
2016-04-16 18:39:43 +00:00
}
var theLdapInterface LdapInterface
func RegisterLdapInterface(newInterface LdapInterface) {
theLdapInterface = newInterface
}
func GetLdapInterface() LdapInterface {
return theLdapInterface
}