1

Topic: Radicale integration with LDAP

==== Required information ====
- iRedMail version: 0.8.6
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Linux/BSD distribution name and version: Debian 7 Wheezy
- Related log if you're reporting an issue:
====

Hi,

I'm trying to configure radicale (a python cardav and caldav server) to authenticate my users with OpenLDAP (iredmail). I followed the tuto about ejabberd, it works well, but i'm not able to adapt the ejjaberd config (wrote in Erlang) to teh radicale config.

Radicale project : http://radicale.org/

My last config try :

[acl]
# Access method
# Value: None | htpasswd | LDAP | PAM | courier
type = LDAP

# Usernames used for public collections, separated by a comma
#public_users = public
# Usernames used for private collections, separated by a comma
#private_users = private

# Htpasswd filename
#htpasswd_filename = /etc/radicale/users
# Htpasswd encryption method
# Value: plain | sha1 | crypt
#htpasswd_encryption = crypt

# LDAP server URL, with protocol and port
ldap_url = ldap://localhost:389/
# LDAP base path
ldap_base = o=domains,dc=exemple,dc=com
# LDAP login attribute
ldap_attribute = mail
# LDAP filter string
# placed as X in a query of the form (&(...)X)
# example: (objectCategory=Person)(objectClass=User)(memberOf=cn=calenderusers,ou=users,dc=example,dc=org)
# leave empty if no additional filter is needed
ldap_filter = (mail=%u)(objectClass=mailUser)(accountStatus=active)
# LDAP dn for initial login, used if LDAP server does not allow anonymous searches
# Leave empty if searches are anonymous
ldap_binddn = cn=vmail,dc=exemple,dc=com
# LDAP password for initial login, used with ldap_binddn
ldap_password = password
# LDAP scope of the search
#ldap_scope = OneLevel


If someone already use radicale with iredmail + LDAP ....

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Radicale integration with LDAP

alexis wrote:

#ldap_scope = OneLevel

Everything looks just fine, but the ldap search scope should be 'SUBTREE' (case insensitive, Radicale will convert to upper cases).

3

Re: Radicale integration with LDAP

Perfect. It works now. Thx a lot.