From: Zdeněk Šustr Date: Mon, 3 Sep 2012 12:24:22 +0000 (+0000) Subject: List ID mappings in server configuration page X-Git-Tag: glite-lb-client_R_5_2_4_1~3 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=1c3e9d8480cffc7fac6311563da9f0aca6447c01;p=jra1mw.git List ID mappings in server configuration page --- 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) {