userdb-dict.c (dovecot-2.3.16) | : | userdb-dict.c (dovecot-2.3.17) | ||
---|---|---|---|---|
skipping to change at line 121 | skipping to change at line 121 | |||
auth_request, NULL, &error) <= 0) { | auth_request, NULL, &error) <= 0) { | |||
e_error(authdb_event(auth_request), | e_error(authdb_event(auth_request), | |||
"Failed to expand iterate_prefix=%s: %s", | "Failed to expand iterate_prefix=%s: %s", | |||
module->conn->set.iterate_prefix, error); | module->conn->set.iterate_prefix, error); | |||
ctx->ctx.failed = TRUE; | ctx->ctx.failed = TRUE; | |||
return &ctx->ctx; | return &ctx->ctx; | |||
} | } | |||
ctx->key_prefix = p_strdup(auth_request->pool, str_c(path)); | ctx->key_prefix = p_strdup(auth_request->pool, str_c(path)); | |||
ctx->key_prefix_len = strlen(ctx->key_prefix); | ctx->key_prefix_len = strlen(ctx->key_prefix); | |||
ctx->iter = dict_iterate_init(module->conn->dict, ctx->key_prefix, 0); | struct dict_op_settings set = { | |||
.username = auth_request->fields.user, | ||||
}; | ||||
ctx->iter = dict_iterate_init(module->conn->dict, &set, ctx->key_prefix, | ||||
0); | ||||
e_debug(authdb_event(auth_request), | e_debug(authdb_event(auth_request), | |||
"iterate: prefix=%s", ctx->key_prefix); | "iterate: prefix=%s", ctx->key_prefix); | |||
return &ctx->ctx; | return &ctx->ctx; | |||
} | } | |||
static const char * | static const char * | |||
userdb_dict_get_user(struct dict_userdb_iterate_context *ctx, const char *key) | userdb_dict_get_user(struct dict_userdb_iterate_context *ctx, const char *key) | |||
{ | { | |||
i_assert(strncmp(key, ctx->key_prefix, ctx->key_prefix_len) == 0); | i_assert(strncmp(key, ctx->key_prefix, ctx->key_prefix_len) == 0); | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 5 lines changed or added |