s4-kdc: Add hdb plugin for samba4, to allow kadmin to work
[ira/wip.git] / source4 / kdc / wscript_build
index aec1cb28d91e8d09005ba34df13b483c507242e1..6a6e4f211487c87bb6e0bea0668034ace7166bc5 100644 (file)
@@ -9,12 +9,22 @@ bld.SAMBA_MODULE('service_kdc',
        )
 
 
-bld.SAMBA_SUBSYSTEM('HDB_SAMBA4',
-       source='hdb-samba4.c',
-       deps='ldb auth4_sam auth_sam_reply samba-credentials hdb db-glue samba-hostconfig com_err',
-       includes='../heimdal/kdc',
-       )
-
+bld.SAMBA_LIBRARY('HDB_SAMBA4',
+                  source='hdb-samba4.c hdb-samba4-plugin.c',
+                  deps='ldb auth4_sam auth_sam_reply samba-credentials hdb db-glue samba-hostconfig com_err',
+                  includes='../heimdal/kdc',
+                  private_library=True
+                  )
+
+# A plugin for Heimdal's kadmin for users who need to operate that tool
+bld.SAMBA_LIBRARY('HDB_SAMBA4_PLUGIN',
+                  source='hdb-samba4-plugin.c',
+                  deps='hdb HDB_SAMBA4 samba-util samba-hostconfig ',
+                  includes='../heimdal/kdc',
+                  link_name='modules/hdb/hdb_samba4.so',
+                  realname='hdb_samba4.so',
+                  install_path='${MODULESDIR}/hdb',
+                  )
 
 bld.SAMBA_SUBSYSTEM('WDC_SAMBA4',
        source='wdc-samba4.c',