summaryrefslogtreecommitdiffstats
path: root/app/ldap.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/ldap.go
parent937b6480d534b3051cadf4a892a9aa210bec579a (diff)
downloadchat-9db4666a657bf137b371b9163a60e9c818ea31f3.tar.gz
chat-9db4666a657bf137b371b9163a60e9c818ea31f3.tar.bz2
chat-9db4666a657bf137b371b9163a60e9c818ea31f3.zip
ldap: Add own ldap authenticationspline
Diffstat (limited to 'app/ldap.go')
-rw-r--r--app/ldap.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/ldap.go b/app/ldap.go
index 544905b70..a73760263 100644
--- a/app/ldap.go
+++ b/app/ldap.go
@@ -15,7 +15,7 @@ import (
func (a *App) SyncLdap() {
a.Go(func() {
- if license := a.License(); license != nil && *license.Features.LDAP && *a.Config().LdapSettings.EnableSync {
+ if *a.Config().LdapSettings.EnableSync {
if ldapI := a.Ldap; ldapI != nil {
ldapI.StartSynchronizeJob(false)
} else {
@@ -26,8 +26,7 @@ func (a *App) SyncLdap() {
}
func (a *App) TestLdap() *model.AppError {
- license := a.License()
- if ldapI := a.Ldap; ldapI != nil && license != nil && *license.Features.LDAP && (*a.Config().LdapSettings.Enable || *a.Config().LdapSettings.EnableSync) {
+ if ldapI := a.Ldap; ldapI != nil && (*a.Config().LdapSettings.Enable || *a.Config().LdapSettings.EnableSync) {
if err := ldapI.RunTest(); err != nil {
err.StatusCode = 500
return err