How do I enable the CDB backend in Dovecot 2.4.1? → “auth: Fatal: Unknown passdb driver ‘cdb’”
Good day everyone,
I’m trying to authenticate against a constant database (CDB) file.
After reading the /cdb_path/ description in the 2.4.1 manual (⟨https://doc.dovecot.org/2.4.1/core/summaries/settings.html#cdb_path⟩ <https://doc.dovecot.org/2.4.1/core/summaries/settings.html#cdb_path%E2%9F%A9>) I added the following to the conf file.:
|passdb cdb { cdb_path = /srv/mail/passwd.cdb } userdb cdb { cdb_path = /srv/mail/passwd.cdb } |
But dovecot says
|auth: Fatal: Unknownpassdb driver 'cdb'|
dovecot --version 2.4.1-4+debian11 (7d8c0e5759)
I cant see anything in the changelogs. Is the “cdb” driver still available in 2.4.1, or was it renamed/removed?
Any pointers (or a minimal working example) would be greatly appreciated.
Kind Regards Brent Clark
Good day everyone, I’m trying to authenticate against a constant database (CDB) file. After reading the cdb_path description in the 2.4.1 manual (⟨https:// doc.dovecot.org/2.4.1/core/summaries/settings.html#cdb_path⟩) I added the following to the conf file.: passdb cdb { cdb_path = /srv/mail/passwd.cdb }
userdb cdb { cdb_path = /srv/mail/passwd.cdb }
But dovecot says auth: Fatal: Unknown passdb driver 'cdb'
dovecot --version 2.4.1-4+debian11 (7d8c0e5759)
I cant see anything in the changelogs. Is the “cdb” driver still available in 2.4.1, or was it renamed/removed?
Any pointers (or a minimal working example) would be greatly appreciated.
Kind Regards Brent Clark
On 09/06/2025 13:35 EEST Brent Clark via dovecot <dovecot@dovecot.org> wrote:
Good day everyone,
I’m trying to authenticate against a constant database (CDB) file.
After reading the /cdb_path/ description in the 2.4.1 manual (⟨https://doc.dovecot.org/2.4.1/core/summaries/settings.html#cdb_path⟩ <https://doc.dovecot.org/2.4.1/core/summaries/settings.html#cdb_path%E2%9F%A9>) I added the following to the conf file.:
|passdb cdb { cdb_path = /srv/mail/passwd.cdb } userdb cdb { cdb_path = /srv/mail/passwd.cdb } |
But dovecot says
|auth: Fatal: Unknownpassdb driver 'cdb'|
dovecot --version 2.4.1-4+debian11 (7d8c0e5759)
I cant see anything in the changelogs. Is the “cdb” driver still available in 2.4.1, or was it renamed/removed?
Any pointers (or a minimal working example) would be greatly appreciated.
Kind Regards Brent ClarkGood day everyone, I’m trying to authenticate against a constant database (CDB) file. After reading the cdb_path description in the 2.4.1 manual (⟨https:// doc.dovecot.org/2.4.1/core/summaries/settings.html#cdb_path⟩) I added the following to the conf file.: passdb cdb { cdb_path = /srv/mail/passwd.cdb }
userdb cdb { cdb_path = /srv/mail/passwd.cdb }
But dovecot says auth: Fatal: Unknown passdb driver 'cdb'
dovecot --version 2.4.1-4+debian11 (7d8c0e5759)
I cant see anything in the changelogs. Is the “cdb” driver still available in 2.4.1, or was it renamed/removed?
Any pointers (or a minimal working example) would be greatly appreciated.
Kind Regards Brent Clark
Hi,
I don't think cdb has ever been a directly supported passdb/userdb. It was supported with dict driver, which has been removed.
This is mentioned in the upgrading 2.3 -> 2.4 page,
Dict passdb & userdb driver Use Lua authentication database instead.
so if you want to continue with cdb, you should switch to lua. Or you can use sqlite instead.
Aki
On 16/06/2025 09:08 EEST Michael Tokarev via dovecot <dovecot@dovecot.org> wrote:
On 16.06.2025 07:54, Aki Tuomi via dovecot wrote:
I don't think cdb has ever been a directly supported passdb/userdb. It was supported with dict driver, which has been removed.
Out of curiosity, why cdb dict driver has been removed?
Thanks,
/mjt
cdb dict driver has not been removed, only dict auth support.
Aki
participants (3)
-
Aki Tuomi
-
Brent Clark
-
Michael Tokarev