diff options
author | Tom Yu <tlyu@mit.edu> | 2003-03-06 02:39:51 +0000 |
---|---|---|
committer | Tom Yu <tlyu@mit.edu> | 2003-03-06 02:39:51 +0000 |
commit | 416d9a774090ee78c30a844025887bd2b9e79d16 (patch) | |
tree | 125ef2ffc3d8cee7138aa853731aa3ba8bc0e065 /src/lib/kdb/kdb_xdr.c | |
parent | 74cb6881569b70f41fb9781ebc9a5b95bba59c7d (diff) | |
download | krb5-416d9a774090ee78c30a844025887bd2b9e79d16.tar.gz krb5-416d9a774090ee78c30a844025887bd2b9e79d16.tar.xz krb5-416d9a774090ee78c30a844025887bd2b9e79d16.zip |
use kdb keytab for kadmind
kadmind previously required a file-based keytab to support its use of
gssapi. For ease of administration, a kdb-based keytab would be
beneficial.
This commit includes changes to the kdb library to support this goal,
as well as actual changes in the kadmind itself.
ticket: new
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15237 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/kdb/kdb_xdr.c')
-rw-r--r-- | src/lib/kdb/kdb_xdr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/kdb/kdb_xdr.c b/src/lib/kdb/kdb_xdr.c index 6068444c35..fb0a41ea4a 100644 --- a/src/lib/kdb/kdb_xdr.c +++ b/src/lib/kdb/kdb_xdr.c @@ -764,14 +764,14 @@ krb5_dbe_search_enctype(kcontext, dbentp, start, ktype, stype, kvno, kdatap) } - if (ktype >= 0) { + if (ktype > 0) { if ((ret = krb5_c_enctype_compare(kcontext, (krb5_enctype) ktype, dbentp->key_data[i].key_data_type[0], &similar))) return(ret); } - if (((ktype < 0) || similar) && + if (((ktype <= 0) || similar) && ((db_stype == stype) || (stype < 0))) { if (kvno >= 0) { if (kvno == dbentp->key_data[i].key_data_kvno) { |