diff options
Diffstat (limited to 'source3/include/smb_macros.h')
-rw-r--r-- | source3/include/smb_macros.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/include/smb_macros.h b/source3/include/smb_macros.h index 7fcf872b60..40b114a6b9 100644 --- a/source3/include/smb_macros.h +++ b/source3/include/smb_macros.h @@ -248,4 +248,11 @@ copy an IP address from one buffer to another #define dos_format(fname) string_replace(fname,'/','\\') +/***************************************************************************** + Check to see if we are a DO for this domain +*****************************************************************************/ + +#define IS_DC_FOR_DOMAIN(x) ( (lp_server_role()==ROLE_DOMAIN_PDC || lp_server_role()==ROLE_DOMAIN_BDC) \ + && strequal((x), lp_workgroup()) ) + #endif /* _SMB_MACROS_H */ |