-
Notifications
You must be signed in to change notification settings - Fork 2
/
catslap.conf.example
130 lines (81 loc) · 2.34 KB
/
catslap.conf.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
{
# Production server settings
# More details on available options: http://mojolicious.org/perldoc/Mojo/Server/Hypnotoad#SETTINGS
hypnotoad => {
listen => ['http://*:31195'],
},
app => {
log_dir => '/path/to/logs/',
# Values: fatal, error, warn, info, debug
# Default: info
log_level => 'info',
# Client remote IP address source, searched in order from left to right and matched
# on first defined value found, either by HTTP header (X-Real-IP or X-Forwarded-For
# only), or direct remote address ("tx").
# Valid values (lowercase only): x-real-ip, x-forwarded-for, tx
# Default: tx
remote_addr_sources => [
'tx',
],
default_language => 'en',
},
ldap => {
servers => [
'ldap://localhost:389',
],
cacert => '/path/to/ca-cert.crt',
# The first defined bind RDN here is considered the default when client requests
# do not (or cannot) define an admin bind RDN to use, and is also given the alias
# ID of 'default'.
#
# When an admin bind RDN is defined in a client request, the first matching
# bind RDN is used that matches the ID (if defined), or the whole bind RDN string.
admins => [
{
# (Optional)
id => 'admin1',
rdn => 'cn=admin1,ou=service-accounts,dc=example,dc=com',
password => 'Adm1nPassw0rd',
# If defined, only these clients may use this admin bind-dn
allow_clients => [
'nodejs-app-1',
'python-app-1',
],
},
],
},
clients => [
{
name => 'nodejs-app-1',
token => 'really-loooong-token-aaaaaaaaaaaaaabbbbbbbbbbbcccccccccccccccc',
# Default: ['0.0.0.0/0']
allow_from => [
'0.0.0.0/0',
],
# Default: default
use_admin => 'default',
acl => {
# Default: 1
can_choose_admin => 0,
# Default: 1
can_bind => 1,
# Default: 0
can_search => 0,
# Overrides 'can_search'
# Default: 0
can_search_as_admin => 0,
# Default: 0
can_add => 0,
# Default: 0
can_modify => 0,
# Overrides 'can_modify'
# Default: 0
can_modify_as_admin => 0,
# Default: 0
can_delete => 0,
# Default: 0
can_view_admins => 0,
},
},
],
};