View | Details | Raw Unified | Return to bug 28278
Collapse All | Expand All

(-)a/t/Koha/Config.t (-27 / +202 lines)
Lines 18-59 Link Here
18
use Modern::Perl;
18
use Modern::Perl;
19
19
20
use Test::More tests => 2;
20
use Test::More tests => 2;
21
use Test::MockModule;
21
use FindBin qw($Bin $Script);
22
use Test::Warn;
23
24
use Carp;
25
26
my $parsing_result = 'ok';
27
28
my $xml_simple = Test::MockModule->new('XML::Simple');
29
$xml_simple->mock(
30
    XMLin => sub {
31
        if ( $parsing_result eq 'error' ) {
32
            croak "Something";
33
        } else {
34
            return "XML data";
35
        }
36
    }
37
);
38
22
39
use_ok('Koha::Config');
23
use_ok('Koha::Config');
40
24
41
subtest 'read_from_file() tests' => sub {
25
my $config_filepath = "$Bin/../data/koha-conf.xml";
42
26
43
    plan tests => 4;
27
subtest 'read_from_file() tests' => sub {
28
    plan tests => 3;
44
29
45
    is( Koha::Config->read_from_file(undef), undef,
30
    is( Koha::Config->read_from_file(undef), undef,
46
        "Undef parameter makes function return undef");
31
        "Undef parameter makes function return undef");
47
32
48
    $parsing_result = 'ok';
33
    my $got = eval { Koha::Config->read_from_file($config_filepath) };
49
34
    my $expected = {
50
    my $result = Koha::Config->read_from_file("SomeFile.xml");
35
        'listen' => {
51
    is( $result, 'XML data', 'File read correctly' );
36
            'biblioserver' => {
52
37
                'content' => 'unix:/home/koha/var/run/zebradb/bibliosocket',
53
    $parsing_result = 'error';
38
            },
39
            'authorityserver' => {
40
                'content' => 'unix:/home/koha/var/run/zebradb/authoritysocket',
41
            },
42
        },
43
        'server' => {
44
            'biblioserver' => {
45
                'listenref' => 'biblioserver',
46
                'directory' => '/home/koha/var/lib/zebradb/biblios',
47
                'config' => '/home/koha/etc/zebradb/zebra-biblios-dom.cfg',
48
                'cql2rpn' => '/home/koha/etc/zebradb/pqf.properties',
49
                'xi:include' => [
50
                    {
51
                        'href' => '/home/koha/etc/zebradb/retrieval-info-bib-dom.xml',
52
                        'xmlns:xi' => 'http://www.w3.org/2001/XInclude'
53
                    },
54
                    {
55
                        'xmlns:xi' => 'http://www.w3.org/2001/XInclude',
56
                        'href' => '/home/koha/etc/zebradb/explain-biblios.xml'
57
                    }
58
                ],
59
            },
60
            'authorityserver' => {
61
                'listenref' => 'authorityserver',
62
                'directory' => '/home/koha/var/lib/zebradb/authorities',
63
                'config' => '/home/koha/etc/zebradb/zebra-authorities-dom.cfg',
64
                'cql2rpn' => '/home/koha/etc/zebradb/pqf.properties',
65
                'xi:include' => [
66
                    {
67
                        'xmlns:xi' => 'http://www.w3.org/2001/XInclude',
68
                        'href' => '/home/koha/etc/zebradb/retrieval-info-auth-dom.xml'
69
                    },
70
                    {
71
                        'href' => '/home/koha/etc/zebradb/explain-authorities.xml',
72
                        'xmlns:xi' => 'http://www.w3.org/2001/XInclude'
73
                    }
74
                ],
75
            },
76
        },
77
        'serverinfo' => {
78
            'biblioserver' => {
79
                'ccl2rpn' => '/home/koha/etc/zebradb/ccl.properties',
80
                'user' => 'kohauser',
81
                'password' => 'zebrastripes',
82
            },
83
            'authorityserver' => {
84
                'ccl2rpn' => '/home/koha/etc/zebradb/ccl.properties',
85
                'user' => 'kohauser',
86
                'password' => 'zebrastripes',
87
            }
88
        },
89
        'config' => {
90
            'db_scheme' => 'mysql',
91
            'database' => 'koha',
92
            'hostname' => 'localhost',
93
            'port' => '3306',
94
            'user' => 'kohaadmin',
95
            'pass' => 'katikoan',
96
            'tls' => 'no',
97
            'ca' => '',
98
            'cert' => '',
99
            'key' => '',
100
            'biblioserver' => 'biblios',
101
            'biblioservershadow' => '1',
102
            'authorityserver' => 'authorities',
103
            'authorityservershadow' => '1',
104
            'pluginsdir' => '/home/koha/var/lib/plugins',
105
            'enable_plugins' => '0',
106
            'upload_path' => '',
107
            'tmp_path' => '',
108
            'intranetdir' => '/home/koha/src',
109
            'opacdir' => '/home/koha/src/opac',
110
            'opachtdocs' => '/home/koha/src/koha-tmpl/opac-tmpl',
111
            'intrahtdocs' => '/home/koha/src/koha-tmpl/intranet-tmpl',
112
            'includes' => '/home/koha/src/koha-tmpl/intranet-tmpl/prog/en/includes/',
113
            'logdir' => '/home/koha/var/log',
114
            'docdir' => '/home/koha/doc',
115
            'backupdir' => '/home/koha/var/spool',
116
            'mana_config' => 'https://mana-kb.koha-community.org',
117
            'backup_db_via_tools' => '0',
118
            'backup_conf_via_tools' => '0',
119
            'install_log' => '/home/koha/misc/koha-install-log',
120
            'useldapserver' => '0',
121
            'useshibboleth' => '0',
122
            'zebra_lockdir' => '/home/koha/var/lock/zebradb',
123
            'lockdir' => '__LOCK_DIR__',
124
            'use_zebra_facets' => '1',
125
            'zebra_max_record_size' => '1024',
126
            'log4perl_conf' => '/home/koha/etc/log4perl.conf',
127
            'memcached_servers' => '127.0.0.1:11211',
128
            'memcached_namespace' => 'KOHA',
129
            'template_cache_dir' => '/tmp/koha',
130
            'api_secret_passphrase' => 'CHANGEME',
131
            'ttf' => {
132
                'font' => [
133
                    {
134
                        'type' => 'TR',
135
                        'content' => '/usr/share/fonts/truetype/dejavu/DejaVuSerif.ttf',
136
                    },
137
                    {
138
                        'type' => 'TB',
139
                        'content' => '/usr/share/fonts/truetype/dejavu/DejaVuSerif-Bold.ttf',
140
                    },
141
                    {
142
                        'type' => 'TI',
143
                        'content' => '/usr/share/fonts/truetype/dejavu/DejaVuSerif-Italic.ttf',
144
                    },
145
                    {
146
                        'type' => 'TBI',
147
                        'content' => '/usr/share/fonts/truetype/dejavu/DejaVuSerif-BoldItalic.ttf',
148
                    },
149
                    {
150
                        'type' => 'C',
151
                        'content' => '/usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf',
152
                    },
153
                    {
154
                        'type' => 'CB',
155
                        'content' => '/usr/share/fonts/truetype/dejavu/DejaVuSansMono-Bold.ttf',
156
                    },
157
                    {
158
                        'type' => 'CO',
159
                        'content' => '/usr/share/fonts/truetype/dejavu/DejaVuSansMono-Oblique.ttf',
160
                    },
161
                    {
162
                        'type' => 'CBO',
163
                        'content' => '/usr/share/fonts/truetype/dejavu/DejaVuSansMono-BoldOblique.ttf',
164
                    },
165
                    {
166
                        'type' => 'H',
167
                        'content' => '/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf',
168
                    },
169
                    {
170
                        'type' => 'HO',
171
                        'content' => '/usr/share/fonts/truetype/dejavu/DejaVuSans-Oblique.ttf',
172
                    },
173
                    {
174
                        'type' => 'HB',
175
                        'content' => '/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf',
176
                    },
177
                    {
178
                        'type' => 'HBO',
179
                        'content' => '/usr/share/fonts/truetype/dejavu/DejaVuSans-BoldOblique.ttf',
180
                    },
181
                ],
182
            },
183
            'sms_send_config' => '/home/koha/etc/sms_send/',
184
            'plack_max_requests' => '50',
185
            'plack_workers' => '2',
186
            'elasticsearch' => {
187
                'server' => [
188
                    'localhost:9200',
189
                ],
190
                'index_name' => 'koha_master',
191
                'cxn_pool' => 'Static',
192
            },
193
            'interlibrary_loans' => {
194
                'backend_directory' => '/home/koha/src/Koha/Illbackends',
195
                'branch' => {
196
                    'code' => 'CPL',
197
                    'prefix' => 'ILL',
198
                },
199
                'staff_request_comments' => 'hide',
200
                'reply_date' => 'hide',
201
                'digital_recipient' => 'branch',
202
                'partner_code' => 'ILLLIBS',
203
            },
204
            'timezone' => '',
205
            'bcrypt_settings' => '__BCRYPT_SETTINGS__',
206
            'dev_install' => '0',
207
            'strict_sql_modes' => '0',
208
            'plugin_repos' => '',
209
            'koha_xslt_security' => '',
210
            'smtp_server' => {
211
                'host' => 'localhost',
212
                'port' => '25',
213
                'timeout' => '120',
214
                'ssl_mode' => 'disabled',
215
                'user_name' => '',
216
                'password' => '',
217
                'debug' => '0',
218
            },
219
            'message_broker' => {
220
                'hostname' => 'localhost',
221
                'port' => '61613',
222
                'username' => 'guest',
223
                'password' => 'guest',
224
                'vhost' => '',
225
            },
226
        },
227
    };
228
    is_deeply( $got, $expected, 'File read correctly' );
54
229
55
    $result = eval {Koha::Config->read_from_file("SomeFile.xml")};
230
    # Reading a Perl script as XML should fail hopefully
231
    eval { Koha::Config->read_from_file("$Bin/$Script") };
56
    like( $@, qr{.*Error reading file.*}, 'File failing to read raises warning');
232
    like( $@, qr{.*Error reading file.*}, 'File failing to read raises warning');
57
    is( $result, undef, 'Returns undef on error confition' );
58
};
233
};
59
234
(-)a/t/data/koha-conf.xml (-1 / +269 lines)
Line 0 Link Here
0
- 
1
<yazgfs>
2
<!-- [scheme:]host[:port][/databaseName] -->
3
<!-- scheme: tcp, ssl, unix, http, sru -->
4
<!-- can run all servers on tcp, but the unix socket is faster -->
5
6
<listen id="biblioserver" >unix:/home/koha/var/run/zebradb/bibliosocket</listen>
7
<listen id="authorityserver" >unix:/home/koha/var/run/zebradb/authoritysocket</listen>
8
9
<!-- Uncomment the following entry if you want to run the public Z39.50 server.
10
    Also uncomment the <server> and <serverinfo> sections for id 'publicserver'
