git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9647230
)
auth_log tests: Allow the remote address to be None
author
Gary Lockyer
<gary@catalyst.net.nz>
Mon, 28 Jan 2019 02:27:29 +0000
(15:27 +1300)
committer
Andrew Bartlett
<abartlet@samba.org>
Wed, 20 Feb 2019 05:03:08 +0000
(06:03 +0100)
Allow self.remoteAddress to be None, remote address filtering is not
required for the winbind auth logging tests.
Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/auth_log_base.py
patch
|
blob
|
history
diff --git
a/python/samba/tests/auth_log_base.py
b/python/samba/tests/auth_log_base.py
index 38f5eb5175d3fc7e3a78b35020d1ce9a849a3d4a..c139108056662f10d939bcdca9a3d81b3ee44d96 100644
(file)
--- a/
python/samba/tests/auth_log_base.py
+++ b/
python/samba/tests/auth_log_base.py
@@
-77,6
+77,9
@@
class AuthLogTestBase(samba.tests.TestCase):
return False
def isRemote(message):
+ if self.remoteAddress is None:
+ return True
+
remote = None
if message["type"] == "Authorization":
remote = message["Authorization"]["remoteAddress"]