mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -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()
|
||||
{
|
||||
parent::__construct();
|
||||
if($this->isLdapEnabled()) {
|
||||
parent::__construct();
|
||||
$this->ldap = new Adldap();
|
||||
$this->ldap->addProvider($this->ldapConfig);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue