s3-librpc Fix creation of in-memory keytab for previous password
authorAndrew Bartlett <abartlet@samba.org>
Tue, 5 Apr 2011 23:10:13 +0000 (09:10 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 6 Apr 2011 02:34:58 +0000 (12:34 +1000)
We set the current password twice, rather than the current and old
password.

Andrew Bartlett

source3/librpc/crypto/gse_krb5.c

index 735dff059e954aa5776d049b54664c2df66cd581..830d517bc7c728c1f07630184b70a7b799e1da58 100644 (file)
@@ -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 {