Clean LDAP support

This commit is contained in:
Guillaume Ayoub
2011-04-25 16:47:42 +02:00
parent 78e52d5cf4
commit 12a8e01492
6 changed files with 98 additions and 71 deletions

35
config
View File

@ -15,9 +15,9 @@ hosts = 0.0.0.0:5232
daemon = False
# SSL flag, enable HTTPS protocol
ssl = False
# SSL certificate path (if needed)
# SSL certificate path
certificate = /etc/apache2/ssl/server.crt
# SSL private key (if needed)
# SSL private key
key = /etc/apache2/ssl/server.key
[encoding]
@ -28,29 +28,24 @@ stock = utf-8
[acl]
# Access method
# Value: None | htpasswd
# Value: None | htpasswd | LDAP
type = None
# Personal calendars only available for logged in users (if needed)
# Personal calendars only available for logged in users
personal = False
# Htpasswd filename (if needed)
filename = /etc/radicale/users
# Htpasswd encryption method (if needed)
# Htpasswd filename
htpasswd_filename = /etc/radicale/users
# Htpasswd encryption method
# Value: plain | sha1 | crypt
encryption = crypt
[authLdap]
#LDAP Host
LDAPServer = 127.0.0.1
#Fields to create a LDAP bind
#Value to add before the user name in a LDAP bind
LDAPPrepend = uid=
#Value to add after the user name in a LDAP bind
LDAPAppend = ou=users,dc=exmaple,dc=dom
#=> uid=corentin,ou=users,dc=exmaple,dc=dom
htpasswd_encryption = crypt
# LDAP server URL, with protocol and port
ldap_url = ldap://localhost:389/
# LDAP base path
ldap_base = ou=users,dc=example,dc=com
# LDAP login attribute
ldap_attribute = uid
[storage]
# Folder for storing local calendars,
# created if not present
# Folder for storing local calendars, created if not present
folder = ~/.config/radicale/calendars
[logging]