Changeset 4462


Ignore:
Timestamp:
20/11/08 10:40:53 (11 years ago)
Author:
pjkersha
Message:

More re-arranging of Site A/B AA config.

Location:
TI12-security/trunk/python/ndg.security.test/ndg/security/test/attributeauthorityclient
Files:
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/python/ndg.security.test/ndg/security/test/attributeauthorityclient/README

    r4403 r4462  
    88in this directory and run: 
    99 
    10 $ python ./wsgi/siteAServerApp.py 
     10$ python ./siteA/siteAServerApp.py 
    1111 
    1212...and in a separate terminal: 
    1313 
    14 $ python ./wsgi/siteBServerApp.py 
     14$ python ./siteB/siteBServerApp.py 
    1515 
    16 Configuration for these services is held in the files ./wsgi/site-a.ini and 
    17 ./wsgi/site-b.ini respectively. 
     16Configuration for these services is held in the files ./siteA/site-a.ini and 
     17./siteB/site-b.ini respectively. 
    1818 
    1919Note however that the siteBServerApp.py is only needed for tests for getting  
     
    4545==================================================== 
    4646Services have been ported from the Twisted Application Server to run with a 
    47 WSGI wrapper under Paste.  Paste scripts are held in the wsgi/ sub-directory 
    48 and the previous Twisted based ones in twisted/.  These are untested and may 
    49 be removed from future releases of NDG-Security. 
     47WSGI wrapper under Paste.  Paste scripts are held in the siteA/ and siteB/ 
     48sub-directories and the previous Twisted based ones in twisted/.  The latter  
     49are *untested* and may be removed from future releases of NDG-Security. 
    5050 
    5151P J Kershaw 31/10/08 
  • TI12-security/trunk/python/ndg.security.test/ndg/security/test/attributeauthorityclient/siteA/site-a.ini

    r4461 r4462  
    2929 
    3030# All Attribute Certificates issued are recorded in this dir 
    31 attributeAuthority.attCertDir: $NDGSEC_AACLNT_UNITTEST_DIR/attCertLog 
     31attributeAuthority.attCertDir: $NDGSEC_AACLNT_UNITTEST_DIR/siteA/attCertLog 
    3232 
    3333# Files in attCertDir are stored using a rotating file handler 
     
    3939 
    4040# Location of role mapping file 
    41 attributeAuthority.mapConfigFile: $NDGSEC_AACLNT_UNITTEST_DIR/siteAMapConfig.xml 
     41attributeAuthority.mapConfigFile: $NDGSEC_AACLNT_UNITTEST_DIR/siteA/siteAMapConfig.xml 
    4242 
    4343# Settings for custom AAUserRoles derived class to get user roles for given  
    4444# user ID 
    45 attributeAuthority.userRolesModFilePath: $NDGSEC_AACLNT_UNITTEST_DIR 
     45attributeAuthority.userRolesModFilePath: $NDGSEC_AACLNT_UNITTEST_DIR/siteA 
    4646attributeAuthority.userRolesModName: siteAUserRoles 
    4747attributeAuthority.userRolesClassName: TestUserRoles 
    4848 
    4949# Config for XML signature of Attribute Certificate 
    50 attributeAuthority.signingPriKeyFilePath: $NDGSEC_AACLNT_UNITTEST_DIR/siteA-aa.key 
    51 attributeAuthority.signingCertFilePath: $NDGSEC_AACLNT_UNITTEST_DIR/siteA-aa.crt 
     50attributeAuthority.signingPriKeyFilePath: $NDGSEC_AACLNT_UNITTEST_DIR/siteA/siteA-aa.key 
     51attributeAuthority.signingCertFilePath: $NDGSEC_AACLNT_UNITTEST_DIR/siteA/siteA-aa.crt 
    5252attributeAuthority.caCertFilePathList: $NDGSEC_AACLNT_UNITTEST_DIR/ca/ndg-test-ca.crt 
    5353 
     
    5858 
    5959[app:mainApp] 
    60 paste.app_factory = ndg.security.test.attributeauthorityclient.wsgi.siteAServerApp:app_factory 
     60paste.app_factory = ndg.security.test.attributeauthorityclient.siteA.siteAServerApp:app_factory 
    6161 
    6262# Chain of SOAP Middleware filters 
     
    7070ServiceSOAPBindingPropPrefix = AttributeAuthority 
    7171AttributeAuthority.propPrefix = attributeAuthority 
    72 AttributeAuthority.propFilePath = $NDGSEC_AACLNT_UNITTEST_DIR/wsgi/site-a.ini 
     72AttributeAuthority.propFilePath = $NDGSEC_AACLNT_UNITTEST_DIR/siteA/site-a.ini 
    7373referencedFilters = wsseSignatureVerificationFilter01 
    7474path = /AttributeAuthority 
     
    9999# Certificate associated with private key used to sign a message.  The sign  
    100100# method will add this to the BinarySecurityToken element of the WSSE header.   
    101 signingCertFilePath=$NDGSEC_AACLNT_UNITTEST_DIR/siteA-aa.crt 
    102 #signingCertFilePath=$NDGSEC_AACLNT_UNITTEST_DIR/java-ca-server.crt 
     101signingCertFilePath=$NDGSEC_AACLNT_UNITTEST_DIR/siteA/siteA-aa.crt 
     102#signingCertFilePath=$NDGSEC_AACLNT_UNITTEST_DIR/siteA/java-ca-server.crt 
    103103 
    104104# PEM encoded private key file 
    105 signingPriKeyFilePath=$NDGSEC_AACLNT_UNITTEST_DIR/siteA-aa.key 
    106 #signingPriKeyFilePath=$NDGSEC_AACLNT_UNITTEST_DIR/java-ca-server.key 
     105signingPriKeyFilePath=$NDGSEC_AACLNT_UNITTEST_DIR/siteA/siteA-aa.key 
     106#signingPriKeyFilePath=$NDGSEC_AACLNT_UNITTEST_DIR/siteA/java-ca-server.key 
    107107 
    108108# Set the ValueType for the BinarySecurityToken added to the WSSE header for a 
  • TI12-security/trunk/python/ndg.security.test/ndg/security/test/attributeauthorityclient/siteB/site-b.ini

    r4461 r4462  
    1313[DEFAULT] 
    1414# WS-Security settings in THIS file 
    15 wsseCfgFilePath = %(here)s/site-a.ini 
     15wsseCfgFilePath = %(here)s/site-b.ini 
    1616wsseCfgFileSection = WS-Security 
    1717 
     
    2929 
    3030# All Attribute Certificates issued are recorded in this dir 
    31 attributeAuthority.attCertDir: $NDGSEC_AACLNT_UNITTEST_DIR/attCertLog 
     31attributeAuthority.attCertDir: $NDGSEC_AACLNT_UNITTEST_DIR/siteB/attCertLog 
    3232 
    3333# Files in attCertDir are stored using a rotating file handler 
     
    3939 
    4040# Location of role mapping file 
    41 attributeAuthority.mapConfigFile: $NDGSEC_AACLNT_UNITTEST_DIR/siteBMapConfig.xml 
     41attributeAuthority.mapConfigFile: $NDGSEC_AACLNT_UNITTEST_DIR/siteB/siteBMapConfig.xml 
    4242 
    4343# Settings for custom AAUserRoles derived class to get user roles for given  
    4444# user ID 
    45 attributeAuthority.userRolesModFilePath: $NDGSEC_AACLNT_UNITTEST_DIR 
     45attributeAuthority.userRolesModFilePath: $NDGSEC_AACLNT_UNITTEST_DIR/siteB 
    4646attributeAuthority.userRolesModName: siteBUserRoles 
    4747attributeAuthority.userRolesClassName: TestUserRoles 
    4848 
    4949# Config for XML signature of Attribute Certificate 
    50 attributeAuthority.signingPriKeyFilePath: $NDGSEC_AACLNT_UNITTEST_DIR/siteB-aa.key 
    51 attributeAuthority.signingCertFilePath: $NDGSEC_AACLNT_UNITTEST_DIR/siteB-aa.crt 
     50attributeAuthority.signingPriKeyFilePath: $NDGSEC_AACLNT_UNITTEST_DIR/siteB/siteB-aa.key 
     51attributeAuthority.signingCertFilePath: $NDGSEC_AACLNT_UNITTEST_DIR/siteB/siteB-aa.crt 
    5252attributeAuthority.caCertFilePathList: $NDGSEC_AACLNT_UNITTEST_DIR/ca/ndg-test-ca.crt 
    5353 
     
    5858 
    5959[app:mainApp] 
    60 paste.app_factory = ndg.security.test.attributeauthorityclient.wsgi.siteBServerApp:app_factory 
     60paste.app_factory = ndg.security.test.attributeauthorityclient.siteB.siteBServerApp:app_factory 
    6161 
    6262# Chain of SOAP Middleware filters 
     
    7070ServiceSOAPBindingPropPrefix = AttributeAuthority 
    7171AttributeAuthority.propPrefix = attributeAuthority 
    72 AttributeAuthority.propFilePath = $NDGSEC_AACLNT_UNITTEST_DIR/wsgi/site-b.ini 
     72AttributeAuthority.propFilePath = $NDGSEC_AACLNT_UNITTEST_DIR/siteB/site-b.ini 
    7373referencedFilters = wsseSignatureVerificationFilter01 
    7474path = /AttributeAuthority 
     
    9494# Certificate associated with private key used to sign a message.  The sign  
    9595# method will add this to the BinarySecurityToken element of the WSSE header.   
    96 signingCertFilePath=$NDGSEC_AACLNT_UNITTEST_DIR/siteB-aa.crt 
     96signingCertFilePath=$NDGSEC_AACLNT_UNITTEST_DIR/siteB/siteB-aa.crt 
    9797 
    9898# PEM encoded private key file 
    99 signingPriKeyFilePath=$NDGSEC_AACLNT_UNITTEST_DIR/siteB-aa.key 
     99signingPriKeyFilePath=$NDGSEC_AACLNT_UNITTEST_DIR/siteB/siteB-aa.key 
    100100 
    101101# Set the ValueType for the BinarySecurityToken added to the WSSE header for a 
Note: See TracChangeset for help on using the changeset viewer.