mirror of
https://github.com/samba-team/samba.git
synced 2025-03-20 22:50:26 +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> BUG: https://bugzilla.samba.org/show_bug.cgi?id=14817 (cherry picked from commit 5afae39da0ab408bb36dde3a7801634bd9cc24f6)
This commit is contained in:
parent
461131ed51
commit
c12cc69371
@ -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…
x
Reference in New Issue
Block a user