mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s3: Use IS_DC macro in get_global_sam_name()
Much as I dislike macros, this one is there. So why not use it...
This commit is contained in:
parent
f73e480e19
commit
18078ec445
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user