mirror of
https://github.com/samba-team/samba.git
synced 2025-03-24 10:50:22 +03:00
wintest Allow setting of the firewall to fail
This is also required to allow a telnet connection as non-admin. Andrew Bartlett
This commit is contained in:
parent
e410a1af30
commit
1367e2b303
@ -577,7 +577,7 @@ options {
|
||||
def disable_firewall(self, child):
|
||||
'''remove the annoying firewall'''
|
||||
child.sendline('netsh advfirewall set allprofiles state off')
|
||||
i = child.expect(["Ok", "The following command was not found: advfirewall set allprofiles state off"])
|
||||
i = child.expect(["Ok", "The following command was not found: advfirewall set allprofiles state off", "The requested operation requires elevation"])
|
||||
child.expect("C:")
|
||||
if i == 1:
|
||||
child.sendline('netsh firewall set opmode mode = DISABLE profile = ALL')
|
||||
|
Loading…
x
Reference in New Issue
Block a user