11
    under PUBLICSERVER'S BIBLIOGRAPHIC RECORDS title-->
12
<!--
13
<listen id="publicserver" >tcp:@:9998</listen>
14
-->
15
16
<!-- BIBLIOGRAPHIC RECORDS -->
17
<server id="biblioserver"  listenref="biblioserver">
18
    <directory>/home/koha/var/lib/zebradb/biblios</directory>
19
    <config>/home/koha/etc/zebradb/zebra-biblios-dom.cfg</config>
20
    <cql2rpn>/home/koha/etc/zebradb/pqf.properties</cql2rpn>
21
    <xi:include href="/home/koha/etc/zebradb/retrieval-info-bib-dom.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
22
    <xi:include href="/home/koha/etc/zebradb/explain-biblios.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
23
</server>
24
<serverinfo id="biblioserver">
25
        <ccl2rpn>/home/koha/etc/zebradb/ccl.properties</ccl2rpn>
26
        <user>kohauser</user>
27
        <password>zebrastripes</password>
28
</serverinfo>
29
30
<!-- AUTHORITY RECORDS -->
31
<server id="authorityserver"  listenref="authorityserver" >
32
    <directory>/home/koha/var/lib/zebradb/authorities</directory>
33
    <config>/home/koha/etc/zebradb/zebra-authorities-dom.cfg</config>
