From 5988d0cdae19d014a5a011de83c48326e82860b6 Mon Sep 17 00:00:00 2001 From: Luke Leighton Date: Thu, 2 Dec 1999 18:49:28 +0000 Subject: added get_any_dc_name() function. (This used to be commit 455e17dbb7d451b462004f302f5c68770f17b65e) --- source3/lib/sids.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'source3/lib/sids.c') diff --git a/source3/lib/sids.c b/source3/lib/sids.c index e46d3782cb..0f9b32f49d 100644 --- a/source3/lib/sids.c +++ b/source3/lib/sids.c @@ -434,6 +434,20 @@ BOOL map_domain_sid_to_name(DOM_SID *sid, char *nt_domain) return False; } +/************************************************************************** + turns a domain SID into a domain controller name. +***************************************************************************/ +BOOL map_domain_sid_to_any_dc(DOM_SID *sid, char *dc_name) +{ + fstring domain; + + if (!map_domain_sid_to_name(sid, domain)) + { + return False; + } + + return get_any_dc_name(domain, dc_name); +} /************************************************************************** splits a name of format \DOMAIN\name or name into its two components. -- cgit