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:
bcd8453
)
Authorization required in all lb-simple operations.
author
Jiří Filipovič
<fila@ics.muni.cz>
Mon, 18 May 2009 11:39:25 +0000
(11:39 +0000)
committer
Jiří Filipovič
<fila@ics.muni.cz>
Mon, 18 May 2009 11:39:25 +0000
(11:39 +0000)
org.glite.lb.server/src/lb_proto.c
patch
|
blob
|
blame
|
history
diff --git
a/org.glite.lb.server/src/lb_proto.c
b/org.glite.lb.server/src/lb_proto.c
index
7edb2d7
..
c3a6d0a
100644
(file)
--- a/
org.glite.lb.server/src/lb_proto.c
+++ b/
org.glite.lb.server/src/lb_proto.c
@@
-613,8
+613,14
@@
edg_wll_ErrorCode edg_wll_Proto(edg_wll_Context ctx,
if (html) text = drain_text_request(requestPTR);
+ /* Is user authorised? */
+ if (!ctx->peerName){
+ ret = HTTP_UNAUTH;
+ edg_wll_SetError(ctx, EPERM, "user not authenticated");
+ }
+
/* GET /: Current User Jobs */
- if (requestPTR[0]=='/' && (requestPTR[1]==' ' || requestPTR[1]=='?')) {
+
else
if (requestPTR[0]=='/' && (requestPTR[1]==' ' || requestPTR[1]=='?')) {
edg_wlc_JobId *jobsOut = NULL;
int i, flags;