userdb-checkpassword.c revision 9d47b3d53a3ecacfe07d03e5b2339e6043e0f48e
1176124297af5c56e932c0863c6637ff21d8a0efTimo Sirainen/* Copyright (c) 2004-2014 Dovecot authors, see the included COPYING file */
20b2d47ed762ca2c009aa37e360af6f223ac71bdTimo Sirainenuserdb_checkpassword_callback(struct auth_request *request,
7327394e30c1020b9a2a49c72a7e3d0f7803e680Timo Sirainen const char *const *extra_fields,
c4b376dd6e0c423006d7ac83a39253bcaf8e7c47Timo Sirainen unsigned int i;
4fc52b7b25c3d3f42348903e0154840f8761f306Timo Sirainen case DB_CHECKPASSWORD_STATUS_INTERNAL_FAILURE:
c4b376dd6e0c423006d7ac83a39253bcaf8e7c47Timo Sirainen callback(USERDB_RESULT_INTERNAL_FAILURE, request);
1176124297af5c56e932c0863c6637ff21d8a0efTimo Sirainen callback(USERDB_RESULT_USER_UNKNOWN, request);
c4b376dd6e0c423006d7ac83a39253bcaf8e7c47Timo Sirainen if (strncmp(extra_fields[i], "userdb_", 7) != 0)
4fc52b7b25c3d3f42348903e0154840f8761f306Timo Sirainencheckpassword_lookup(struct auth_request *request, userdb_callback_t *callback)
4fc52b7b25c3d3f42348903e0154840f8761f306Timo Sirainen struct userdb_module *_module = request->userdb->userdb;
20b2d47ed762ca2c009aa37e360af6f223ac71bdTimo Sirainen (struct checkpassword_userdb_module *)_module;
20b2d47ed762ca2c009aa37e360af6f223ac71bdTimo Sirainen db_checkpassword_call(module->db, request, NULL,
1176124297af5c56e932c0863c6637ff21d8a0efTimo Sirainencheckpassword_preinit(pool_t pool, const char *args)
const char *checkpassword_reply_path =
NULL,
NULL,
NULL,