Add more HDB_F flags to hdb_fetch. Pointed out by Andrew Bartlet.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18368 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-10-09 09:44:51 +00:00
parent b929d3a4d3
commit 8c8b418934

View File

@@ -220,7 +220,10 @@ hdb_get_entry(krb5_context context,
(*db->hdb_destroy)(context, db);
return ret;
}
ret = (*db->hdb_fetch)(context, db, principal, HDB_F_DECRYPT, &ent);
ret = (*db->hdb_fetch)(context, db, principal,
HDB_F_DECRYPT||
HDB_F_GET_CLIENT|HDB_F_GET_SERVER|HDB_F_GET_KRBTGT,
&ent);
if(ret == HDB_ERR_NOENTRY) {
ret = KRB5_KT_NOTFOUND;