struct auth_worker_client *client = request->context;
struct auth_stream_reply *reply;
string_t *str;
- const char *value;
if (request->passdb_failure && result == PASSDB_RESULT_OK)
result = PASSDB_RESULT_PASSWORD_MISMATCH;
auth_stream_reply_export(request->extra_cache_fields);
auth_stream_reply_import(reply, fields);
}
- } else if (request->userdb_lookup_failed) {
- value = auth_stream_reply_find(request->extra_fields, "reason");
- if (value != NULL) {
- auth_stream_reply_add(reply, NULL, "");
- auth_stream_reply_add(reply, NULL, "");
- auth_stream_reply_add(reply, "reason", value);
- }
}
str = auth_stream_reply_get_str(reply);
str_append_c(str, '\n');
struct auth_worker_client *client = request->context;
struct auth_stream_reply *reply;
string_t *str;
- const char *value;
if (request->passdb_failure && result == PASSDB_RESULT_OK)
result = PASSDB_RESULT_PASSWORD_MISMATCH;
auth_stream_reply_add(reply, "FAIL", NULL);
auth_stream_reply_add(reply, NULL,
t_strdup_printf("%d", result));
- value = auth_stream_reply_find(request->extra_fields, "reason");
- if (request->userdb_lookup_failed && value != NULL) {
- auth_stream_reply_add(reply, NULL, "");
- auth_stream_reply_add(reply, NULL, "");
- auth_stream_reply_add(reply, "reason", value);
- }
} else {
auth_stream_reply_add(reply, "OK", NULL);
auth_stream_reply_add(reply, NULL, request->user);