summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/providers/ldap/sdap_async_accounts.c8
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 711b4e5e..b38f6d62 100644
--- a/server/providers/ldap/sdap_async_accounts.c
+++ b/server/providers/ldap/sdap_async_accounts.c
@@ -354,7 +354,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;
@@ -423,6 +423,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) {
@@ -1197,7 +1199,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;
@@ -1285,6 +1287,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) {