hdb: SQLite HDB can handle enterprise principals
add HDB_CAP_F_HANDLE_ENTERPRISE_PRINCIPAL to the capability flags for the SQLite backend, as it uses the common _hdb_fetch_kvno() helper which supports enterprise principals. Failure to set this flag resulted in hdb_fetch_kvno() incorrectly returning HDB_ERR_WRONG_REALM when enterprise principals were being used, as the enterprise name translation was instead done by _kdc_db_fetch(), thereby squashing the enterprise name type (which otherwise would have set the force_canonicalize option).
This commit is contained in:
@@ -1049,7 +1049,7 @@ hdb_sqlite_create(krb5_context context, HDB **db, const char *filename)
|
||||
|
||||
(*db)->hdb_master_key_set = 0;
|
||||
(*db)->hdb_openp = 0;
|
||||
(*db)->hdb_capability_flags = 0;
|
||||
(*db)->hdb_capability_flags = HDB_CAP_F_HANDLE_ENTERPRISE_PRINCIPAL;
|
||||
|
||||
(*db)->hdb_open = hdb_sqlite_open;
|
||||
(*db)->hdb_close = hdb_sqlite_close;
|
||||
|
Reference in New Issue
Block a user