]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Make ksu work with prompting clpreauth modules
authorGreg Hudson <ghudson@mit.edu>
Fri, 8 Jan 2016 16:54:55 +0000 (11:54 -0500)
committerTom Yu <tlyu@mit.edu>
Fri, 8 Jan 2016 22:10:32 +0000 (17:10 -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.

(cherry picked from commit 23a16fb5eac733880e34a770882ed17b93b5d66c)

ticket: 8340
version_fixed: 1.13.4
tags: -pullup
status: resolved

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));