From 12ce07e53b9453f35a1483d941bfce9c23f790a0 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 30 Nov 2011 07:45:25 +1100 Subject: s4-kdc: Add hdb plugin for samba4, to allow kadmin to work This will help users who are used to the kadmin interface, and could be extended to import existing MIT or Heimdal keys into a Samba4 AD domain. To use, add to your krb5.conf [kdc] database = { dbname = samba4: } or [kdc] database = { dbname = samba4:/usr/local/samba/etc/smb.conf } And copy hdb_samba4.so from PREFIX/modules/hdb to your Heimdal lib directory Andrew Bartlett Autobuild-User: Andrew Bartlett Autobuild-Date: Wed Nov 30 03:22:11 CET 2011 on sn-devel-104 --- source4/kdc/wscript_build | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) (limited to 'source4/kdc/wscript_build') diff --git a/source4/kdc/wscript_build b/source4/kdc/wscript_build index aec1cb28d9..6a6e4f2114 100644 --- a/source4/kdc/wscript_build +++ b/source4/kdc/wscript_build @@ -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', -- cgit