1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

tests/krb5/raw_testcase.py: Add get_admin_creds()

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>
This commit is contained in:
Joseph Sutton 2021-06-15 13:14:33 +12:00 committed by Stefan Metzmacher
parent 5412bffb9b
commit 5afae39da0

View 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',