forked from ccfreiburg/ccf-ctldap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.example.yml
45 lines (45 loc) · 1.29 KB
/
config.example.yml
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
server:
port: 1389
ip: 0.0.0.0
updateinterval: 600 # interval in seconds
cert: certs/ldap.crt
key: certs/ldap.key
sites:
ccf:
name: sitename
ct:
user: username # user needs API permissions in ChurchTools
password: secret1
url: https://sitename.church.tools/
ldap:
o: Organisation Name
dc: dc=myorg,dc=tld # domain components
admincn: admin
password: secret2
attributes: # fields to add to user
- name: key1
default: defaultvalue1
replacements: # add value to user with id
- id: id
value: extra
- name: key2
default: defaultvalue2
adminGroup:
cn: "admin"
members: # person ID of users to put in admin group
- id
users:
groupIds: # ChurchTools group IDs - only members of these groups will be served by LDAP
- gid
- gid
groups: # ChurchTools group IDs with the group name which will be served by LDAP
transform:
- gid: gid
name: Groupname
objectClass: usrObjClass # additionally set objectClass of user to that value if in group
- gid: gid
name: Groupname
filter:
- type: tid
- id: gid
# further ChurchTools sites to serve - following the same schema as above