mirror of
https://github.com/samba-team/samba.git
synced 2025-12-17 04:23:50 +03:00
auth logging tests: Add tests for sessionId
Signed-off-by: Gary Lockyer <gary@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
committed by
Andrew Bartlett
parent
52a3318be8
commit
fdf827553a
@@ -27,6 +27,7 @@ from samba.dcerpc import srvsvc, dnsserver
|
||||
import time
|
||||
import json
|
||||
import os
|
||||
import re
|
||||
from samba import smb
|
||||
from samba.samdb import SamDB
|
||||
|
||||
@@ -120,3 +121,10 @@ class AuthLogTestBase(samba.tests.TestCase):
|
||||
return sd != "NETLOGON"
|
||||
|
||||
return list(filter(is_not_netlogon, messages))
|
||||
|
||||
GUID_RE = "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}"
|
||||
#
|
||||
# Is the supplied GUID string correctly formatted
|
||||
#
|
||||
def is_guid(self, guid):
|
||||
return re.match(self.GUID_RE, guid)
|
||||
|
||||
Reference in New Issue
Block a user