From 18078ec4450a7ee37b613020886ec6bead7a6ead Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 10 Apr 2010 22:52:06 +0200 Subject: s3: Use IS_DC macro in get_global_sam_name() Much as I dislike macros, this one is there. So why not use it... --- source3/lib/util_sid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/lib/util_sid.c b/source3/lib/util_sid.c index 7d5dc1b3a9..c6c79a2e66 100644 --- a/source3/lib/util_sid.c +++ b/source3/lib/util_sid.c @@ -162,7 +162,7 @@ NT_USER_TOKEN *get_system_token(void) const char *get_global_sam_name(void) { - if ((lp_server_role() == ROLE_DOMAIN_PDC) || (lp_server_role() == ROLE_DOMAIN_BDC)) { + if (IS_DC) { return lp_workgroup(); } return global_myname(); -- cgit