]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
tests/krb5/raw_testcase.py: Add get_admin_creds()
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Tue, 15 Jun 2021 01:14:33 +0000 (13:14 +1200)
committerStefan Metzmacher <metze@samba.org>
Thu, 1 Jul 2021 17:46:31 +0000 (17:46 +0000)
This method allows obtaining credentials that can be used for
administrative tasks such as creating accounts.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
python/samba/tests/krb5/raw_testcase.py

index 8c8926b0ad21c2a51ac1dba87169ef236789616a..7e41245f70683110309e0fe0e41dd10c51e9f249 100644 (file)
@@ -526,6 +526,11 @@ class RawKerberosTest(TestCaseInTempDir):
                                  allow_missing_password=allow_missing_password)
         return c
 
+    def get_admin_creds(self, allow_missing_password=False):
+        c = self._get_krb5_creds(prefix='ADMIN',
+                                 allow_missing_password=allow_missing_password)
+        return c
+
     def get_krbtgt_creds(self, require_strongest_key=False):
         c = self._get_krb5_creds(prefix='KRBTGT',
                                  default_username='krbtgt',