summaryrefslogtreecommitdiff
path: root/source3/wscript
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-01-05 11:06:28 +1100
committerAndrew Bartlett <abartlet@samba.org>2012-01-10 21:50:07 +0100
commit39b476d1c9f97b5d1fbc9b08d7a85ac0d59934f2 (patch)
tree6a4dca51c97a4c9a923d767e72420dbeb6c5577e /source3/wscript
parentfc7b34c83a2fe44b905e8af44dcb6d06154f688d (diff)
downloadsamba-39b476d1c9f97b5d1fbc9b08d7a85ac0d59934f2.tar.gz
samba-39b476d1c9f97b5d1fbc9b08d7a85ac0d59934f2.tar.bz2
samba-39b476d1c9f97b5d1fbc9b08d7a85ac0d59934f2.zip
krb5: Require krb5_get_init_creds_opt_alloc/free for build with krb5
This also assumes the modern API with a krb5_context argument. Andrew Bartlett
Diffstat (limited to 'source3/wscript')
-rw-r--r--source3/wscript6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/wscript b/source3/wscript
index 33ff56aa2d..a5bb371466 100644
--- a/source3/wscript
+++ b/source3/wscript
@@ -759,6 +759,12 @@ return krb5_kt_resolve(context, "WRFILE:api", &keytab);
if not conf.CONFIG_SET('HAVE_KRB5_FWD_TGT_CREDS'):
Logs.warn("krb5_fwd_tgt_creds found in -lkrb5")
use_ads=False
+ if not conf.CONFIG_SET('HAVE_KRB5_GET_INIT_CREDS_OPT_ALLOC'):
+ Logs.warn("krb5_get_init_creds_opt_alloc not found in -lkrb5")
+ use_ads=False
+ if not conf.CONFIG_SET('KRB5_CREDS_OPT_FREE_REQUIRES_CONTEXT'):
+ Logs.warn("krb5_get_init_creds_opt_free was not found or was too old in -lkrb5")
+ use_ads=False
if not conf.CONFIG_SET('HAVE_KRB5_PRINCIPAL2SALT') and \
not conf.CONFIG_SET('HAVE_KRB5_GET_PW_SALT'):
Logs.warn("no CREATE_KEY_FUNCTIONS detected")