From 17077d92b85b2ee4dfd42719c0e31d5fa0c039e0 Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Fri, 4 Apr 2014 16:59:52 +0200 Subject: Add new configure option --with-wbclient-sssd --- source3/wscript | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/source3/wscript b/source3/wscript index 6e76c86ac3b..320149ffaed 100644 --- a/source3/wscript +++ b/source3/wscript @@ -27,6 +27,7 @@ def set_options(opt): opt.SAMBA3_ADD_OPTION('ldap') opt.SAMBA3_ADD_OPTION('cups', with_name="enable", without_name="disable") opt.SAMBA3_ADD_OPTION('iprint', with_name="enable", without_name="disable") + opt.SAMBA3_ADD_OPTION('wbclient-sssd', default=False) opt.SAMBA3_ADD_OPTION('pam') opt.SAMBA3_ADD_OPTION('pam_smbpass') opt.SAMBA3_ADD_OPTION('quotas') @@ -846,6 +847,15 @@ msg.msg_accrightslen = sizeof(fd); if conf.env.with_iconv: conf.DEFINE('HAVE_ICONV', 1) + if Options.options.with_wbclient_sssd: + if conf.CHECK_BUNDLED_SYSTEM_PKG('sss_nss_idmap', minversion=1.11): + conf.DEFINE('WITH_WBCLIENT_SSSD', 1) + Logs.info("Building with libwbclient-sssd support.") + else: + conf.fatal("--with-wbclient-sssd was requested but libsss-idmap " + "devel files are not available or have not the " + "required version.") + if Options.options.with_pam: use_pam=True conf.CHECK_HEADERS('security/pam_appl.h pam/pam_appl.h') -- cgit