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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user