[Dovecot] Get an extra_field in login process
Timo Sirainen
tss at iki.fi
Tue Oct 14 00:40:58 EEST 2008
On Oct 13, 2008, at 8:05 PM, Alexandre Estanislau wrote:
> I have an auth plugin where an extra_field is filled. Somewhere, in
> login
> process I need to log the authentication command and the
> extra_field, I was
> trying to do it in login-common/client-common.c, adding a new
> variable to
> login_log_format_elements and trying to get the fileld from
> environment,
> but, I could not find any way to do it, the getenv returns null
> everytime.
>
> Anyone can suggest something to do it ? Is there a way that I get the
> extra_fields from request in login process ?
Login process is executed before authentication, so the extra_fields
are available only after it's done and they're never added to
environment in login process. You'll have to store the value yourself
in imap|pop3_login/client-authenticate.c client_handle_args().
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20081014/589a735b/attachment.bin
More information about the dovecot
mailing list