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>
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;
}