summaryrefslogtreecommitdiffstats
path: root/api/authentication.go
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2016-05-12 21:36:02 -0400
committerCorey Hulen <corey@hulen.com>2016-05-12 18:36:02 -0700
commit4f22cbc92bf131fe37dbed43a4154a43e344d8cf (patch)
tree259fa2e8061214e2a1081396a596ddb571128dd1 /api/authentication.go
parent94f8be51f91203d5d6ccbd99dd721b7e945791bf (diff)
downloadchat-4f22cbc92bf131fe37dbed43a4154a43e344d8cf.tar.gz
chat-4f22cbc92bf131fe37dbed43a4154a43e344d8cf.tar.bz2
chat-4f22cbc92bf131fe37dbed43a4154a43e344d8cf.zip
Stopped login code from falling back to LDAP when it's disabled (#2986)
Diffstat (limited to 'api/authentication.go')
-rw-r--r--api/authentication.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/authentication.go b/api/authentication.go
index 9243947ad..d30fc0a1f 100644
--- a/api/authentication.go
+++ b/api/authentication.go
@@ -127,7 +127,7 @@ func checkUserNotDisabled(user *model.User) *model.AppError {
}
func authenticateUser(user *model.User, password, mfaToken string) (*model.User, *model.AppError) {
- ldapAvailable := *utils.Cfg.LdapSettings.Enable && einterfaces.GetLdapInterface() != nil
+ ldapAvailable := *utils.Cfg.LdapSettings.Enable && einterfaces.GetLdapInterface() != nil && utils.IsLicensed && *utils.License.Features.LDAP
if user.AuthService == model.USER_AUTH_SERVICE_LDAP {
if !ldapAvailable {