Changeset 4688 for TI12-security/trunk/python
- Timestamp:
- 19/12/08 12:53:30 (12 years ago)
- Location:
- TI12-security/trunk/python/ndg.security.server/ndg/security/server/paster_templates
- Files:
-
- 2 edited
- 4 moved
Legend:
- Unmodified
- Added
- Removed
-
TI12-security/trunk/python/ndg.security.server/ndg/security/server/paster_templates/default_deployment/services.ini_tmpl
r4684 r4688 31 31 32 32 # All Attribute Certificates issued are recorded in this dir 33 attributeAuthority.attCertDir: %(here)s/ siteAAttributeAuthority/attCertLog33 attributeAuthority.attCertDir: %(here)s/attributeauthority/attCertLog 34 34 35 35 # Files in attCertDir are stored using a rotating file handler … … 41 41 42 42 # Location of role mapping file 43 attributeAuthority.mapConfigFile: %(here)s/ siteAAttributeAuthority/siteAMapConfig.xml43 attributeAuthority.mapConfigFile: %(here)s/attributeauthority/siteAMapConfig.xml 44 44 45 45 # Settings for custom AAUserRoles derived class to get user roles for given 46 46 # user ID 47 attributeAuthority.userRolesModFilePath: %(here)s/ siteAAttributeAuthority47 attributeAuthority.userRolesModFilePath: %(here)s/attributeauthority 48 48 attributeAuthority.userRolesModName: attributeinterface 49 49 attributeAuthority.userRolesClassName: TestAttributeInterface 50 50 51 51 # Config for XML signature of Attribute Certificate 52 attributeAuthority.signingPriKeyFilePath: %(here)s/ siteAAttributeAuthority/aa.key53 attributeAuthority.signingCertFilePath: %(here)s/ siteAAttributeAuthority/aa.crt52 attributeAuthority.signingPriKeyFilePath: %(here)s/attributeauthority/aa.key 53 attributeAuthority.signingCertFilePath: %(here)s/attributeauthority/aa.crt 54 54 attributeAuthority.caCertFilePathList: %(here)s/ca/ndg-test-ca.crt 55 55 -
TI12-security/trunk/python/ndg.security.server/ndg/security/server/paster_templates/template.py
r4687 r4688 3 3 from paste.script.templates import Template, var, _skip_variables 4 4 import socket 5 5 _hostTuple = socket.gethostbyaddr(socket.gethostname()) 6 try: 7 # Get first alias from list if present 8 _hostname = _hostTuple[1][0] 9 except TypeError: 10 # ... or default to hostname 11 _hostname = _hostTuple[0] 12 6 13 vars = [ 7 14 var('attributeAuthorityID', 8 15 ('Unique identity by which this Attribute Authority will be known by ' 9 16 'other trusted sites'), 10 default= socket.gethostname())17 default=_hostname) 11 18 ] 12 19
Note: See TracChangeset
for help on using the changeset viewer.