summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/lib/util_sid.c2
1 files changed, 1 insertions, 1 deletions
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();