summaryrefslogtreecommitdiffstats
path: root/app/authentication.go
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2018-10-27 10:20:02 +0200
committerAlexander Sulfrian <asulfrian@zedat.fu-berlin.de>2020-01-07 18:41:37 +0100
commit9db4666a657bf137b371b9163a60e9c818ea31f3 (patch)
treed9dd69aea7e9443b46387aae5bfb4efbd41a65c2 /app/authentication.go
parent937b6480d534b3051cadf4a892a9aa210bec579a (diff)
downloadchat-spline.tar.gz
chat-spline.tar.bz2
chat-spline.zip
ldap: Add own ldap authenticationspline
Diffstat (limited to 'app/authentication.go')
-rw-r--r--app/authentication.go3
1 files changed, 1 insertions, 2 deletions
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 {