[Dovecot] LDAP for passdb and SQL for userdb
Hello
Is it possible to setup double backend ? ldap for auth only and SQL for userdb information(quota,maildir etc) ?
Now I'm using SQL backend and configuration looks like this:
passdb { driver = sql args = /etc/dovecot/dovecot-sql.conf }
userdb { driver = prefetch }
userdb { driver = sql args = /etc/dovecot/dovecot-sql.conf }
Can I do something like:
passdb { driver = sql args = /etc/dovecot/dovecot-ldap.conf }
userdb { driver = prefetch }
userdb { driver = sql args = /etc/dovecot/dovecot-sql.conf }
Should I leave:
userdb { driver = prefetch }
Bambero
El 02/10/13 15:49, Bambero escribió:
Hello
Is it possible to setup double backend ? ldap for auth only and SQL for userdb information(quota,maildir etc) ?
Of course, you can mix backends the way you like.
Now I'm using SQL backend and configuration looks like this:
passdb { driver = sql args = /etc/dovecot/dovecot-sql.conf }
userdb { driver = prefetch }
userdb { driver = sql args = /etc/dovecot/dovecot-sql.conf }
Can I do something like:
passdb { driver = sql
This is
driver = ldap
args = /etc/dovecot/dovecot-ldap.conf }
userdb { driver = prefetch }
You don't need this one any more. Prefetch is used to get the userdb attributes in the auth query, but if you use different DDBB it makes no sense.
userdb { driver = sql args = /etc/dovecot/dovecot-sql.conf }
HTH
participants (2)
-
Bambero
-
Joseba Torre