From d266f8fdf17e5583d419c2b4bd9daf30acebfd6b Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 26 May 2010 11:11:08 +1000 Subject: s3:lib s3:lib move get_global_sam_name to util_names.c This doesn't really belong in util_sid.c, and has much more in common with the other functions in util_names.c Andrew Bartlett Signed-off-by: Stefan Metzmacher --- source3/lib/util_names.c | 13 +++++++++++++ source3/lib/util_sid.c | 13 ------------- 2 files changed, 13 insertions(+), 13 deletions(-) (limited to 'source3/lib') diff --git a/source3/lib/util_names.c b/source3/lib/util_names.c index 1ad9cd317c..bd6e5c1202 100644 --- a/source3/lib/util_names.c +++ b/source3/lib/util_names.c @@ -65,6 +65,19 @@ const char *lp_workgroup(void) return smb_myworkgroup; } +/****************************************************************** + get the default domain/netbios name to be used when dealing + with our passdb list of accounts +******************************************************************/ + +const char *get_global_sam_name(void) +{ + if (IS_DC) { + return lp_workgroup(); + } + return global_myname(); +} + void gfree_netbios_names(void) { SAFE_FREE( smb_myname ); diff --git a/source3/lib/util_sid.c b/source3/lib/util_sid.c index 4cc7bb401c..2a77be77dd 100644 --- a/source3/lib/util_sid.c +++ b/source3/lib/util_sid.c @@ -155,19 +155,6 @@ NT_USER_TOKEN *get_system_token(void) return &system_token; } -/****************************************************************** - get the default domain/netbios name to be used when dealing - with our passdb list of accounts -******************************************************************/ - -const char *get_global_sam_name(void) -{ - if (IS_DC) { - return lp_workgroup(); - } - return global_myname(); -} - /***************************************************************** Convert a SID to an ascii string. *****************************************************************/ -- cgit