bcb4e51a409d94ae670de96afb8483a4f7855294Stephan Bosch/* Copyright (c) 2009-2018 Dovecot authors, see the included COPYING file */
7dae0cd6779c407c2d5548f7ac286c0a07465282Timo Sirainenmech_external_auth_continue(struct auth_request *request,
6135260095e1704ed6edff9d00bdfc043c11429cTimo Sirainen auth_request_log_info(request, AUTH_SUBSYS_MECH,
7dae0cd6779c407c2d5548f7ac286c0a07465282Timo Sirainen "username not known");
35856ec46695df8f741f2df4105d407d4c0ceab4Timo Sirainen /* this call is done simply to put the username through translation
35856ec46695df8f741f2df4105d407d4c0ceab4Timo Sirainen if (!auth_request_set_username(request, "", &error)) {
6135260095e1704ed6edff9d00bdfc043c11429cTimo Sirainen auth_request_log_info(request, AUTH_SUBSYS_MECH,
35856ec46695df8f741f2df4105d407d4c0ceab4Timo Sirainen "Invalid username");
35856ec46695df8f741f2df4105d407d4c0ceab4Timo Sirainen !auth_request_set_login_username(request, authzid, &error)) {
7dae0cd6779c407c2d5548f7ac286c0a07465282Timo Sirainen /* invalid login username */
6135260095e1704ed6edff9d00bdfc043c11429cTimo Sirainen auth_request_log_info(request, AUTH_SUBSYS_MECH,
7dae0cd6779c407c2d5548f7ac286c0a07465282Timo Sirainenstatic struct auth_request *mech_external_auth_new(void)
1b81b28b2e7856748cffd7d01052a944b6c80b23Timo Sirainen pool = pool_alloconly_create(MEMPOOL_GROWING"external_auth_request", 2048);