Mercurial > dovecot > core-2.2
diff src/auth/passdb-checkpassword.c @ 4032:7140f09b464f HEAD
Allow checkpassword program to send extra parameters to Dovecot. EXTRA environment contains a list of environment variables that are passed to Dovecot.
author | Timo Sirainen <timo.sirainen@movial.fi> |
---|---|
date | Mon, 20 Feb 2006 15:39:37 +0200 |
parents | 357175e274b4 |
children | c58659bf7ca5 |
line wrap: on
line diff
--- a/src/auth/passdb-checkpassword.c Mon Feb 20 15:29:31 2006 +0200 +++ b/src/auth/passdb-checkpassword.c Mon Feb 20 15:39:37 2006 +0200 @@ -67,6 +67,12 @@ hash_remove(module->clients, POINTER_CAST(request->pid)); + if (strchr(str_c(request->input_buf), '\n') != NULL) { + auth_request_log_error(request->request, "checkpassword", + "LF characters in checkpassword reply"); + result = PASSDB_RESULT_INTERNAL_FAILURE; + } + if (result == PASSDB_RESULT_OK) { request->request->extra_fields = auth_stream_reply_init(request->request);