s3:winbindd: also use idmap_passdb for own sam and builtin in wbint_Sids2UnixIDs()
authorMichael Adam <obnox@samba.org>
Sun, 25 Nov 2012 01:13:15 +0000 (02:13 +0100)
committerStefan Metzmacher <metze@samba.org>
Mon, 3 Dec 2012 07:48:23 +0000 (08:48 +0100)
This is the way the singular calls work and how they should (currently) work.
The two code paths need to give the same results. It is important to use
the passdb backend, otherwise groups don't work.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/winbindd/winbindd_dual_srv.c

index 35d9451177d00d5c9fb92c80710dcbecfc4936ca..660008293d93784d0dcdc1a31e42f14794517704 100644 (file)
@@ -151,10 +151,10 @@ NTSTATUS _wbint_Sids2UnixIDs(struct pipes_struct *p,
                struct idmap_domain *dom;
                uint32_t num_ids;
 
-               dom = idmap_find_domain(d->name.string);
+               dom = idmap_find_domain_with_sid(d->name.string, d->sid);
                if (dom == NULL) {
-                       DEBUG(10, ("idmap domain %s not found\n",
-                                  d->name.string));
+                       DEBUG(10, ("idmap domain %s:%s not found\n",
+                                  d->name.string, sid_string_dbg(d->sid)));
                        continue;
                }