1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

s4:dsdb/tests: let password_lockout.py pass username,userpass optionally to insta_creds()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Stefan Metzmacher 2016-02-05 08:37:53 +01:00 committed by Andrew Bartlett
parent 025e573d84
commit a9722a17ee

View File

@ -57,11 +57,11 @@ global_creds = credopts.get_credentials(lp)
global_creds.set_gensec_features(global_creds.get_gensec_features() |
gensec.FEATURE_SEAL)
def insta_creds(template=global_creds):
def insta_creds(template=global_creds, username="testuser", userpass="thatsAcomplPASS1"):
# get a copy of the global creds or a the passed in creds
c = Credentials()
c.set_username("testuser")
c.set_password("thatsAcomplPASS1")
c.set_username(username)
c.set_password(userpass)
c.set_domain(template.get_domain())
c.set_realm(template.get_realm())
c.set_workstation(template.get_workstation())