xref: /OpenGrok/plugins/src/test/resources/opengrok/auth/plugin/configuration/plugin-config.xml (revision 49a69e3016d8c6d05a3be9a4990ec1609eabfeba)
1<?xml version="1.0" encoding="UTF-8"?>
2<java version="1.8.0_65" class="java.beans.XMLDecoder">
3        <object class="opengrok.auth.plugin.configuration.Configuration">
4                <void property="webHooks">
5                 <object class="opengrok.auth.plugin.util.WebHooks">
6                  <void property="fail">
7                   <object class="opengrok.auth.plugin.util.WebHook">
8                    <void property="URI">
9                     <string>http://localhost:8080/source/api/v1/messages</string>
10                    </void>
11                    <void property="content">
12                     <string>{ "tags": [ "main" ], "messageLevel": "error", "text": "LDAP failed", "duration": "PT1M" }</string>
13                    </void>
14                   </object>
15                  </void>
16                 </object>
17                </void>
18
19                <void property="interval">
20                        <int>900000</int>
21                </void>
22                <void property="searchTimeout">
23                        <int>500</int>
24                </void>
25                <void property="searchBase">
26                        <string>dc=foobar,dc=com</string>
27                </void>
28                <void property="connectTimeout">
29                        <int>5000</int>
30                </void>
31                <void property="countLimit">
32                        <int>100</int>
33                </void>
34                <void property="servers">
35                        <void method="add">
36                                <object class="opengrok.auth.plugin.ldap.LdapServer">
37                                        <void property="name">
38                                                <string>ldap://ldap1.foobar.com</string>
39                                        </void>
40                                        <void property="connectTimeout">
41                                                <int>5000</int>
42                                        </void>
43                                </object>
44                        </void>
45                        <void method="add">
46                                <object class="opengrok.auth.plugin.ldap.LdapServer">
47                                        <void property="name">
48                                                <string>ldap://ldap2.foobar.com</string>
49                                        </void>
50                                </object>
51                        </void>
52                </void>
53        </object>
54</java>
55