mirror of
https://github.com/samba-team/samba.git
synced 2025-12-14 20:23:54 +03:00
python:lsa_utils: Don't use optional arguments for OpenPolicyFallback()
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15680 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
committed by
Andreas Schneider
parent
73ce15e7d5
commit
f9a3fc19f1
@@ -35,8 +35,8 @@ def OpenPolicyFallback(
|
||||
system_name: str,
|
||||
in_version: int,
|
||||
in_revision_info: lsa.revision_info1,
|
||||
sec_qos: bool = False,
|
||||
access_mask: int = 0,
|
||||
sec_qos: bool,
|
||||
access_mask: int,
|
||||
):
|
||||
attr = lsa.ObjectAttribute()
|
||||
if sec_qos:
|
||||
|
||||
@@ -222,6 +222,7 @@ class DomainTrustCommand(Command):
|
||||
b''.decode('utf-8'),
|
||||
in_version,
|
||||
in_revision_info1,
|
||||
False,
|
||||
policy_access
|
||||
)
|
||||
|
||||
|
||||
@@ -79,7 +79,8 @@ class CreateTrustedDomain(TestCase):
|
||||
'',
|
||||
in_version,
|
||||
in_revision_info1,
|
||||
access_mask=security.SEC_FLAG_MAXIMUM_ALLOWED
|
||||
False,
|
||||
security.SEC_FLAG_MAXIMUM_ALLOWED
|
||||
)
|
||||
self.assertIsNotNone(pol_handle)
|
||||
|
||||
@@ -168,7 +169,8 @@ class CreateTrustedDomain(TestCase):
|
||||
'',
|
||||
in_version,
|
||||
in_revision_info1,
|
||||
access_mask=security.SEC_FLAG_MAXIMUM_ALLOWED
|
||||
False,
|
||||
security.SEC_FLAG_MAXIMUM_ALLOWED
|
||||
)
|
||||
self.assertIsNotNone(pol_handle)
|
||||
|
||||
|
||||
@@ -454,7 +454,8 @@ class KDCBaseTest(TestCaseInTempDir, RawKerberosTest):
|
||||
b''.decode('utf-8'),
|
||||
in_version,
|
||||
in_revision_info1,
|
||||
access_mask=policy_access
|
||||
False,
|
||||
policy_access
|
||||
)
|
||||
|
||||
info = conn.QueryInfoPolicy2(policy, lsa.LSA_POLICY_INFO_DNS)
|
||||
|
||||
Reference in New Issue
Block a user