summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-04-10 22:52:06 +0200
committerVolker Lendecke <vl@samba.org>2010-04-10 22:55:06 +0200
commit18078ec4450a7ee37b613020886ec6bead7a6ead (patch)
treeccaabbe419c153f26abd8bd388c03ac9be6b617d /source3/lib
parentf73e480e1917712bfb6c9641f9a49c454a1e4a5f (diff)
downloadsamba-18078ec4450a7ee37b613020886ec6bead7a6ead.tar.gz
samba-18078ec4450a7ee37b613020886ec6bead7a6ead.tar.bz2
samba-18078ec4450a7ee37b613020886ec6bead7a6ead.zip
s3: Use IS_DC macro in get_global_sam_name()
Much as I dislike macros, this one is there. So why not use it...
Diffstat (limited to 'source3/lib')
-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();