diff options
author | Andreas Schneider <asn@samba.org> | 2015-07-23 13:49:09 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2017-04-29 23:31:09 +0200 |
commit | b5a67b9d24ceb84cf00721770d31c82196dafa56 (patch) | |
tree | bc56658b2af03e9560aa05ab6b32690d2e9ca593 | |
parent | 990cca36b132e830a6b471c7c67f44f411da2e23 (diff) | |
download | samba-b5a67b9d24ceb84cf00721770d31c82196dafa56.tar.gz |
waf: Check for MIT KDC binary
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlet <abartlet@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r-- | wscript | 5 | ||||
-rw-r--r-- | wscript_configure_system_mitkrb5 | 13 |
2 files changed, 18 insertions, 0 deletions
@@ -51,6 +51,11 @@ def set_options(opt): help='build Samba with system MIT Kerberos. ' + 'You may specify list of paths where Kerberos is installed (e.g. /usr/local /usr/kerberos) to search krb5-config', action='callback', callback=system_mitkrb5_callback, dest='with_system_mitkrb5', default=False) + opt.add_option('--with-system-mitkdc', + help=('Specify the path to the krb5kdc binary from MIT Kerberos'), + type="string", + dest='with_system_mitkdc', + default=None) opt.add_option('--without-ad-dc', help='disable AD DC functionality (enables only Samba FS (File Server, Winbind, NMBD) and client utilities.', diff --git a/wscript_configure_system_mitkrb5 b/wscript_configure_system_mitkrb5 index 34b94520d35..9338833d242 100644 --- a/wscript_configure_system_mitkrb5 +++ b/wscript_configure_system_mitkrb5 @@ -293,3 +293,16 @@ conf.CHECK_CODE(''' 'HAVE_FLAGS_IN_KRB5_CREDS', headers='krb5.h', lib='krb5', execute=False, msg="Checking whether krb5_creds have flags property") + +# Check for MIT KDC +if conf.CONFIG_SET('AD_DC_BUILD_IS_ENABLED'): + Logs.info("Looking for MIT KDC") + conf.DEFINE('SAMBA_USES_MITKDC', 1); + + kdc_path_list = [ '/usr/sbin', '/usr/lib/mit/sbin'] + + if getattr(Options.options, 'with_system_mitkdc', None): + conf.DEFINE('MIT_KDC_PATH', '"' + Options.options.with_system_mitkdc + '"') + else: + conf.find_program('krb5kdc', path_list=kdc_path_list, var='MIT_KDC_BINARY', mandatory=True) + conf.DEFINE('MIT_KDC_PATH', '"' + conf.env.MIT_KDC_BINARY + '"') |