From a8faf3e9d9ad3894ae3582f1041281d75d855ddd Mon Sep 17 00:00:00 2001 From: Alexandra Ellwood Date: Tue, 18 Jul 2006 20:03:10 +0000 Subject: [PATCH] kadmin_startup(): Turn off KLL automatic prompting support in kadmin ticket: 4023 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18339 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kadmin/cli/kadmin.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/kadmin/cli/kadmin.c b/src/kadmin/cli/kadmin.c index 64b4c3f1c..7c07a3d27 100644 --- a/src/kadmin/cli/kadmin.c +++ b/src/kadmin/cli/kadmin.c @@ -39,6 +39,10 @@ #include #include "kadmin.h" +#if defined(USE_LOGIN_LIBRARY) +#include +#endif + /* special struct to convert flag names for principals to actual krb5_flags for a principal */ struct pflag { @@ -209,6 +213,15 @@ char *kadmin_startup(argc, argv) memset((char *) ¶ms, 0, sizeof(params)); +#if defined(USE_LOGIN_LIBRARY) + /* Turn off all password prompting from the KLL */ + retval = __KLSetPromptMechanism (klPromptMechanism_None); + if (retval) { + com_err(whoami, retval, "while calling __KLSetPromptMechanism()"); + exit(1); + } +#endif + if (strcmp (whoami, "kadmin.local") == 0) set_com_err_hook(extended_com_err_fn); -- 2.26.2