Save all entries, not just the first one. Simo.
-- Simo Sorce * Red Hat, Inc * New York
>From 2a7b99215094508009f0b919aebb62ee7450825b Mon Sep 17 00:00:00 2001 From: Simo Sorce <[email protected]> Date: Sun, 8 Nov 2009 01:17:22 -0500 Subject: [PATCH] Fix enumerations The counter was not set so we were storing only the first user for each anumeration. --- server/providers/ldap/sdap_async_accounts.c | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/server/providers/ldap/sdap_async_accounts.c b/server/providers/ldap/sdap_async_accounts.c index 0576d6f..bf6f852 100644 --- a/server/providers/ldap/sdap_async_accounts.c +++ b/server/providers/ldap/sdap_async_accounts.c @@ -349,7 +349,7 @@ struct tevent_req *sdap_save_users_send(TALLOC_CTX *memctx, state->sysdb = sysdb; state->dom = dom; state->users = users; - state->count = 0; + state->count = num_users; state->cur = 0; state->handle = NULL; state->higher_timestamp = NULL; @@ -418,6 +418,8 @@ static void sdap_save_users_process(struct tevent_req *subreq) * Just report the failure to save and go on */ if (ret) { DEBUG(2, ("Failed to store user %d. Ignoring.\n", state->cur)); + } else { + DEBUG(9, ("User %d processed!\n", state->cur)); } if (timestamp) { @@ -1172,7 +1174,7 @@ struct tevent_req *sdap_save_groups_send(TALLOC_CTX *memctx, state->sysdb = sysdb; state->dom = dom; state->groups = groups; - state->count = 0; + state->count = num_groups; state->cur = 0; state->handle = NULL; state->higher_timestamp = NULL; @@ -1260,6 +1262,8 @@ static void sdap_save_groups_loop(struct tevent_req *subreq) * Just report the failure to save and go on */ if (ret) { DEBUG(2, ("Failed to store group %d. Ignoring.\n", state->cur)); + } else { + DEBUG(9, ("Group %d processed!\n", state->cur)); } if (timestamp) { -- 1.6.2.5
_______________________________________________ sssd-devel mailing list [email protected] https://fedorahosted.org/mailman/listinfo/sssd-devel
