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:
parent
5412bffb9b
commit
5afae39da0
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user