From 1fdb0571998c07c2249052629449b5adf2fec593 Mon Sep 17 00:00:00 2001 From: Brady Wetherington Date: Mon, 17 Dec 2018 14:04:35 -0800 Subject: [PATCH] New LDAP system tries to load LDAP configuration before determining (#6512) whether or not LDAP is actually enabled --- app/Models/LdapAd.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/LdapAd.php b/app/Models/LdapAd.php index d0f7563923..e3777374f5 100644 --- a/app/Models/LdapAd.php +++ b/app/Models/LdapAd.php @@ -53,8 +53,8 @@ class LdapAd extends LdapAdConfiguration */ public function __construct() { - parent::__construct(); if($this->isLdapEnabled()) { + parent::__construct(); $this->ldap = new Adldap(); $this->ldap->addProvider($this->ldapConfig); }