From a9722a17ee06de3b47b917bfb22761728ce621aa Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 5 Feb 2016 08:37:53 +0100 Subject: [PATCH] s4:dsdb/tests: let password_lockout.py pass username,userpass optionally to insta_creds() Signed-off-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett --- source4/dsdb/tests/python/password_lockout.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source4/dsdb/tests/python/password_lockout.py b/source4/dsdb/tests/python/password_lockout.py index f88a325cec8..49f87130504 100755 --- a/source4/dsdb/tests/python/password_lockout.py +++ b/source4/dsdb/tests/python/password_lockout.py @@ -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()) -- 2.47.3