krb5 commit [krb5-1.13]: Make ksu work with prompting clpreauth modules
Tom Yu
tlyu at mit.edu
Fri Jan 8 17:16:21 EST 2016
https://github.com/krb5/krb5/commit/92ffd801940822c680c4719dc22ca3be29820688
commit 92ffd801940822c680c4719dc22ca3be29820688
Author: Greg Hudson <ghudson at mit.edu>
Date: Fri Jan 8 11:54:55 2016 -0500
Make ksu work with prompting clpreauth modules
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 | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/clients/ksu/krb_auth_su.c b/src/clients/ksu/krb_auth_su.c
index 50dbefc..7af4819 100644
--- a/src/clients/ksu/krb_auth_su.c
+++ b/src/clients/ksu/krb_auth_su.c
@@ -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));
More information about the cvs-krb5
mailing list