From 23ebe7b2153e5fa2b26ddd4f4ff14fa9319f2666 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Thu, 27 Jan 2000 21:38:34 +0000 Subject: [PATCH] limit kadm5 net interface to des for now until gssapi mech is fixed git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11971 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/kadm5/clnt/ChangeLog | 7 +++++++ src/lib/kadm5/clnt/client_init.c | 9 +++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/lib/kadm5/clnt/ChangeLog b/src/lib/kadm5/clnt/ChangeLog index 396d4d3a1..de4c52557 100644 --- a/src/lib/kadm5/clnt/ChangeLog +++ b/src/lib/kadm5/clnt/ChangeLog @@ -1,3 +1,10 @@ +2000-01-27 Ken Raeburn + + * client_init.c (enctypes): New array, listing only + ENCTYPE_DES_CBC_CRC. + (_kadm5_init_any): Pass it in krb5_get_in_tkt_with_* calls for + now, while GSSAPI/krb5 can only handle DES. + 1999-10-26 Tom Yu * Makefile.in: Clean up usage of CFLAGS, CPPFLAGS, DEFS, DEFINES, diff --git a/src/lib/kadm5/clnt/client_init.c b/src/lib/kadm5/clnt/client_init.c index 65a313d8d..a3d261306 100644 --- a/src/lib/kadm5/clnt/client_init.c +++ b/src/lib/kadm5/clnt/client_init.c @@ -133,6 +133,11 @@ static int preauth_search_list[] = { -1 }; +static krb5_enctype enctypes[] = { + ENCTYPE_DES_CBC_CRC, + 0, +}; + static kadm5_ret_t _kadm5_init_any(char *client_name, enum init_type init_type, char *pass, @@ -345,7 +350,7 @@ static kadm5_ret_t _kadm5_init_any(char *client_name, code = krb5_get_in_tkt_with_password(handle->context, 0, /* no options */ 0, /* default addresses */ - NULL, + enctypes, NULL, /* XXX preauth */ pass, ccache, @@ -366,7 +371,7 @@ static kadm5_ret_t _kadm5_init_any(char *client_name, code = krb5_get_in_tkt_with_keytab(handle->context, 0, /* no options */ 0, /* default addrs */ - NULL, + enctypes, NULL, /* XXX preauth */ kt, ccache, -- 2.26.2