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:
parent
96472306bf
commit
853ad87025
@ -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"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user