From 67a1d2fa5fcf243de4b2c92b189b0419773c500f Mon Sep 17 00:00:00 2001 From: Brady Wetherington Date: Wed, 26 Aug 2020 12:25:10 -0700 Subject: [PATCH] Remove hardcoding of LDAP Auth query to 'uid=', use setting instead --- app/Services/LdapAd.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/LdapAd.php b/app/Services/LdapAd.php index 228a44f23e..2068f416cc 100644 --- a/app/Services/LdapAd.php +++ b/app/Services/LdapAd.php @@ -63,7 +63,7 @@ class LdapAd extends LdapAdConfiguration parent::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);