34
    <cql2rpn>/home/koha/etc/zebradb/pqf.properties</cql2rpn>
35
    <xi:include href="/home/koha/etc/zebradb/retrieval-info-auth-dom.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
36
    <xi:include href="/home/koha/etc/zebradb/explain-authorities.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
37
</server>
38
<serverinfo id="authorityserver">
39
    <ccl2rpn>/home/koha/etc/zebradb/ccl.properties</ccl2rpn>
40
    <user>kohauser</user>
41
    <password>zebrastripes</password>
42
</serverinfo>
43
44
<!-- PUBLICSERVER'S BIBLIOGRAPHIC RECORDS -->
45
<!--
46
<server id="publicserver"  listenref="publicserver">
47
    <directory>/home/koha/var/lib/zebradb/biblios</directory>
48
    <config>/home/koha/etc/zebradb/zebra-biblios-dom.cfg</config>
49
    <cql2rpn>/home/koha/etc/zebradb/pqf.properties</cql2rpn>
50
    <xi:include href="/home/koha/etc/zebradb/retrieval-info-bib-dom.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
51
    <xi:include href="/home/koha/etc/zebradb/explain-biblios.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
52
</server>
53
<serverinfo id="publicserver">
54
        <ccl2rpn>/home/koha/etc/zebradb/ccl.properties</ccl2rpn>
