summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-12-02 18:49:28 +0000
committerLuke Leighton <lkcl@samba.org>1999-12-02 18:49:28 +0000
commit5988d0cdae19d014a5a011de83c48326e82860b6 (patch)
tree1966541f875963f6840473f5c0c0b5ff64162fb2 /source3/lib
parent7aebbb90c8e09febd345de10c0b438e98f30468b (diff)
downloadsamba-5988d0cdae19d014a5a011de83c48326e82860b6.tar.gz
samba-5988d0cdae19d014a5a011de83c48326e82860b6.tar.bz2
samba-5988d0cdae19d014a5a011de83c48326e82860b6.zip
added get_any_dc_name() function.
(This used to be commit 455e17dbb7d451b462004f302f5c68770f17b65e)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/sids.c14
-rw-r--r--source3/lib/util.c1
2 files changed, 15 insertions, 0 deletions
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.
diff --git a/source3/lib/util.c b/source3/lib/util.c
index b0d6e82970..9a9f87d473 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -3262,3 +3262,4 @@ char *get_trusted_serverlist(const char* domain)
return NULL;
}
+