mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-06 08:34:16 +01:00
* [FIX] LDAP group filter wasn't applied when importing. Thanks to @twindscheif for the notice. Closes #1390
Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
@@ -267,10 +267,7 @@ final class ConfigLdapController extends SimpleControllerBase
|
||||
$userLdapService = $this->dic->get(LdapImportService::class);
|
||||
$userLdapService->importUsers($ldapParams, $ldapImportParams);
|
||||
|
||||
$filter = $this->request->analyzeString('ldap_import_filter');
|
||||
|
||||
// Groups won't be imported if filter is set
|
||||
if ($checkImportGroups === true && empty($filter)) {
|
||||
if ($checkImportGroups === true) {
|
||||
$userLdapService->importGroups($ldapParams, $ldapImportParams);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user