mech-external.c revision 1b81b28b2e7856748cffd7d01052a944b6c80b23
76b43e4417bab52e913da39b5f5bc2a130d3f149Timo Sirainen/* Copyright (c) 2009-2014 Dovecot authors, see the included COPYING file */
8fcff4c5b52f24d9c681805fdf06b486f1d0fcbeTimo Sirainenmech_external_auth_continue(struct auth_request *request,
8fcff4c5b52f24d9c681805fdf06b486f1d0fcbeTimo Sirainen auth_request_log_info(request, AUTH_SUBSYS_MECH,
8fcff4c5b52f24d9c681805fdf06b486f1d0fcbeTimo Sirainen "username not known");
b5e6f6f27c1461f0f9f202615eeb738a645188c3Timo Sirainen /* this call is done simply to put the username through translation
04ab375449dd97eed50ada88dd0df2abab01cfeeTimo Sirainen if (!auth_request_set_username(request, "", &error)) {
04ab375449dd97eed50ada88dd0df2abab01cfeeTimo Sirainen auth_request_log_info(request, AUTH_SUBSYS_MECH,
b5e6f6f27c1461f0f9f202615eeb738a645188c3Timo Sirainen "Invalid username");
8fcff4c5b52f24d9c681805fdf06b486f1d0fcbeTimo Sirainen !auth_request_set_login_username(request, authzid, &error)) {
b5e6f6f27c1461f0f9f202615eeb738a645188c3Timo Sirainen /* invalid login username */
8fcff4c5b52f24d9c681805fdf06b486f1d0fcbeTimo Sirainen auth_request_log_info(request, AUTH_SUBSYS_MECH,
b5e6f6f27c1461f0f9f202615eeb738a645188c3Timo Sirainenstatic struct auth_request *mech_external_auth_new(void)
8fcff4c5b52f24d9c681805fdf06b486f1d0fcbeTimo Sirainen pool = pool_alloconly_create(MEMPOOL_GROWING"external_auth_request", 2048);