From 9524e2fce1b7f644fef5f7c8134f72681d786e65 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 10 Nov 2011 12:45:54 +1100 Subject: param: calculate server role from security, and security from server role This allows smb.conf files from either the samba3 or samba4 tradition to come to the same value of server role, using the information in the smb.conf file. This is important so that tools like 'net getlocalsid' work against a Samba4 AD installation (yes, users have tried this). Andrew Bartlett Pair-Programmed-With: Amitay Isaacs --- lib/param/wscript_build | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lib/param/wscript_build') diff --git a/lib/param/wscript_build b/lib/param/wscript_build index f61e822037..13b7709abf 100644 --- a/lib/param/wscript_build +++ b/lib/param/wscript_build @@ -16,11 +16,16 @@ bld.SAMBA_GENERATOR('param_global_h', target='param_global.h', rule='${PERL} ${SRC[1].abspath(env)} ${SRC[0].abspath(env)} --file ${TGT} --generate-scope=GLOBAL') +bld.SAMBA_LIBRARY('server-role', + source='loadparm_server_role.c', + deps='samba-util', + private_library=True) + bld.SAMBA_LIBRARY('samba-hostconfig', source='loadparm.c generic.c util.c', pc_files='samba-hostconfig.pc', vnum='0.0.1', - deps='DYNCONFIG', + deps='DYNCONFIG server-role', public_deps='samba-util param_local_h', public_headers='param.h', autoproto='param_proto.h', -- cgit