* [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:
Rubén D
2019-07-20 22:00:47 +02:00
parent 98a68f47c5
commit da9dc6f3ab

View File

@@ -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);
}