summaryrefslogtreecommitdiffstats
path: root/src/kadmin
diff options
context:
space:
mode:
authorAlexandra Ellwood <lxs@mit.edu>2006-07-18 20:03:10 +0000
committerAlexandra Ellwood <lxs@mit.edu>2006-07-18 20:03:10 +0000
commita8faf3e9d9ad3894ae3582f1041281d75d855ddd (patch)
tree58a9b605ce5aef01bf0ae0a0d99dd2dbcd25f7a9 /src/kadmin
parent7e3967b67cfe18a6a35dfd33a983a7f39da3db38 (diff)
downloadkrb5-a8faf3e9d9ad3894ae3582f1041281d75d855ddd.tar.gz
krb5-a8faf3e9d9ad3894ae3582f1041281d75d855ddd.tar.xz
krb5-a8faf3e9d9ad3894ae3582f1041281d75d855ddd.zip
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
Diffstat (limited to 'src/kadmin')
-rw-r--r--src/kadmin/cli/kadmin.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/kadmin/cli/kadmin.c b/src/kadmin/cli/kadmin.c
index 64b4c3f1c0..7c07a3d276 100644
--- a/src/kadmin/cli/kadmin.c
+++ b/src/kadmin/cli/kadmin.c
@@ -39,6 +39,10 @@
#include <time.h>
#include "kadmin.h"
+#if defined(USE_LOGIN_LIBRARY)
+#include <Kerberos/KerberosLoginPrivate.h>
+#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 *) &params, 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);