1#!/bin/sh 2# 20091217, Sampo Kellomaki (sampo@iki.fi) 3# $Id$ 4# 5# systemf("./tpn-client.sh %s %s %s", idpnid, "urn:idhrxml:cv:update", host); 6# $NID -- Identifier of the user in the local user database 7# $TNSTARGET -- service type and method, e.g. urn:idhrxml:cv:update 8# $TNSSERVER -- Domain name of the server (TrustBuilder will run on port 9595) 9 10export JAVA_HOME=/apps/java/jre1.6.0_05 11 12NID=$1 13TNSTARGET=$2 14TNSSERVER=$3 15 16#edu.uiuc.cs.TrustBuilder2.TrustBuilder2.log_config = /var/zxid/idptpn/log.properties 17 18cd /var/zxid/idpuid/$NID/tpn 19cat >client.properties <<EOF 20edu.uiuc.cs.TrustBuilder2.TrustBuilder2.root = ./ 21edu.uiuc.cs.TrustBuilder2.TrustBuilder2.log_config = ../../../idptpn/log.properties 22edu.uiuc.cs.TrustBuilder2.TrustBuilder2.SecureRandom = SHA1PRNG 23edu.uiuc.cs.TrustBuilder2.TrustBuilder2.configuration_1 = \ 24 be.kuleuven.esat.cosic.negotiation.CUPRelevantStrategy; \ 25 be.kuleuven.esat.cosic.negotiation.AttributeCredential; \ 26 be.kuleuven.esat.cosic.negotiation.authz.AuthzPolicyBrick 27edu.uiuc.cs.TrustBuilder2.IOManipulation.IOManipulationModule.enabled = false 28edu.uiuc.cs.TrustBuilder2.IOManipulation.IOManipulationModule.load = \ 29 edu.uiuc.cs.TrustBuilder2.IOManipulation.viz.VisualizationModule 30edu.uiuc.cs.TrustBuilder2.IOManipulation.viz.VisualizationModule.load = \ 31 edu.uiuc.cs.TrustBuilder2.IOManipulation.viz.GuiVisualizer 32edu.uiuc.cs.TrustBuilder2.state.SessionManager.expire = 3600000 33edu.uiuc.cs.TrustBuilder2.state.SessionManager.cleanup = 120000 34edu.uiuc.cs.TrustBuilder2.strategy.StrategyModuleMediator.loadStrategies = \ 35 be.kuleuven.esat.cosic.negotiation.CUPRelevantStrategy 36edu.uiuc.cs.TrustBuilder2.verification.CredentialChainMediator.loadVerifiers = \ 37 edu.uiuc.cs.TrustBuilder2.verification.RootToLeafVerifier 38edu.uiuc.cs.TrustBuilder2.verification.CredentialChainMediator.loadBuilders = \ 39 edu.uiuc.cs.TrustBuilder2.verification.SimpleChainBuilder 40edu.uiuc.cs.TrustBuilder2.compliance.ComplianceCheckerMediator.loadComplianceCheckers = \ 41be.kuleuven.esat.cosic.negotiation.CUPComplianceChecker 42edu.uiuc.cs.TrustBuilder2.query.QueryEngineMediator.loadQueryEngines = \ 43 edu.uiuc.cs.TrustBuilder2.query.profile.ProfileManager, \ 44 be.kuleuven.esat.cosic.negotiation.CUPPolicyManager 45be.kuleuven.esat.cosic.negotiation.CUPPolicyManager.policyDir=./policies 46edu.uiuc.cs.TrustBuilder2.query.profile.ProfileManager.loaderFileDir=profile_loaders 47edu.uiuc.cs.TrustBuilder2.query.profile.ProfileManager.loadLoaders = \ 48 edu.uiuc.cs.TrustBuilder2.query.profile.ClaimLoader, \ 49 be.kuleuven.esat.cosic.negotiation.AttributeCredentialLoader 50TCPTimeout=20000 51TNSTarget=$TNSTARGET 52TNSServer=$TNSSERVER 53 54EOF 55 56/apps/java/jre1.6.0_05/bin/java -classpath /s/T3-TPN-TB2/client/tn.jar be.kuleuven.esat.cosic.negotiation.client.TAS3Client client.properties >tns.result 57 58#/apps/java/jre1.6.0_05/bin/java -classpath /s/T3-TPN-TB2/server/tn.jar be.kuleuven.esat.cosic.negotiation.server.TrustNegotiationServer # >tns.result 59 60grep 'NO ERROR' tns.result 61 62# NO ERROR 63# none | <list of credentials> 64# 65 66#EOF