diff options
author | Luke Leighton <lkcl@samba.org> | 1999-12-02 18:49:28 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1999-12-02 18:49:28 +0000 |
commit | 455e17dbb7d451b462004f302f5c68770f17b65e (patch) | |
tree | 10b60739466b4d64290fa9d61c164d2d2f80ea39 /source/lib | |
parent | 9df973fe711f322075d86d6792d6c0b8539c1d00 (diff) | |
download | samba-455e17dbb7d451b462004f302f5c68770f17b65e.tar.gz samba-455e17dbb7d451b462004f302f5c68770f17b65e.tar.xz samba-455e17dbb7d451b462004f302f5c68770f17b65e.zip |
added get_any_dc_name() function.
Diffstat (limited to 'source/lib')
-rw-r--r-- | source/lib/sids.c | 14 | ||||
-rw-r--r-- | source/lib/util.c | 1 |
2 files changed, 15 insertions, 0 deletions
diff --git a/source/lib/sids.c b/source/lib/sids.c index e46d3782cbf..0f9b32f49dc 100644 --- a/source/lib/sids.c +++ b/source/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/source/lib/util.c b/source/lib/util.c index b0d6e82970e..9a9f87d4737 100644 --- a/source/lib/util.c +++ b/source/lib/util.c @@ -3262,3 +3262,4 @@ char *get_trusted_serverlist(const char* domain) return NULL; } + |