diff --git a/source3/lib/util_sid.c b/source3/lib/util_sid.c index 7d5dc1b3a93..c6c79a2e66d 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();