summaryrefslogtreecommitdiff
path: root/source3/include/smb_macros.h
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-06-30 23:20:22 +0200
committerGünther Deschner <gd@samba.org>2010-07-01 23:20:40 +0200
commit6d810eff81f6a0abb371b2661cb0711e46e1bf1d (patch)
treeac4f30631d31f3042ec9c688a3ea142405a2529d /source3/include/smb_macros.h
parent56538be6af9d4d76bffe5f142ba6a62e978561da (diff)
downloadsamba-6d810eff81f6a0abb371b2661cb0711e46e1bf1d.tar.gz
samba-6d810eff81f6a0abb371b2661cb0711e46e1bf1d.tar.bz2
samba-6d810eff81f6a0abb371b2661cb0711e46e1bf1d.zip
s3-libads: move keytab macros out of ads.h.
Guenther
Diffstat (limited to 'source3/include/smb_macros.h')
-rw-r--r--source3/include/smb_macros.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/include/smb_macros.h b/source3/include/smb_macros.h
index 20283e7177..e5af20bac3 100644
--- a/source3/include/smb_macros.h
+++ b/source3/include/smb_macros.h
@@ -204,6 +204,15 @@ copy an IP address from one buffer to another
#define IS_DC (lp_server_role()==ROLE_DOMAIN_PDC || lp_server_role()==ROLE_DOMAIN_BDC)
+/*
+ * If you add any entries to KERBEROS_VERIFY defines, please modify the below expressions
+ * so they remain accurate.
+ */
+#define USE_KERBEROS_KEYTAB (KERBEROS_VERIFY_SECRETS != lp_kerberos_method())
+#define USE_SYSTEM_KEYTAB \
+ ((KERBEROS_VERIFY_SECRETS_AND_KEYTAB == lp_kerberos_method()) || \
+ (KERBEROS_VERIFY_SYSTEM_KEYTAB == lp_kerberos_method()))
+
/*****************************************************************************
Safe allocation macros.
*****************************************************************************/