From 23bffff98c7d1bd700509bb3fa6eaca3e1524096 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 26 Nov 2010 11:33:49 +1100 Subject: wintest: fixed "rndc command" option in provision we need to point at the generated rndc.conf Pair-Programmed-With: Andrew Bartlett --- wintest/test-s4-howto.py | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'wintest') diff --git a/wintest/test-s4-howto.py b/wintest/test-s4-howto.py index a1a211f8ae..0b239f9bc3 100755 --- a/wintest/test-s4-howto.py +++ b/wintest/test-s4-howto.py @@ -35,11 +35,20 @@ def provision_s4(t, func_level="2008"): t.chdir('${PREFIX}') t.del_files(["var", "private"]) t.run_cmd("rm -f etc/smb.conf") - options=' --function-level=%s -d${DEBUGLEVEL}' % func_level - options += ' --option=interfaces="${INTERFACE} ${INTERFACE_IPV6}"' - options += ' --host-ip=${INTERFACE_IP} --host-ip6=${INTERFACE_IPV6}' - options += ' --option=bindinterfacesonly=yes' - t.run_cmd('sbin/provision --realm=${LCREALM} --domain=${DOMAIN} --adminpass=${PASSWORD1} --server-role="domain controller"' + options) + provision=['sbin/provision', + '--realm=${LCREALM}', + '--domain=${DOMAIN}', + '--adminpass=${PASSWORD1}', + '--server-role=domain controller', + '--function-level=%s' % func_level, + '-d${DEBUGLEVEL}', + '--option=interfaces=${INTERFACE}', + '--host-ip=${INTERFACE_IP}', + '--option=bind interfaces only=yes', + '--option=rndc command=${RNDC} -c${PREFIX}/etc/rndc.conf'] + if t.getvar('INTERFACE_IPV6'): + provision.append('--host-ip6=${INTERFACE_IPV6}') + t.run_cmd(provision) t.run_cmd('bin/samba-tool newuser testallowed ${PASSWORD1}') t.run_cmd('bin/samba-tool newuser testdenied ${PASSWORD1}') t.run_cmd('bin/samba-tool group addmembers "Allowed RODC Password Replication Group" testallowed') -- cgit