diff options
author | Gary Lockyer <gary@catalyst.net.nz> | 2019-01-28 15:27:29 +1300 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2019-02-20 06:03:08 +0100 |
commit | 853ad870255483c4caea1bebc5e11f1059422172 (patch) | |
tree | a8da9d41c266a658f2e3100243325d5431850ec2 /python | |
parent | 96472306bf13bd2a4d39d5fdd63a73f6140f8b44 (diff) | |
download | samba-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.py | 3 |
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"] |