From: Zdeněk Šustr Date: Thu, 1 Mar 2012 15:21:32 +0000 (+0000) Subject: Experimenting with groups and roles X-Git-Tag: glite-lb-logger_R_2_3_3_1~13 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=d4994d35e6dce97d1a26d2a1dd4b0e003f0eb561;p=jra1mw.git Experimenting with groups and roles --- diff --git a/org.glite.testsuites.ctb/PX/tests/px-voms-install.sh b/org.glite.testsuites.ctb/PX/tests/px-voms-install.sh index 0353319..62cde4d 100755 --- a/org.glite.testsuites.ctb/PX/tests/px-voms-install.sh +++ b/org.glite.testsuites.ctb/PX/tests/px-voms-install.sh @@ -20,6 +20,7 @@ function add_voms_user_w_attrs() { voms-admin --nousercert --vo vo.org create-user "$1" "$2" "$3" "$4" voms-admin --nousercert --vo vo.org set-user-attribute "$1" "$2" attribute1 $RANDOM voms-admin --nousercert --vo vo.org set-user-attribute "$1" "$2" attribute2 $RANDOM + voms-admin --nousercert --vo vo.org add-member Testers "$1" "$2" } USERNAME="root" @@ -100,6 +101,11 @@ source /etc/profile.d/grid-env.sh voms-admin --vo vo.org create-attribute-class "attribute1" "The first test attribute" 0 voms-admin --vo vo.org create-attribute-class "attribute2" "The second test attribute" 0 +voms-admin --vo vo.org create-attribute-class "attribute3" "The third test attribute" 0 + +voms-admin --vo vo.org create-group Testers +voms-admin --vo vo.org create-role Tester +voms-admin --vo vo.org set-role-attribute "/vo.org/Testers/" Role=Tester attribute3 "TestAttr$RANDOM" add_voms_user_w_attrs "/C=UG/L=Tropic/O=Utopia/OU=Relaxation/CN=$USERNAME" "/C=UG/L=Tropic/O=Utopia/OU=Relaxation/CN=the trusted CA" "$USERNAME" "root@`hostname -f`" add_voms_user_w_attrs "/C=UG/L=Tropic/O=Utopia/OU=Relaxation/CN=$USERNAME client01" "/C=UG/L=Tropic/O=Utopia/OU=Relaxation/CN=the trusted CA" "$USERNAME" "root@`hostname -f`"