From 9db4666a657bf137b371b9163a60e9c818ea31f3 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Sat, 27 Oct 2018 10:20:02 +0200 Subject: ldap: Add own ldap authentication --- app/authentication.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'app/authentication.go') diff --git a/app/authentication.go b/app/authentication.go index 566eac804..ef200ed2b 100644 --- a/app/authentication.go +++ b/app/authentication.go @@ -181,8 +181,7 @@ func checkUserNotDisabled(user *model.User) *model.AppError { } func (a *App) authenticateUser(user *model.User, password, mfaToken string) (*model.User, *model.AppError) { - license := a.License() - ldapAvailable := *a.Config().LdapSettings.Enable && a.Ldap != nil && license != nil && *license.Features.LDAP + ldapAvailable := *a.Config().LdapSettings.Enable && a.Ldap != nil if user.AuthService == model.USER_AUTH_SERVICE_LDAP { if !ldapAvailable { -- cgit v1.2.3-1-g7c22