summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorGary Lockyer <gary@catalyst.net.nz>2019-01-28 15:27:29 +1300
committerAndrew Bartlett <abartlet@samba.org>2019-02-20 06:03:08 +0100
commit853ad870255483c4caea1bebc5e11f1059422172 (patch)
treea8da9d41c266a658f2e3100243325d5431850ec2 /python
parent96472306bf13bd2a4d39d5fdd63a73f6140f8b44 (diff)
downloadsamba-853ad870255483c4caea1bebc5e11f1059422172.tar.gz
auth_log tests: Allow the remote address to be None
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>
Diffstat (limited to 'python')
-rw-r--r--python/samba/tests/auth_log_base.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/python/samba/tests/auth_log_base.py b/python/samba/tests/auth_log_base.py
index 38f5eb5175d..c1391080566 100644
--- 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"]