s3-auth Change type of num_sids to uint32_t
[abartlet/samba.git/.git] / source3 / winbindd / winbindd_getsidaliases.c
index baa8fea11ec9f26e980c38dc549f3dd0f0374576..5fcb8922ce4b8ab4e27a8b5a968b34c79b79df1c 100644 (file)
@@ -36,7 +36,7 @@ struct tevent_req *winbindd_getsidaliases_send(TALLOC_CTX *mem_ctx,
        struct tevent_req *req, *subreq;
        struct winbindd_getsidaliases_state *state;
        struct winbindd_domain *domain;
-       size_t num_sids;
+       uint32_t num_sids;
        struct dom_sid *sids;
 
        req = tevent_req_create(mem_ctx, &state,
@@ -83,6 +83,15 @@ struct tevent_req *winbindd_getsidaliases_send(TALLOC_CTX *mem_ctx,
                }
        }
 
+       if (DEBUGLEVEL >= 10) {
+               size_t i;
+               for (i=0; i<num_sids; i++) {
+                       fstring sidstr;
+                       sid_to_fstring(sidstr, &sids[i]);
+                       DEBUGADD(10, ("%s\n", sidstr));
+               }
+       }
+
        subreq = wb_lookupuseraliases_send(state, ev, domain, num_sids, sids);
        if (tevent_req_nomem(subreq, req)) {
                return tevent_req_post(req, ev);