diff options
-rw-r--r-- | src/providers/ldap/ldap_id_cleanup.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/providers/ldap/ldap_id_cleanup.c b/src/providers/ldap/ldap_id_cleanup.c index cde2ad818..c85ce4591 100644 --- a/src/providers/ldap/ldap_id_cleanup.c +++ b/src/providers/ldap/ldap_id_cleanup.c @@ -219,7 +219,8 @@ static int cleanup_users(struct sdap_options *opts, goto done; } - ret = sysdb_search_users(tmpctx, dom, subfilter, attrs, &count, &msgs); + ret = sysdb_search_users_by_timestamp(tmpctx, dom, subfilter, attrs, + &count, &msgs); if (ret == ENOENT) { count = 0; } else if (ret != EOK) { @@ -394,7 +395,8 @@ static int cleanup_groups(TALLOC_CTX *memctx, goto done; } - ret = sysdb_search_groups(tmpctx, domain, subfilter, attrs, &count, &msgs); + ret = sysdb_search_groups_by_timestamp(tmpctx, domain, subfilter, attrs, + &count, &msgs); if (ret == ENOENT) { count = 0; } else if (ret != EOK) { |