From: Tom Yu Date: Thu, 15 Aug 2002 20:49:08 +0000 (+0000) Subject: * keytab.c (krb5_ktkdb_get_entry): For consistency, check for X-Git-Tag: krb5-1.3-alpha1~501 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e8269931299293e22180a2abf6da5ddbd4663676;p=krb5.git * keytab.c (krb5_ktkdb_get_entry): For consistency, check for DISALLOW_ALL_TIX and DISALLOW_SVR when looking up keys. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14727 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/kdb/ChangeLog b/src/lib/kdb/ChangeLog index 24f7e51de..a790596ad 100644 --- a/src/lib/kdb/ChangeLog +++ b/src/lib/kdb/ChangeLog @@ -1,3 +1,8 @@ +2002-08-15 Tom Yu + + * keytab.c (krb5_ktkdb_get_entry): For consistency, check for + DISALLOW_ALL_TIX and DISALLOW_SVR when looking up keys. + 2002-08-09 Sam Hartman * kdb_xdr.c (krb5_dbe_search_enctype): Initialize ret to 0; thanks diff --git a/src/lib/kdb/keytab.c b/src/lib/kdb/keytab.c index f8077324b..9c9b3b3bd 100644 --- a/src/lib/kdb/keytab.c +++ b/src/lib/kdb/keytab.c @@ -116,6 +116,12 @@ krb5_ktkdb_get_entry(context, id, principal, kvno, enctype, entry) return KRB5_KT_NOTFOUND; } + if (db_entry.attributes & KRB5_KDB_DISALLOW_SVR + || db_entry.attributes & KRB5_KDB_DISALLOW_ALL_TIX) { + kerror = KRB5_KT_NOTFOUND; + goto error; + } + /* match key */ kerror = krb5_db_get_mkey(context, &master_key); if (kerror)