Skip to content

Commit

Permalink
s3:smb_macros.h: add IS_AD_DC as addition to IS_DC
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Ralph Boehme <[email protected]>
  • Loading branch information
metze-samba committed Feb 23, 2018
1 parent 07844a9 commit c58f8c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source3/include/smb_macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c58f8c3

Please sign in to comment.