55
        <user>kohauser</user>
56
        <password>zebrastripes</password>
57
</serverinfo>
58
-->
59
60
<!-- ADDITIONAL KOHA CONFIGURATION DIRECTIVE -->
61
<!-- db_scheme should follow the DBD driver name -->
62
<!-- the DBD drivers supported by Koha are mysql and Pg -->
63
<!-- port info: mysql:3306 Pg:5432 (5433 on Debian) -->
64
<config>
65
 <db_scheme>mysql</db_scheme>
66
 <database>koha</database>
67
 <hostname>localhost</hostname>
68
 <port>3306</port>
69
 <user>kohaadmin</user>
70
 <pass>katikoan</pass>
71
 <tls>no</tls>
72
 <ca></ca>
73
 <cert></cert>
74
 <key></key>
75
 <biblioserver>biblios</biblioserver>
76
 <biblioservershadow>1</biblioservershadow>
77
 <authorityserver>authorities</authorityserver>
78
 <authorityservershadow>1</authorityservershadow>
79
 <pluginsdir>/home/koha/var/lib/plugins</pluginsdir> <!-- This entry can be repeated to use multiple directories -->
80
 <enable_plugins>0</enable_plugins>
81
 <upload_path></upload_path>
82
 <tmp_path></tmp_path>
83
 <intranetdir>/home/koha/src</intranetdir>
84
 <opacdir>/home/koha/src/opac</opacdir>
85
 <opachtdocs>/home/koha/src/koha-tmpl/opac-tmpl</opachtdocs>
86
 <intrahtdocs>/home/koha/src/koha-tmpl/intranet-tmpl</intrahtdocs>
87
 <includes>/home/koha/src/koha-tmpl/intranet-tmpl/prog/en/includes/</includes>
88
 <logdir>/home/koha/var/log</logdir>
89
 <docdir>/home/koha/doc</docdir>
90
 <backupdir>/home/koha/var/spool</backupdir>
91
 <!-- URL of the mana KB server -->
92
 <!-- alternative value http://mana-test.koha-community.org to query the test server -->
93
 <mana_config>https://mana-kb.koha-community.org</mana_config>
94
 <!-- Enable the two following to allow superlibrarians to download
95
      database and configuration dumps (respectively) from the Export
96
      tool -->
97
 <backup_db_via_tools>0</backup_db_via_tools>
98
 <backup_conf_via_tools>0</backup_conf_via_tools>
99
 <!-- Uncomment the following line if you are not using packages and need to schedule reports through the web interface. supportdir should contain cronjobs/runreport.pl -->
100
 <!--
101
 <supportdir>/home/koha/src/misc</supportdir>
102
 -->
103
 <install_log>/home/koha/misc/koha-install-log</install_log>
104
 <useldapserver>0</useldapserver><!-- see C4::Auth_with_ldap for extra configs you must add if you want to turn this on -->
105
 <useshibboleth>0</useshibboleth><!-- see C4::Auth_with_shibboleth for extra configs you must do to turn this on -->
106
 <zebra_lockdir>/home/koha/var/lock/zebradb</zebra_lockdir>
