Просмотр исходного кода

Adapt base configuration to use with cranix-server. Only the certificate must be adapted

Dipl. Ing. Péter Varkoly 4 лет назад
Родитель
Сommit
c5b5910de4
2 измененных файлов с 49 добавлено и 5 удалено
  1. 18 3
      config
  2. 31 2
      rights

+ 18 - 3
config

@@ -15,7 +15,7 @@
 # IPv4 syntax: address:port
 # IPv6 syntax: [address]:port
 # For example: 0.0.0.0:9999, [::]:9999
-#hosts = localhost:5232
+hosts = 0.0.0.0:5232
 
 # Max parallel connections
 #max_connections = 8
@@ -53,7 +53,22 @@
 
 # Authentication method
 # Value: none | htpasswd | remote_user | http_x_remote_user
-#type = none
+type = ldap
+
+# URI to the LDAP server
+ldap_uri = ldap://localhost
+
+# The base DN of the LDAP server
+ldap_base = ##BASE_DN##
+
+# The reader DN of the LDAP server
+ldap_reader_dn = CN=ossreader,CN=Users,##BASE_DN##
+
+# Password of the reader DN
+ldap_secret = ossreader
+
+# If the ldap groups of the user need to be loaded
+ldap_load_groups = True
 
 # Htpasswd filename
 #htpasswd_filename = /etc/radicale/users
@@ -77,7 +92,7 @@
 #type = owner_only
 
 # File for rights management from_file
-#file = /etc/radicale/rights
+file = /etc/radicale/rights
 
 
 [storage]

+ 31 - 2
rights

@@ -1,5 +1,34 @@
-# -*- mode: conf -*-
-# vim:ft=cfg
+# Allow all rights for the Administrator
+[root]
+user: Administrator
+collection: .*
+permissions: RW
+
+# Allow reading principal collection (same as username)
+[principal]
+user: .+
+collection: {user}
+permissions: R
+
+# Allow reading and writing private collection (same as username)
+[private]
+user: .+
+collection: {user}/private/
+permissions: RW
+
+# Allow reading and writing calendars and address books that are direct
+# children of the principal collection for the member of some groups
+[calendarsWriter]
+groups: sysadmins,teachers,administration,administrators
+collection: {user}/[^/]+
+permissions: rw
+
+# Allow reading calendars and address books that are direct
+# children of the principal collection for other users
+[calendarsReader]
+user: .+
+collection: {user}/[^/]+
+permissions: r
 
 # Rights management file for Radicale - A simple calendar server
 #