add option to disable kerberos 4 kadmin

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11489 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
2002-10-21 13:21:24 +00:00
parent 34f20b4fef
commit fed79b33b9
4 changed files with 28 additions and 6 deletions

View File

@@ -532,6 +532,8 @@ handle_v5(krb5_context context,
v5_loop (context, ac, initial, kadm_handle, fd);
}
extern int do_kerberos4;
krb5_error_code
kadmind_loop(krb5_context context,
krb5_auth_context ac,
@@ -551,7 +553,10 @@ kadmind_loop(krb5_context context,
if(len > 0xffff && (len & 0xffff) == ('K' << 8) + 'A') {
len >>= 16;
#ifdef KRB4
handle_v4(context, keytab, len, fd);
if(do_kerberos4)
handle_v4(context, keytab, len, fd);
else
krb5_errx(context, 1, "version 4 kadmin is disabled");
#else
krb5_errx(context, 1, "packet appears to be version 4");
#endif