From: Zdeněk Salvet Date: Fri, 3 Aug 2007 08:22:49 +0000 (+0000) Subject: User real usernames in proxy, not "lbproxy". X-Git-Tag: glite-lb-server_R_1_7_0_1~1 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=f7e68b1766d2400cc8a9b9fe4265ee60a136eec4;p=jra1mw.git User real usernames in proxy, not "lbproxy". --- diff --git a/org.glite.lb.server/src/store.c.T b/org.glite.lb.server/src/store.c.T index 28f32c6..f2c1657 100644 --- a/org.glite.lb.server/src/store.c.T +++ b/org.glite.lb.server/src/store.c.T @@ -105,8 +105,15 @@ int edg_wll_StoreEvent(edg_wll_Context ctx,edg_wll_Event *e,int *seq) registered with LBserver */ char *username; - username = (ctx->isProxy) ? "lbproxy" : ctx->peerName; - userid = strdup(strmd5(username, NULL)); + if (!ctx->isProxy && ctx->peerName != NULL) { + username = ctx->peerName; + userid = strdup(strmd5(username, NULL)); + + free(e->any.user); + e->any.user = strdup(username); + } + else + username = e->any.user; if ((err = store_user(ctx,userid, username))) goto clean; if ((err = store_job(ctx,e->any.jobId,userid))) goto clean; } else {