s4-kdc: only build hdb plugin if we build against system Heimdal
authorAndrew Bartlett <abartlet@samba.org>
Wed, 7 Dec 2011 00:43:01 +0000 (11:43 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 7 Dec 2011 02:09:08 +0000 (03:09 +0100)
It is not safe to have a system kadmin use our plugin if we do not
share the same libkrb5.

Andrew Bartlett

source4/kdc/wscript_build

index 6a6e4f211487c87bb6e0bea0668034ace7166bc5..5b2ba28793de4eefee990636b3932187e56f2bb1 100644 (file)
@@ -24,6 +24,7 @@ bld.SAMBA_LIBRARY('HDB_SAMBA4_PLUGIN',
                   link_name='modules/hdb/hdb_samba4.so',
                   realname='hdb_samba4.so',
                   install_path='${MODULESDIR}/hdb',
+                  enabled = (bld.CONFIG_SET("USING_SYSTEM_KRB5") and bld.CONFIG_SET("USING_SYSTEM_HDB"))
                   )
 
 bld.SAMBA_SUBSYSTEM('WDC_SAMBA4',