summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJoseph Sutton <josephsutton@catalyst.net.nz>2023-04-27 16:16:44 +1200
committerAndrew Bartlett <abartlet@samba.org>2023-05-05 02:54:31 +0000
commit0a7cbe1e953084ef004dffcadcf8436026604820 (patch)
treed0b26259c799e25696da03321854f8dc3e19ddf7 /python
parent2f993306408b69b8469a5387e5e609bd1bc0b983 (diff)
downloadsamba-0a7cbe1e953084ef004dffcadcf8436026604820.tar.gz
tests/krb5: Rename ‘auth_silo’ to ‘authn_silo’
Make it clear that this relates to authentication, not authorization. Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'python')
-rwxr-xr-xpython/samba/tests/krb5/claims_tests.py4
-rw-r--r--python/samba/tests/krb5/kdc_base_test.py28
2 files changed, 16 insertions, 16 deletions
diff --git a/python/samba/tests/krb5/claims_tests.py b/python/samba/tests/krb5/claims_tests.py
index 2ce6f8e5ed9..0144e961818 100755
--- a/python/samba/tests/krb5/claims_tests.py
+++ b/python/samba/tests/krb5/claims_tests.py
@@ -1993,7 +1993,7 @@ class ClaimsTests(KDCBaseTest):
expect_claim=True):
# Create a new authentication silo.
silo_id = self.get_new_username()
- silo_dn = self.create_auth_silo(silo_id, enforced=enforced)
+ silo_dn = self.create_authn_silo(silo_id, enforced=enforced)
account_options = None
if assigned is not False:
@@ -2020,7 +2020,7 @@ class ClaimsTests(KDCBaseTest):
'msDS-AuthNPolicySiloMembers',
expect_attr=False)
- claim_id = self.create_auth_silo_claim_id()
+ claim_id = self.create_authn_silo_claim_id()
if expect_claim:
expected_claims = {
diff --git a/python/samba/tests/krb5/kdc_base_test.py b/python/samba/tests/krb5/kdc_base_test.py
index 229ec7d8143..cc7511cdc3c 100644
--- a/python/samba/tests/krb5/kdc_base_test.py
+++ b/python/samba/tests/krb5/kdc_base_test.py
@@ -504,20 +504,20 @@ class KDCBaseTest(RawKerberosTest):
return res[0]
- def create_auth_silo(self,
- silo_id,
- members=None,
- user_policy=None,
- computer_policy=None,
- service_policy=None,
- enforced=None):
+ def create_authn_silo(self,
+ silo_id,
+ members=None,
+ user_policy=None,
+ computer_policy=None,
+ service_policy=None,
+ enforced=None):
samdb = self.get_samdb()
- auth_silo_dn = self.get_authn_silos_dn()
- auth_silo_dn.add_child(f'CN={silo_id}')
+ authn_silo_dn = self.get_authn_silos_dn()
+ authn_silo_dn.add_child(f'CN={silo_id}')
details = {
- 'dn': auth_silo_dn,
+ 'dn': authn_silo_dn,
'objectClass': 'msDS-AuthNPolicySilo',
}
@@ -538,17 +538,17 @@ class KDCBaseTest(RawKerberosTest):
details['msDS-AuthNPolicySiloEnforced'] = enforced
# Save the silo DN so it can be deleted in tearDown().
- self.test_accounts.append(str(auth_silo_dn))
+ self.test_accounts.append(str(authn_silo_dn))
# Remove the silo if it exists; this will happen if a previous test run
# failed.
- delete_force(samdb, auth_silo_dn)
+ delete_force(samdb, authn_silo_dn)
samdb.add(details)
- return auth_silo_dn
+ return authn_silo_dn
- def create_auth_silo_claim_id(self):
+ def create_authn_silo_claim_id(self):
claim_id = 'ad://ext/AuthenticationSilo'
for_classes = [