From 1e74b92b8978bc6f6fd0cb79312af1d9662a9586 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Sun, 4 Jul 1999 14:56:36 +0000 Subject: [PATCH] (change): fetch the salt-type from the entry git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6410 ec53bebd-3082-4978-b11e-865c3cabbd6b --- kpasswd/kpasswdd.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/kpasswd/kpasswdd.c b/kpasswd/kpasswdd.c index 05857f317..57161f8ce 100644 --- a/kpasswd/kpasswdd.c +++ b/kpasswd/kpasswdd.c @@ -267,6 +267,11 @@ setup_passwd_quality_check(krb5_context context) #endif } +/* + * Change the password for `principal', sending the reply back on `s' + * (`sa', `sa_size') to `pwd_data'. + */ + static void change (krb5_auth_context auth_context, krb5_principal principal, @@ -315,7 +320,7 @@ change (krb5_auth_context auth_context, kd = &ent.key_data[0]; - salt.salttype = KRB5_PW_SALT; + salt.salttype = kd->key_data_type[1]; salt.saltvalue.length = kd->key_data_length[1]; salt.saltvalue.data = kd->key_data_contents[1];