waf: Require ldap support to be specifically disabled
authorGarming Sam <garming@catalyst.net.nz>
Mon, 16 Dec 2013 00:31:31 +0000 (13:31 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 7 Jan 2014 03:13:27 +0000 (04:13 +0100)
Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
source3/wscript

index 4578b0ae22efa70c6f4866fab5eb6b1fc71868ad..fd5fc7380e2ade9ec554cd1d096e264bb0a8af3a 100644 (file)
@@ -659,6 +659,15 @@ msg.msg_acctrightslen = sizeof(fd);
             if conf.CONFIG_SET('HAVE_BER_SOCKBUF_ADD_IO') and \
                     conf.CONFIG_SET('HAVE_LDAP_OPT_SOCKBUF'):
                 conf.DEFINE('HAVE_LDAP_SASL_WRAPPING', '1')
+        else:
+            conf.fatal("LDAP support not found. "
+                       "Try installing libldap2-dev or openldap-devel. "
+                       "Otherwise, use --without-ldap to build without "
+                       "LDAP support. "
+                       "LDAP support is required for the LDAP passdb backend, "
+                       "LDAP idmap backends and ADS. "
+                       "ADS support improves communication with "
+                       "Active Directory domain controllers.")
     else:
         conf.SET_TARGET_TYPE('ldap', 'EMPTY')
         conf.SET_TARGET_TYPE('lber', 'EMPTY')