[SCM] Samba Shared Repository - branch master updated

Volker Lendecke vlendec at samba.org
Sat Apr 10 14:56:14 MDT 2010


The branch, master has been updated
       via  18078ec... s3: Use IS_DC macro in get_global_sam_name()
      from  f73e480... s3: Remove domain selection from dual_pam_auth

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 18078ec4450a7ee37b613020886ec6bead7a6ead
Author: Volker Lendecke <vl at samba.org>
Date:   Sat Apr 10 22:52:06 2010 +0200

    s3: Use IS_DC macro in get_global_sam_name()
    
    Much as I dislike macros, this one is there. So why not use it...

-----------------------------------------------------------------------

Summary of changes:
 source3/lib/util_sid.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

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


-- 
Samba Shared Repository


More information about the samba-cvs mailing list