krb5 commit: Make ksu work with prompting clpreauth modules
Greg Hudson
ghudson at mit.edu
Fri Jan 8 13:37:30 EST 2016
https://github.com/krb5/krb5/commit/23a16fb5eac733880e34a770882ed17b93b5d66c
commit 23a16fb5eac733880e34a770882ed17b93b5d66c
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.
ticket: 8340
target_version: 1.14-next
target_version: 1.13-next
tags: pullup
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