mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
tests/krb5: Make use of update_password() method
Signed-off-by: Jo Sutton <josutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
38cfdb6623
commit
3256c6bfd6
@ -1897,11 +1897,11 @@ class GmsaTests(GkdiBaseTest, KDCBaseTest):
|
||||
self.assertEqual(ntstatus.NT_STATUS_LOGON_FAILURE, err.exception.args[0])
|
||||
|
||||
# But we can use the previous password to authenticate.
|
||||
creds.set_password(password_1)
|
||||
creds.update_password(password_1)
|
||||
srvsvc.srvsvc(f"ncacn_np:{dc_server}", lp, creds)
|
||||
|
||||
# And we can authenticate using the current password.
|
||||
creds.set_password(password_2)
|
||||
creds.update_password(password_2)
|
||||
srvsvc.srvsvc(f"ncacn_np:{dc_server}", lp, creds)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user