mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-13 06:47:46 -08:00
New LDAP system tries to load LDAP configuration before determining (#6512)
whether or not LDAP is actually enabled
This commit is contained in:
parent
876ff2ef72
commit
1fdb057199
|
@ -53,8 +53,8 @@ class LdapAd extends LdapAdConfiguration
|
||||||
*/
|
*/
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
parent::__construct();
|
|
||||||
if($this->isLdapEnabled()) {
|
if($this->isLdapEnabled()) {
|
||||||
|
parent::__construct();
|
||||||
$this->ldap = new Adldap();
|
$this->ldap = new Adldap();
|
||||||
$this->ldap->addProvider($this->ldapConfig);
|
$this->ldap->addProvider($this->ldapConfig);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue