mech-external.c revision 6135260095e1704ed6edff9d00bdfc043c11429c
a8c5a86d183db25a57bf193c06b41e092ec2e151Timo Sirainen/* Copyright (c) 2009-2014 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)
7dae0cd6779c407c2d5548f7ac286c0a07465282Timo Sirainen pool = pool_alloconly_create("external_auth_request", 2048);