From 1c3e9d8480cffc7fac6311563da9f0aca6447c01 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zden=C4=9Bk=20=C5=A0ustr?= Date: Mon, 3 Sep 2012 12:24:22 +0000 Subject: [PATCH] List ID mappings in server configuration page --- org.glite.lb.server/src/lb_html.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/org.glite.lb.server/src/lb_html.c b/org.glite.lb.server/src/lb_html.c index fa88ae7..07c1e82 100644 --- a/org.glite.lb.server/src/lb_html.c +++ b/org.glite.lb.server/src/lb_html.c @@ -208,6 +208,23 @@ int edg_wll_ConfigurationToHTML(edg_wll_Context ctx, int admin, char **message, add_row(&out, "dump_start", "Last dump start", start, NULL, text); add_row(&out, "dump_end", "Last dump end", end, NULL, text); add_row(&out, "html_header", "HTML Header file", ctx->html_header_file, NULL, text); + + a = NULL; + for (i = 0; i < ctx->id_mapping.num; i++ ) { + asprintf(&out_tmp, "%s%s%s%s%s%s%s", + a ? a : "", + text ? "\"" : "", + ctx->id_mapping.rules[i].a, + text ? "\"=\"" : " ", + ctx->id_mapping.rules[i].b, + text ? "\"" : "", + i == ctx->id_mapping.num - 1 ? "" : (text ? "," : "
")); + free(a); + a=out_tmp; + } + if (a) add_row(&out, "id_mapping", "ID Mapping", a, NULL, text); + free(a); + } if (!text) { -- 1.8.2.3