107
 <lockdir>__LOCK_DIR__</lockdir>
108
 <use_zebra_facets>1</use_zebra_facets>
109
 <zebra_max_record_size>1024</zebra_max_record_size>
110
 <log4perl_conf>/home/koha/etc/log4perl.conf</log4perl_conf>
111
 <!-- Uncomment/edit next setting if you want to adjust zebra log levels.
112
      Default is: none,fatal,warn.
113
      You can also include: debug,log,malloc,all,request.
114
      Use a comma-separated list of levels to include. -->
115
 <!-- <zebra_loglevels>none,fatal,warn</zebra_loglevels> -->
116
 <memcached_servers>127.0.0.1:11211</memcached_servers>
117
 <memcached_namespace>KOHA</memcached_namespace>
118
 <template_cache_dir>/tmp/koha</template_cache_dir>
119
120
 <!-- Secret passphrase used by Mojolicious for signed cookies -->
121
 <api_secret_passphrase>CHANGEME</api_secret_passphrase>
122
123
 <!-- Accessible directory from the staff client, uncomment the following line and define a valid path to let the intranet user access it-->
124
 <!--
125
 <access_dirs>
126
     <access_dir></access_dir>
127
     <access_dir></access_dir>
128
 </access_dirs>
129
 -->
130
131
 <!-- true type font mapping accoding to type from $font_types in C4/Creators/Lib.pm -->
132
 <ttf>
133
    <font type="TR" >/usr/share/fonts/truetype/dejavu/DejaVuSerif.ttf</font>
134
    <font type="TB" >/usr/share/fonts/truetype/dejavu/DejaVuSerif-Bold.ttf</font>
135
    <font type="TI" >/usr/share/fonts/truetype/dejavu/DejaVuSerif-Italic.ttf</font>
136
    <font type="TBI">/usr/share/fonts/truetype/dejavu/DejaVuSerif-BoldItalic.ttf</font>
137
    <font type="C"  >/usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf</font>
138
    <font type="CB" >/usr/share/fonts/truetype/dejavu/DejaVuSansMono-Bold.ttf</font>
139
    <font type="CO" >/usr/share/fonts/truetype/dejavu/DejaVuSansMono-Oblique.ttf</font>
140
    <font type="CBO">/usr/share/fonts/truetype/dejavu/DejaVuSansMono-BoldOblique.ttf</font>
141
    <font type="H"  >/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf</font>
142
    <font type="HO" >/usr/share/fonts/truetype/dejavu/DejaVuSans-Oblique.ttf</font>
143
    <font type="HB" >/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf</font>
144
    <font type="HBO">/usr/share/fonts/truetype/dejavu/DejaVuSans-BoldOblique.ttf</font>
145
 </ttf>
146
147
 <!-- Path to the config file for SMS::Send -->
148
 <sms_send_config>/home/koha/etc/sms_send/</sms_send_config>
149
150
 <!-- Configuration for Plack -->
151
 <plack_max_requests>50</plack_max_requests>
152
 <plack_workers>2</plack_workers>
153
154
 <!-- Configuration for X-Forwarded-For -->
155
 <!--
156
 <koha_trusted_proxies>1.2.3.4 2.3.4.5 3.4.5.6</koha_trusted_proxies>
157
 -->
158
159
 <!-- Elasticsearch Configuration -->
160
 <elasticsearch>
161
     <server>localhost:9200</server>
162
     <index_name>koha_master</index_name>
163
164
     <!-- See https://metacpan.org/pod/Search::Elasticsearch#cxn_pool -->
165
     <cxn_pool>Static</cxn_pool>
166
     <!-- See https://metacpan.org/pod/Search::Elasticsearch#trace_to -->
167
     <!-- <trace_to>Stderr</trace_to> -->
168
 </elasticsearch>
169
 <!-- Uncomment the following line if you want to override the Elasticsearch default index settings -->
170
 <!-- <elasticsearch_index_config>/home/koha/etc/searchengine/elasticsearch/index_config.yaml</elasticsearch_index_config> -->
171
 <!-- Uncomment the following line if you want to override the Elasticsearch default field settings -->
