From: Stefan Metzmacher Date: Thu, 22 Feb 2018 09:03:23 +0000 (+0100) Subject: s3:smb_macros.h: add IS_AD_DC as addition to IS_DC X-Git-Tag: ldb-1.3.2~40 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c58f8c3cd84ab18d04bd39ad7d5f53676e092abb;p=thirdparty%2Fsamba.git s3:smb_macros.h: add IS_AD_DC as addition to IS_DC In the long run we should remove this again (as well as IS_DC). But for now this makes some code changes in winbindd easier to follow. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13278 Signed-off-by: Stefan Metzmacher Reviewed-by: Ralph Boehme --- diff --git a/source3/include/smb_macros.h b/source3/include/smb_macros.h index f1191ac011e..06d24744960 100644 --- a/source3/include/smb_macros.h +++ b/source3/include/smb_macros.h @@ -214,6 +214,7 @@ copy an IP address from one buffer to another *****************************************************************************/ #define IS_DC (lp_server_role()==ROLE_DOMAIN_PDC || lp_server_role()==ROLE_DOMAIN_BDC || lp_server_role() == ROLE_ACTIVE_DIRECTORY_DC) +#define IS_AD_DC (lp_server_role() == ROLE_ACTIVE_DIRECTORY_DC) /* * If you add any entries to KERBEROS_VERIFY defines, please modify the below expressions