]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Make ksu work with prompting clpreauth modules 389/head
authorGreg Hudson <ghudson@mit.edu>
Fri, 8 Jan 2016 16:54:55 +0000 (11:54 -0500)
committerGreg Hudson <ghudson@mit.edu>
Fri, 8 Jan 2016 18:37:10 +0000 (13:37 -0500)
Commit 5fd5a67c5a93514e7d0a64425baa007ad91f57de switched ksu from
using krb5_get_in_tkt_with_password() to
krb5_get_init_creds_password(), but did not supply a prompter
argument.  Pass krb5_prompter_posix so that clpreauth modules can
prompt for additional information during authentication.

ticket: 8340
target_version: 1.14-next
target_version: 1.13-next
tags: pullup

src/clients/ksu/krb_auth_su.c

index 50dbefc06bfb0d92a9e9ce746084e52d12b8cb3e..7af48195cb1f3fd80d671f3e44a2977511457ad2 100644 (file)
@@ -195,7 +195,8 @@ krb5_boolean ksu_get_tgt_via_passwd(context, client, options, zero_password,
     }
 
     code = krb5_get_init_creds_password(context, &creds, client, password,
-                                        NULL, NULL, 0, NULL, options);
+                                        krb5_prompter_posix, NULL, 0, NULL,
+                                        options);
     memset(password, 0, sizeof(password));