172
 <!-- <elasticsearch_field_config>/home/koha/etc/searchengine/elasticsearch/field_config.yaml</elasticsearch_field_config> -->
173
 <!-- Uncomment the following line if you want to override the Elasticsearch index default settings.
174
      Note that any changes made to the mappings file only take effect if you reset the mappings in
175
      by visiting /cgi-bin/koha/admin/searchengine/elasticsearch/mappings.pl?op=reset&i_know_what_i_am_doing=1&reset_fields=1.
176
      Resetting mappings will override any changes made in the Search engine configuration UI.
177
 -->
178
 <!-- <elasticsearch_index_mappings>/home/koha/etc/searchengine/elasticsearch/mappings.yaml</elasticsearch_index_mappings> -->
179
180
 <interlibrary_loans>
181
     <!-- Path to where Illbackends are located on the system
182
          - This setting should normally not be touched -->
183
     <backend_directory>/home/koha/src/Koha/Illbackends</backend_directory>
184
     <!-- At least one <branch> block is required. -->
185
     <branch>
186
         <!-- The code of this branch -->
187
         <code>CPL</code>
188
         <!-- An optional prefix for all ILL request IDs for this branch -->
189
         <prefix>ILL</prefix>
190
     </branch>
191
     <!-- How should we treat staff comments?
192
          - hide: don't show in OPAC
193
          - show: show in OPAC -->
194
     <staff_request_comments>hide</staff_request_comments>
195
     <!-- How should we treat the reply_date field?
196
          - hide: don't show this field in the UI
197
          - any other string: show, with this label -->
198
     <reply_date>hide</reply_date>
199
     <!-- Where should digital ILLs be sent?
200
          - borrower: send it straight to the borrower email
201
          - branch: send the ILL to the branch email -->
202
     <digital_recipient>branch</digital_recipient>
203
     <!-- What patron category should we use for p2p ILL requests?
204
          - By default this is set to 'ILLLIBS' -->
205
     <partner_code>ILLLIBS</partner_code>
206
 </interlibrary_loans>
207
208
 <!-- The timezone setting can let you force the timezone for this
209
      instance to be something other then the local timezone of the
210
      server. e.g. Antarctica/South_Pole -->
211
 <timezone></timezone>
212
213
 <!-- This is the bcryt settings used to generated anonymized content -->
214
 <bcrypt_settings>__BCRYPT_SETTINGS__</bcrypt_settings>
215
216
 <!-- flag for development purposes
217
      dev_install is used to adjust some paths specific to dev installations
218
      strict_sql_modes should not be used in a production environment
219
      developers use it to catch bugs related to strict SQL modes -->
220
 <dev_install>0</dev_install>
221
 <strict_sql_modes>0</strict_sql_modes>
222
 <plugin_repos>
223
    <!--
224
    <repo>
225
        <name>ByWater Solutions</name>
226
        <org_name>bywatersolutions</org_name>
227
        <service>github</service>
228
    </repo>
229
    <repo>
230
        <name>Theke Solutions</name>
231
        <org_name>thekesolutions</org_name>
232
        <service>gitlab</service>
233
    </repo>
234
    <repo>
235
        <name>PTFS Europe</name>
236
        <org_name>ptfs-europe</org_name>
237
        <service>github</service>
238
    </repo>
239
    -->
240
 </plugin_repos>
241
242
 <koha_xslt_security>
243
 <!-- Uncomment the following entry ONLY when you explicitly want the XSLT
244
      parser to expand entities like <!ENTITY secret SYSTEM "/etc/secrets">.
245
      This is unsafe and therefore NOT recommended!
246
     <expand_entities_unsafe>1</expand_entities_unsafe>
247
 -->
248
 </koha_xslt_security>
249
250
 <smtp_server>
251
    <host>localhost</host>
252
    <port>25</port>
253
    <timeout>120</timeout>
254
    <ssl_mode>disabled</ssl_mode>
255
    <user_name></user_name>
256
    <password></password>
257
    <debug>0</debug>
258
 </smtp_server>
259
260
 <message_broker>
261
   <hostname>localhost</hostname>
262
   <port>61613</port>
263
   <username>guest</username>
264
   <password>guest</password>
265
   <vhost></vhost>
266
 </message_broker>
267
268
</config>
269
</yazgfs>

Return to bug 28278