From 30675b36f5e6072fbc4f93270c846e0c5d764254 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 2 Mar 2006 18:33:43 +0000 Subject: r13791: Having S-1-1-0 show up in winbind lookupsid does not really make sense. Volker (This used to be commit ae9614ce019e25fb29dad8429d93f3140c2f84ad) --- source3/passdb/util_wellknown.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'source3/passdb/util_wellknown.c') diff --git a/source3/passdb/util_wellknown.c b/source3/passdb/util_wellknown.c index be3cf37446..9a6fa7def5 100644 --- a/source3/passdb/util_wellknown.c +++ b/source3/passdb/util_wellknown.c @@ -85,6 +85,17 @@ BOOL sid_check_is_wellknown_domain(const DOM_SID *sid, const char **name) return False; } +BOOL sid_check_is_in_wellknown_domain(const DOM_SID *sid) +{ + DOM_SID dom_sid; + uint32 rid; + + sid_copy(&dom_sid, sid); + sid_split_rid(&dom_sid, &rid); + + return sid_check_is_wellknown_domain(&dom_sid, NULL); +} + /************************************************************************** Looks up a known username from one of the known domains. ***************************************************************************/ -- cgit