From 0415a5736e7e68f076fcf63dc16a7d33da4e569d Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 6 Apr 2011 09:10:13 +1000 Subject: s3-librpc Fix creation of in-memory keytab for previous password We set the current password twice, rather than the current and old password. Andrew Bartlett --- source3/librpc/crypto/gse_krb5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3') diff --git a/source3/librpc/crypto/gse_krb5.c b/source3/librpc/crypto/gse_krb5.c index 735dff059e..830d517bc7 100644 --- a/source3/librpc/crypto/gse_krb5.c +++ b/source3/librpc/crypto/gse_krb5.c @@ -280,7 +280,7 @@ static krb5_error_code get_mem_keytab_from_secrets(krb5_context krbctx, goto out; } - pwd_old = secrets_fetch_machine_password(lp_workgroup(), NULL, NULL); + pwd_old = secrets_fetch_prev_machine_password(lp_workgroup()); if (!pwd_old) { DEBUG(10, (__location__ ": no prev machine password\n")); } else { -- cgit