Passing information from passdb to userdb

Aki Tuomi aki.tuomi at dovecot.fi
Wed Nov 22 09:07:58 EET 2017


The best way to is to use auth_request_set_userdb_field(request, key,
value);

and it will be available in userdb.

Aki

On 22.11.2017 01:57, Qmail wrote:
> I'm trying to hack together a new authentication back-end and I wanted to know if it's possible to pass values from passdb to userdb in the auth_request structure at authentication time. I modified struct auth_request in auth-request.h to contain a new variable and it gets set properly in my passdb, however the value is not there when checking for it userdb.
> I'm very novice when it comes to Dovecot programming so any help is appreciated.
> Thanks!



More information about the dovecot mailing list