'''automated testing of Samba3 against windows'''
-import sys, os
-import optparse
import wintest
def set_krb5_conf(t):
t.run_cmd("mkdir -p ${PREFIX}/etc")
- t.write_file("${PREFIX}/etc/krb5.conf",
+ t.write_file("${PREFIX}/etc/krb5.conf",
'''[libdefaults]
dns_lookup_realm = false
dns_lookup_kdc = true''')
child = t.pexpect_spawn('bin/net ads password root -Uadministrator%${WIN_PASS}')
child.expect("Enter new password for root")
child.sendline("${PASSWORD2}")
- child.expect("Password change for ");
+ child.expect("Password change for ")
child.expect(" completed")
child = t.pexpect_spawn('bin/net rpc shell -S ${WIN_HOSTNAME}.${WIN_REALM} -Uadministrator%${WIN_PASS}')
child.expect("net rpc>")