summaryrefslogtreecommitdiff
path: root/source3/include/smb_macros.h
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-06-30 17:24:59 +0000
committerGerald Carter <jerry@samba.org>2003-06-30 17:24:59 +0000
commitf2659351017a8b2ec12548a3967cdf2767738e08 (patch)
treef552a2a0cea5192d7aa01af3daac2beb43eb9b50 /source3/include/smb_macros.h
parent1d8cd8faf620cb068d740d8fad7968525d45e83a (diff)
downloadsamba-f2659351017a8b2ec12548a3967cdf2767738e08.tar.gz
samba-f2659351017a8b2ec12548a3967cdf2767738e08.tar.bz2
samba-f2659351017a8b2ec12548a3967cdf2767738e08.zip
* rename samstrict auth method to sam
* rename original sam auth method to sam_ignoredomain * remove samstrict_dc auth method (now covered by 'sam') * fix wbinfo -a '...' and getent passwd bugs when running winbindd on a samba PDC (reported by Volker) (This used to be commit 52166faee793d337e045d64f7cb27ea7ac895f60)
Diffstat (limited to 'source3/include/smb_macros.h')
-rw-r--r--source3/include/smb_macros.h7
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 */