]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
build: Require GnuTLS if building with Active Directory
authorGarming Sam <garming@catalyst.net.nz>
Fri, 13 Feb 2015 03:49:58 +0000 (16:49 +1300)
committerKarolin Seeger <kseeger@samba.org>
Tue, 3 Mar 2015 21:07:12 +0000 (22:07 +0100)
Without GnuTLS, we don't have ldaps:// support and we are unable to
readily create RSA keys of the correct length for the BackupKey
protocol.

Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit a1f1db277a2c452b63b9fe2d67cabfe0df60223d)

source4/lib/tls/wscript

index 57cd89418aae44c6faa1df27a536f8ab56c95bb5..ae963950f25ad5bc0c3d253dca4fcf875a073e4f 100644 (file)
@@ -25,6 +25,9 @@ def configure(conf):
 
     if 'HAVE_GNUTLS' in conf.env:
         conf.DEFINE('ENABLE_GNUTLS', 1)
+    else:
+        if 'AD_DC_BUILD_IS_ENABLED' in conf.env:
+            conf.fatal("Building the AD DC requires GnuTLS (eg libgnutls-dev, gnutls-devel) for ldaps:// support and for the BackupKey protocol")
 
     conf.CHECK_FUNCS_IN('gnutls_global_init', 'gnutls',
                         headers='gnutls/gnutls.h')