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().