From: Daniel KouĊ™il Date: Wed, 7 Apr 2010 15:03:23 +0000 (+0000) Subject: Treat VOMS groups as FQANs when constructing GACL structures (separate groups seem... X-Git-Tag: glite-lb-client-java_R_1_0_2_1~16 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=086450f4d7946d16ed22e05f728230753441bfce;p=jra1mw.git Treat VOMS groups as FQANs when constructing GACL structures (separate groups seem not to be supported any more by gridsite) --- diff --git a/org.glite.lb.server/src/lb_authz.c b/org.glite.lb.server/src/lb_authz.c index f4cfce9..88e1605 100644 --- a/org.glite.lb.server/src/lb_authz.c +++ b/org.glite.lb.server/src/lb_authz.c @@ -247,13 +247,12 @@ parse_creds(edg_wll_Context ctx, edg_wll_VomsGroups *groups, char **fqans, cred = NULL; /* GACLnewUser() doesn't copy content, just store the pointer */ for (i = 0; i < groups->len; i++) { - cred = GRSTgaclCredNew("voms-cred"); + cred = GRSTgaclCredNew("voms"); if (cred == NULL) { edg_wll_SetError(ctx, ENOMEM, "Failed to create GACL voms-cred credential"); goto fail; } - if (!GRSTgaclCredAddValue(cred, "vo", groups->val[i].vo) || - !GRSTgaclCredAddValue(cred, "group", groups->val[i].name)) { + if (!GRSTgaclCredAddValue(cred, "fqan", groups->val[i].name)) { edg_wll_SetError(ctx, EINVAL, "Failed to populate GACL voms-cred credential"); goto fail; }