summaryrefslogtreecommitdiff
path: root/config/config.ini.sample
blob: b97c011664232f8f120c145994ae7a196271e6b4 (plain)
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
;; Kolab Free/Busy Service configuration

; Logging configuration
[log]
driver = file  ; supported drivers: file, syslog
path = ./logs
name = freebusy
level = 300  ; (100 = Debug, 200 = Info, 300 = Warn, 400 = Error, 500 = Critical)

;;
;; try local filesystem first (F/B has been generated externally)
;;
[directory "local"]
type = static
filter = "@example.org"
fbsource = file:/var/lib/kolab-freebusy/%s.ifb

;;
;; check if primary email address hits a cache file (saves LDAP lookups)
;;
[directory "local-cache"]
type = static
fbsource = file:/var/cache/kolab-freebusy/%s.ifb
expires = 10m

;;
;; local Kolab directory server
;;
[directory "kolab-people"]
type = ldap
host = "ldap://localhost:389"
bind_dn = "uid=kolab-service,ou=Special Users,dc=example,dc=org"
bind_pw = "SomePassword"
base_dn = "ou=People,dc=example,dc=org"
filter = "(&(objectClass=kolabInetOrgPerson)(|(mail=%s)(alias=%s))"
attributes[] = mail
lc_attributes[] = mail
primary_domain = "example.org"

; %s is replaced by the user's result_attribute found
fbsource = imaps://%s:CyrusAdminPassword@imap.example.org/?proxy_auth=cyrus-admin
loglevel = 300
cacheto = /var/cache/kolab-freebusy/%mail.ifb
expires = 10m

;;
;; resolve Kolab resources from LDAP and fetch calendar from IMAP
;;
[directory "kolab-resources"]
type = ldap
host = "ldap://localhost:389"
bind_dn = "uid=kolab-service,ou=Special Users,dc=example,dc=org"
bind_pw = "SomePassword"
base_dn = "ou=Resources,dc=example,dc=org"
filter = "(&(objectClass=kolabsharedfolder)(kolabfoldertype=event)(mail=%s))"
attributes = mail, kolabtargetfolder
primary_domain = "example.org"

; Use the Free/Busy daemon that separates the abuse of credentials
;fbsource = "fbdaemon://localhost:<port>?folder=%kolabtargetfolder"
;timeout = 10    ; abort after 10 seconds

fbsource = "imap://cyrus-admin:CyrusAdminPassword@imap.lhm.klab.cc/%kolabtargetfolder?acl=lrs"
cacheto = /var/cache/kolab-freebusy/%mail.ifb
expires = 10m
loglevel = 300