r1340: _samr_lookupsids with more than 32 (MAX_REF_DOMAINS) SIDs failed. This
authorVolker Lendecke <vlendec@samba.org>
Mon, 5 Jul 2004 15:05:45 +0000 (15:05 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:52:07 +0000 (10:52 -0500)
happened because init_dom_ref did not find the domain in question in
the list of already mentioned domains.

Could others please double-check this?

Thanks,

Volker
(This used to be commit d7b2e41f00491ecf57db70e4da8cf8a3d2469c2b)

source3/rpc_server/srv_lsa_nt.c

index ff73fd4a9516912b912db0e60d26a2ecf3fd0ccb..6c3157d5c95ba1d30f7ee5731bc9962792fff63d 100644 (file)
@@ -101,7 +101,7 @@ static int init_dom_ref(DOM_R_REF *ref, char *dom_name, DOM_SID *dom_sid)
        if (dom_name != NULL) {
                for (num = 0; num < ref->num_ref_doms_1; num++) {
                        fstring domname;
-                       rpcstr_pull(domname, &ref->ref_dom[num].uni_dom_name, sizeof(domname), -1, 0);
+                       rpcstr_pull(domname, ref->ref_dom[num].uni_dom_name.buffer, sizeof(domname), -1, 0);
                        if (strequal(domname, dom_name))
                                return num;
                }