summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/config.ini.sample38
1 files changed, 25 insertions, 13 deletions
diff --git a/config/config.ini.sample b/config/config.ini.sample
index d7668d9..5eb6607 100644
--- a/config/config.ini.sample
+++ b/config/config.ini.sample
@@ -1,33 +1,45 @@
-; Kolab Free/Busy Service configuration
+;; Kolab Free/Busy Service configuration
-; require HTTP authentication to access this service
+;; Require HTTP authentication to access this service
[httpauth]
-type = static
-username = <user>
-password = <pass>
-; allow privileged access from these IPs
+;; Example for static auth credentials
+; type = static
+; username = "<user>"
+; password = "<pass>"
+
+;; Example for LDAP-based authentication
+; 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 = "dc=yourdomain,dc=com"
+; filter = "(&(|(mail=%s)(alias=%s)(uid=%s))(objectclass=inetorgperson))" ; optional, %s is replaced by the username
+
+
+;; Allow privileged access from these IPs
[trustednetworks]
allow[] = 127.0.0.1
-allow[] = 192.168.0.
-allow[] = 10.10.
+allow[] = 192.168.0.0/16
+allow[] = 10.10.*
allow[] = ::1
-; logging configuration
+;; Logging configuration
[log]
-driver = file
+driver = file ; supported drivers: file, syslog
path = ./log
+name = freebusy
level = 300 ; (100 = Debug, 200 = Info, 300 = Warn, 400 = Error, 500 = Critical)
-; Directories to resolve email addresses and their f/b source locations
+;; Directories to resolve email addresses and their f/b source locations
-; try local filesystem first
+;; try local filesystem first
[directory "local"]
type = static
filter = "@yourdomain"
fbsource = file:/var/lib/kolab-freebusy/%u.ifb
-; local Kolab directory server
+;; local Kolab directory server
[directory "kolab-ldap"]
type = ldap
host = ldap://localhost:389