Leroy van Logchem wrote:
Hi,
I would like to supply a few users with extra_fields. All users are found by PAM first so the userdb passwd-file doesnt seem to be used. How to alter the lookup sequence? We can't remove the accounts from the central passwd, just for Dovecot.
Thanks, Leroy
You can have multiple authentication databases:-
passdb passwd-file { args = /etc/dovecot/special-users }
passdb pam { }
This works for us when we want to specify proxying, but presumably you'd need to have some form of password field in "special-users" otherwise.
For userdb, we use passwd-file anyway (PAM can't be a userdb) mainly to assign uids and gids (though these could be static, of course).
Best Wishes, Chris
-- --+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+- Christopher Wakelin, c.d.wakelin@reading.ac.uk IT Services Centre, The University of Reading, Tel: +44 (0)118 378 8439 Whiteknights, Reading, RG6 2AF, UK Fax: +44 (0)118 975 3094