summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2014-05-06 15:57:22 (GMT)
committerThomas Bruederli <thomas@roundcube.net>2014-05-06 15:57:22 (GMT)
commit886215e40e6fd4e5c8994d069bc390840ab0e0bf (patch)
tree3405c626db8274fbdb0067501cef86a56c2148db /config
parent8599e8f0925aa994fca1cc0530950ff8b97b1efb (diff)
downloadkolab-freebusy-886215e40e6fd4e5c8994d069bc390840ab0e0bf.tar.gz
- Implement source type 'imap' that fetches free-busy data right from IMAP folders.
This requires the Roundcube framework, config and plugins to be symlinked. Described in README - Add caching option for all sources + expire option for file source.
Diffstat (limited to 'config')
-rw-r--r--config/config.ini.sample27
1 files changed, 26 insertions, 1 deletions
diff --git a/config/config.ini.sample b/config/config.ini.sample
index 778f15a..eeb7347 100644
--- a/config/config.ini.sample
+++ b/config/config.ini.sample
@@ -39,6 +39,12 @@ type = static
filter = "@yourdomain"
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-ldap"]
type = ldap
@@ -49,7 +55,21 @@ base_dn = "dc=yourdomain,dc=com"
filter = "(&(objectClass=kolabInetOrgPerson)(|(uid=%s)(mail=%s)(alias=%s)))"
attributes = mail, sn
lc_attributes = sn
-fbsource = file:/www/kolab-freebusy/data/%mail.ifb
+fbsource = file:/var/lib/kolab-freebusy/%mail.ifb
+loglevel = 200 ; Info
+
+;; 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=yourdomain,dc=com"
+bind_pw = "<service-bind-pw>"
+base_dn = "ou=Resources,dc=yourdomain,dc=com"
+filter = "(&(objectClass=kolabsharedfolder)(mail=%s))"
+attributes = mail, kolabtargetfolder
+fbsource = "imap://cyrus-admin:<admin-pass>@localhost/%kolabtargetfolder?acl=lrs"
+cacheto = /var/cache/kolab-freebusy/%mail.ifb
+expires = 10m
loglevel = 100 ; Debug
;; external MS Exchange 2010 server
@@ -59,3 +79,8 @@ filter = "@microsoft.com$"
fbsource = https://externalhost/free-busy/%s.ics
format = Exchange2010
+;; further examples of fbsource URIs
+; - fetch data from another server by HTTP(s)
+; fbsource = "https://fb-service-user:imap-password@kolab-server/freebusy/%mail.ifb"
+; - read directoy from a users calendars (all) using IMAP proxy authentication
+; fbsource = "imap://%mail:<admin-pass>@localhost/?proxy_auth=cyrus-admin"