summaryrefslogtreecommitdiffstats
path: root/einterfaces/ldap.go
diff options
context:
space:
mode:
Diffstat (limited to 'einterfaces/ldap.go')
-rw-r--r--einterfaces/ldap.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/einterfaces/ldap.go b/einterfaces/ldap.go
index 26326b174..31e8b7cf8 100644
--- a/einterfaces/ldap.go
+++ b/einterfaces/ldap.go
@@ -4,8 +4,6 @@
package einterfaces
import (
- "github.com/go-ldap/ldap"
-
"github.com/mattermost/mattermost-server/model"
)
@@ -14,12 +12,11 @@ type LdapInterface interface {
GetUser(id string) (*model.User, *model.AppError)
GetUserAttributes(id string, attributes []string) (map[string]string, *model.AppError)
CheckPassword(id string, password string) *model.AppError
+ CheckPasswordAuthData(authData string, password string) *model.AppError
SwitchToLdap(userId, ldapId, ldapPassword string) *model.AppError
ValidateFilter(filter string) *model.AppError
StartSynchronizeJob(waitForJobToFinish bool) (*model.Job, *model.AppError)
RunTest() *model.AppError
GetAllLdapUsers() ([]*model.User, *model.AppError)
- UserFromLdapUser(ldapUser *ldap.Entry) *model.User
- UserHasUpdateFromLdap(existingUser *model.User, currentLdapUser *model.User) bool
- UpdateLocalLdapUser(existingUser *model.User, currentLdapUser *model.User) *model.User
+ MigrateIDAttribute(toAttribute string) error
}