diff --git a/einterfaces/ldap.go b/einterfaces/ldap.go index 395401cfb5..88c4a6359a 100644 --- a/einterfaces/ldap.go +++ b/einterfaces/ldap.go @@ -24,5 +24,6 @@ type LdapInterface interface { FirstLoginSync(user *model.User, userAuthService, userAuthData, email string) *model.AppError UpdateProfilePictureIfNecessary(model.User, model.Session) GetADLdapIdFromSAMLId(authData string) string + GetSAMLIdFromADLdapId(authData string) string GetVendorNameAndVendorVersion() (string, string) } diff --git a/einterfaces/mocks/LdapInterface.go b/einterfaces/mocks/LdapInterface.go index 6694081187..29e71883d1 100644 --- a/einterfaces/mocks/LdapInterface.go +++ b/einterfaces/mocks/LdapInterface.go @@ -197,6 +197,20 @@ func (_m *LdapInterface) GetGroup(groupUID string) (*model.Group, *model.AppErro return r0, r1 } +// GetSAMLIdFromADLdapId provides a mock function with given fields: authData +func (_m *LdapInterface) GetSAMLIdFromADLdapId(authData string) string { + ret := _m.Called(authData) + + var r0 string + if rf, ok := ret.Get(0).(func(string) string); ok { + r0 = rf(authData) + } else { + r0 = ret.Get(0).(string) + } + + return r0 +} + // GetUser provides a mock function with given fields: id func (_m *LdapInterface) GetUser(id string) (*model.User, *model.AppError) { ret := _m.Called(id)