New LDAP system tries to load LDAP configuration before determining (#6512)

whether or not LDAP is actually enabled
This commit is contained in:
Brady Wetherington 2018-12-17 14:04:35 -08:00 committed by snipe
parent 876ff2ef72
commit 1fdb057199

View file

@ -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);
}