git://scientific.zcu.cz
/
jra1mw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12a00d6
)
User real usernames in proxy, not "lbproxy".
author
Zdeněk Salvet
<salvet@ics.muni.cz>
Fri, 3 Aug 2007 08:22:49 +0000
(08:22 +0000)
committer
Zdeněk Salvet
<salvet@ics.muni.cz>
Fri, 3 Aug 2007 08:22:49 +0000
(08:22 +0000)
org.glite.lb.server/src/store.c.T
patch
|
blob
|
blame
|
history
diff --git
a/org.glite.lb.server/src/store.c.T
b/org.glite.lb.server/src/store.c.T
index
28f32c6
..
f2c1657
100644
(file)
--- 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 {