hdb: Ignore disabled namespaces

If a virtual host-based service namespace is disabled, then the virtual
services below it cease existing.

This will be useful in a later commit where we'll use virtual host-based
service namespace for providing default attributes for new concrete
host-based service principals created via httpkadmind, whether the
namespace be enabled or disabled.
This commit is contained in:
Nicolas Williams
2022-04-25 16:53:00 -05:00
parent 13611702f9
commit 17104ea2f2

View File

@@ -1612,6 +1612,10 @@ fetch_it(krb5_context context,
* of labels.
*/
ret = db->hdb_fetch_kvno(context, db, tmpprinc, flags, kvno, ent);
if (ret == 0 && nsprinc && ent->flags.invalid) {
free_HDB_entry(ent);
ret = HDB_ERR_NOENTRY;
}
if (ret != HDB_ERR_NOENTRY || hdots == 0 || hdots < mindots || !tmp ||
!do_search)
break;