use a second userdb that only returns extra fields

Alexander 'Leo' Bergolth leo at strike.wu.ac.at
Fri Oct 28 13:41:52 UTC 2016


Hi!

Is it possible to get all basic userdb information from the passwd
userdb and add a second userdb of type checkpassword that only sets some
additional extra fields like namespaces?

I tried the following setup:
-------------------- 8< --------------------
userdb {
  driver = passwd
  result_success = continue-ok
}
userdb {
  driver = checkpassword
  args = /usr/local/sbin/dovecot-userdb.py
  skip = never
}
-------------------- 8< --------------------

... but it seems that as soon as the second userdb is active, dovecot
doesn't take settings like uid and gid from the first userdb anymore.
(Even if I don't set userdb_uid and userdb_gid in checkpassword.)

On the other hand there are no environment variables that pass the
settings from the previous lookup to the checkpassword script.

Cheers,
--leo
-- 
e-mail   ::: Leo.Bergolth (at) wu.ac.at
fax      ::: +43-1-31336-906050
location ::: IT-Services | Vienna University of Economics | Austria



More information about the dovecot mailing list