3 <log_config>[% server.logconfig %]</log_config>
5 <user>[% server.runuser %]</user>
6 <group>[% server.rungroup %]</group>
7 [% IF server.socketowner %]
8 <socket_owner>[% server.socketowner %]</socket_owner>
10 [% IF server.socketgroup %]
11 <socket_group>[% server.socketgroup %]</socket_group>
13 <socket_file>[% server.socketfile %]</socket_file>
14 <pid_file>[% server.pidfile %]</pid_file>
15 <session_dir>[% dir.openxpkisessiondir %]</session_dir>
16 <connection_timeout>120</connection_timeout>
17 <session_lifetime>[% server.session_lifetime %]</session_lifetime>
18 <stderr>[% server.stderrfile %]</stderr>
19 <tmpdir>[% dir.tmpdir %]</tmpdir>
20 [% FOREACH item = server.transport %]
21 <transport>[% item %]</transport>
23 [% FOREACH item = server.service %]
24 <service>[% item %]</service>
26 [% FOREACH var IN environment.keys %]
28 <variable>[% var %]</variable>
29 <value>[% environment.$var %]</value>
34 <locale_directory>[% dir.localedir %]</locale_directory>
35 <default_language>[% i18n.defaultlanguage %]</default_language>
39 <dir>[% dir.dataexchange %]/export</dir>
42 <dir>[% dir.dataexchange %]/import</dir>
46 [% IF deployment.xmlstyle == 'multi-file' %]
47 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="database.xml"/>
48 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="log_database.xml"/>
49 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="token.xml"/>
50 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="notification.xml"/>
52 [% ELSIF deployment.xmlstyle == 'all-in-one' %]
53 [% INCLUDE database.xml FILTER indent(4) %]
54 [% INCLUDE log_database.xml FILTER indent(4) %]
55 [% INCLUDE token.xml FILTER indent(4) %]
56 [% INCLUDE notification.xml FILTER indent(4) %]
58 [% THROW configerror 'Invalid XML output style specification (deployment.xmlstyle)' %]
63 [% FOREACH realmsection = global.pkirealm %]
64 <pki_realm name="[% $realmsection.name %]" id="[% $realmsection.name %]">
66 <!-- default token (used for general crypto operations not requiring
67 private key operations) -->
68 <token super="common/token_config/token{default}"/>
71 <group id="default" label="I18N_OPENXPKI_CONFIG_DEFAULT_SECRET_AUTHENTICATION_GROUP">
73 <total_shares>1</total_shares>
75 <!-- alternatively use one of the following methods:
76 <method id="literal">password</method>
77 Literal password in the configuration file, not recommended
81 <total_shares>3</total_shares>
83 Shamir's secret splitting, three passphrase shares, three
84 required to unlock the secret.
87 <total_shares>5</total_shares>
88 <required_shares>3</required_shares>
90 Shamir's secret splitting, five passphrase shares, any three
91 required to unlock the secret.
95 <usage_count>-1</usage_count>
100 [% FOREACH notifier = $realmsection.notifier %]
101 <notifier>[% notifier %]</notifier>
105 [% IF deployment.xmlstyle == 'multi-file' %]
106 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="profile.xml"/>
107 [% ELSIF deployment.xmlstyle == 'all-in-one' %]
108 [% INCLUDE profile.xml FILTER indent(6) %]
110 <!-- LDAP addition -->
111 <!-- WARNING: keep "ldap_enable" set to "no" to avoid surprises -->
112 [% IF deployment.xmlstyle == 'multi-file' %]
113 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="ldappublic.xml"/>
114 [% ELSIF deployment.xmlstyle == 'all-in-one' %]
115 [% INCLUDE ldappublic.xml FILTER indent(6) %]
117 <!-- end of LDAP addition -->
120 <!-- Issuing CAs defined for this realm -->
121 <!-- 'id' is the internal CA identifier -->
122 [% FOREACH ca = $realmsection.issuingca %]
123 [% THROW config "No 'id' defined for issuing CA $ca" IF ! $ca.id.defined %]
124 <ca id="[% $ca.id %]">
125 <token super="common/token_config/token{[% $ca.id %]}"/>
128 [% IF $ca.cacert_alias %]
129 <alias>[% $ca.cacert_alias %]</alias>
130 <realm>[% $realmsection.name %]</realm>
131 [% ELSIF $ca.cacert_identifier %]
132 <identifier>[% $ca.cacert_identifier %]</identifier>
134 [% THROW configerror 'Neither alias nor identifier specified for CA certificate.' %]
137 [% IF $ca.crl_publication_file_format && $ca.crl_publication_file_name %]
140 <filename>[% $ca.crl_publication_file_name %]</filename>
141 <format>[% $ca.crl_publication_file_format %]</format>
150 <search_dn></search_dn>
153 <!-- if you do not want to use bind authentication, you can
154 use SASL as well (Authen::SASL is required for that to work)
156 as sasl_mechanism, you can for example configure DIGEST-MD5 for
159 Also note that configuring a hostname (not an IP) is required
167 <search_dn></search_dn>
169 <sasl_mechanism></sasl_mechanism>
170 <sasl_user></sasl_user>
171 <sasl_pass></sasl_pass>
179 <!-- Subsystems defined for this realm -->
180 <!-- 'id' is the subsystem identifier -->
181 [% FOREACH entry = $realmsection.subsystem %]
182 [% THROW config "No 'id' defined for subsystem $entry" IF ! $entry.id.defined %]
183 [% THROW config "No 'type' defined for subsystem $entry" IF ! $entry.type.defined %]
184 <[% $entry.type %] id="[% $entry.id %]">
185 [% IF $entry.cert_alias %]
187 <alias>[% $entry.cert_alias %]</alias>
188 <realm>[% $realmsection.name %]</realm>
190 [% ELSIF $entry.cert_identifier %]
192 <identifier>[% $entry.cert_identifier %]</identifier>
195 <token super="common/token_config/token{[% $entry.id %]}"/>
200 [% IF deployment.xmlstyle == 'multi-file' %]
201 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="auth.xml"/>
202 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="acl.xml"/>
203 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="workflow.xml"/>
204 [% ELSIF deployment.xmlstyle == 'all-in-one' %]
205 [% INCLUDE auth.xml FILTER indent(4) %]
206 [% INCLUDE acl.xml FILTER indent(4) %]
207 [% INCLUDE workflow.xml FILTER indent(4) %]