mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
This removes the ipa.syntaxrule and ipa.datarule macros in favor of simple 'if' statements based on the data referenced in the rules. The 'if' statement for a syntax rule is generated based on the data rules it contains. The Subject DN should not be generated unless all data rules are in place, so the ability to override the logical operator that combines data_sources (from 'or' to 'and') is added. https://fedorahosted.org/freeipa/ticket/4899 Reviewed-By: Jan Cholasta <jcholast@redhat.com>
17 lines
345 B
JSON
17 lines
345 B
JSON
{
|
|
"rules": [
|
|
{
|
|
"helper": "openssl",
|
|
"template": "distinguished_name = {% call openssl.section() %}{{ datarules|reverse|join('\n') }}{% endcall %}"
|
|
},
|
|
{
|
|
"helper": "certutil",
|
|
"template": "-s {{ datarules|join(',') }}"
|
|
}
|
|
],
|
|
"options": {
|
|
"required": true,
|
|
"data_source_combinator": "and"
|
|
}
|
|
}
|