s3:winbindd: add idmap_find_domain_with_sid()
authorMichael Adam <obnox@samba.org>
Thu, 22 Nov 2012 17:16:31 +0000 (18:16 +0100)
committerStefan Metzmacher <metze@samba.org>
Mon, 3 Dec 2012 07:48:23 +0000 (08:48 +0100)
commit370d62578dd171c6f898f4868f382cdddb908bcf
tree514ced38c426465fdd3881bebfc2e951ce1648a6
parent150cfb4b97e2ee67ec1fa8fc379ac03d42002da9
s3:winbindd: add idmap_find_domain_with_sid()

This will return the passdb domain if the given sid is in our sam or builtin
or is the domain sid of those domains. Otherwise it returns the idmap domain
that results from the idmap configuration.

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