A free open source IT asset/license management system
Remove hardcoding of LDAP Auth query to 'uid=', use setting instead
Brady Wetherington67a1d2fa5fcf
diff --git a/app/Services/LdapAd.php b/app/Services/LdapAd.phpindex 228a44f23e..2068f416cc 100644--- a/app/Services/LdapAd.php+++ b/app/Services/LdapAd.php@@ -63,7 +63,7 @@ class LdapAd extends LdapAdConfigurationparent::init();if($this->isLdapEnabled()) {- $this->ldapConfig['account_prefix'] = 'uid=';+ $this->ldapConfig['account_prefix'] = $this->ldapSettings['ldap_auth_filter_query'];$this->ldapConfig['account_suffix'] = ','.$this->ldapConfig['base_dn'];$this->ldap = new Adldap();$this->ldap->addProvider($this->ldapConfig);