From c26ca2b017e2c0b147bcf4363ce62ae486f3b0b0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Wed, 7 Apr 2010 23:13:55 +0000 Subject: [PATCH] Update due to latest changes in bkserver authorization. --- org.glite.lb.yaim/config/functions/config_glite_lb | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/org.glite.lb.yaim/config/functions/config_glite_lb b/org.glite.lb.yaim/config/functions/config_glite_lb index b1cb270..aa42b85 100644 --- a/org.glite.lb.yaim/config/functions/config_glite_lb +++ b/org.glite.lb.yaim/config/functions/config_glite_lb @@ -52,37 +52,21 @@ function config_glite_lb_authz() { superusers="$1" rtm="$2" - superusers="`echo \"$superusers\"| grep -v ^$ | tr ',' '\n' | sed 's/\(.*\)/\t\tsubject = \"\1\"/'`" - rtm="`echo \"$rtm\"| grep -v ^$ | tr ',' '\n' | sed 's/\(.*\)/\t\tsubject = \"\1\"/'`" + superusers="`echo \"$superusers\" | tr ',' '\n' | grep -v ^$ | sed 's/\(.*\)/\trule permit {\n\t\tsubject = \"\1\"\n\t}/'`" + rtm="`echo \"$rtm\" | tr ',' '\n' | grep -v ^$ | sed 's/\(.*\)/\trule permit {\n\t\tsubject = \"\1\"\n\t}/'`" authconf="$GLITE_LOCATION/etc/glite-lb/glite-lb-authz.conf" cat < "$authconf".new resource "LB" { -EOF - if test ! -z "$superusers"; then - cat <> "$authconf".new action "ADMIN_ACCESS" { - rule permit { $superusers - } } -EOF - fi - - if test ! -z "$rtm"; then - cat <> "$authconf".new action "STATUS_FOR_MONITORING" { - rule permit { $rtm - } } -EOF - fi - - cat <> "$authconf".new action "REGISTER_JOBS" { rule permit { subject = ".*" -- 1.8.2.3