Lines Matching refs:id

78 bool auth_worker_auth_request_new(struct auth_worker_client *client, unsigned int id,
88 auth_request->id = id;
167 str_printfa(str, "%u\t", request->id);
195 unsigned int id, const char *const *args)
203 /* <passdb id> <password> [<args>] */
210 if (!auth_worker_auth_request_new(client, id, args + 2, &auth_request)) {
218 while (passdb != NULL && passdb->passdb->id != passdb_id)
224 while (passdb != NULL && passdb->passdb->id != passdb_id)
242 unsigned int id, const char *const *args)
264 if (!auth_worker_auth_request_new(client, id, args + 3, &request)) {
274 str_printfa(str, "%u\t", request->id);
304 str_printfa(str, "%u\t", request->id);
334 unsigned int id, const char *const *args)
341 /* <passdb id> <scheme> [<args>] */
348 if (!auth_worker_auth_request_new(client, id, args + 2, &auth_request)) {
354 while (auth_request->passdb->passdb->id != passdb_id) {
383 str_printfa(str, "%u\t%s\n", request->id, success ? "OK" : "FAIL");
393 unsigned int id, const char *const *args)
399 /* <passdb id> <credentials> [<args>] */
406 if (!auth_worker_auth_request_new(client, id, args + 2, &auth_request)) {
411 while (auth_request->passdb->passdb->id != passdb_id) {
433 str_printfa(str, "%u\t", auth_request->id);
464 auth_userdb_find_by_id(struct auth_userdb *userdbs, unsigned int id)
469 if (db->userdb->id == id)
477 unsigned int id, const char *const *args)
483 /* <userdb id> [<args>] */
489 if (!auth_worker_auth_request_new(client, id, args + 1, &auth_request)) {
541 str_printfa(str, "%u\tFAIL\n", ctx->auth_request->id);
543 str_printfa(str, "%u\tOK\n", ctx->auth_request->id);
574 str_printfa(str, "%u\t*\t%s\n", ctx->auth_request->id, user);
624 unsigned int id, const char *const *args)
643 if (!auth_worker_auth_request_new(client, id, args + 1, &ctx->auth_request)) {
665 unsigned int id;
670 str_to_uint(args[0], &id) < 0) {
680 ret = auth_worker_handle_passv(client, id, args + 2);
682 ret = auth_worker_handle_passl(client, id, args + 2);
684 ret = auth_worker_handle_passw(client, id, args + 2);
686 ret = auth_worker_handle_setcred(client, id, args + 2);
688 ret = auth_worker_handle_user(client, id, args + 2);
690 ret = auth_worker_handle_list(client, id, args + 2);