bool ldb_dn_is_valid(struct ldb_dn *dn)
{
	if ( ! dn) return false;
	return ! dn->invalid;
}

The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.