1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-24 02:04:21 +03:00

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>
This commit is contained in:
Gary Lockyer 2019-01-28 15:27:29 +13:00 committed by Andrew Bartlett
parent 96472306bf
commit 853ad87025

View File

@ -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"]