summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabiano FidĂȘncio <fidencio@redhat.com>2017-06-07 15:17:15 +0200
committerJakub Hrozek <jhrozek@redhat.com>2017-06-15 11:01:53 +0200
commit05e579691b51ac2f81ab0c828ff6fe57bd86a8b6 (patch)
tree659fbc0036059ce70f464b7265e7317e0a4ebd8d
parent41708e1e500e7cada3d3e606aa2b8b9869a5c734 (diff)
downloadsssd-05e579691b51ac2f81ab0c828ff6fe57bd86a8b6.tar.gz
sssd-05e579691b51ac2f81ab0c828ff6fe57bd86a8b6.tar.xz
sssd-05e579691b51ac2f81ab0c828ff6fe57bd86a8b6.zip
LDAP_ID_CLEANUP: Use sysdb_search_*_by_timestamp()
Use the appropriate methods for searching users and groups bv timestamp. Resolves: https://pagure.io/SSSD/sssd/issue/3369 Signed-off-by: Fabiano FidĂȘncio <fidencio@redhat.com> Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
-rw-r--r--src/providers/ldap/ldap_id_cleanup.c6
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) {