Changeset 2039
- Timestamp:
- 24/01/07 14:37:48 (14 years ago)
- Location:
- TI12-security/trunk/python
- Files:
-
- 7 added
- 9 edited
- 4 moved
Legend:
- Unmodified
- Added
- Removed
-
TI12-security/trunk/python/conf/attAuthorityProperties.xml
r2028 r2039 2 2 <AAprop> 3 3 <name>BADC</name> 4 <portNum>5000</portNum> 4 5 <keyFile></keyFile> 5 6 <keyPwd></keyPwd> -
TI12-security/trunk/python/ndg.security.common/ndg/security/common/AttAuthority/AttAuthority_services.py
r2036 r2039 29 29 # no ws-addressing 30 30 31 # op: <ZSI.wstools.WSDLTools.Message instance at 0xb6cf39 6c>31 # op: <ZSI.wstools.WSDLTools.Message instance at 0xb6cf39ec> 32 32 def getAttCert(self, userCert,userAttCert): 33 33 … … 44 44 return attCert 45 45 46 # op: <ZSI.wstools.WSDLTools.Message instance at 0xb6cf3 cac>46 # op: <ZSI.wstools.WSDLTools.Message instance at 0xb6cf3d0c> 47 47 def getHostInfo(self): 48 48 … … 59 59 return hostname,aaURI,loginURI 60 60 61 # op: <ZSI.wstools.WSDLTools.Message instance at 0xb6cf a6ac>61 # op: <ZSI.wstools.WSDLTools.Message instance at 0xb6cf97cc> 62 62 def getTrustedHostInfo(self, role): 63 63 … … 70 70 # no output wsaction 71 71 response = self.binding.Receive(getTrustedHostInfoOutputMsg.typecode) 72 return 72 trustedHosts = response._trustedHosts 73 return trustedHosts 73 74 74 # op: <ZSI.wstools.WSDLTools.Message instance at 0xb6cf a82c>75 # op: <ZSI.wstools.WSDLTools.Message instance at 0xb6cf994c> 75 76 def getX509Cert(self): 76 77 -
TI12-security/trunk/python/ndg.security.common/ndg/security/common/AttAuthority/AttAuthority_services_types.py
r2036 r2039 44 44 def __init__(self, **kw): 45 45 ns = ns0.HostInfo_Dec.schema 46 TClist = [ZSI.TC.String(pname="hostname", aname="_hostname", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="aaURI", aname="_aaURI", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="loginURI", aname="_loginURI", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD(" urn:ndg:security","RoleList",lazy=False)(pname="roleList", aname="_roleList", minOccurs=1, maxOccurs="unbounded", nillable=False, typed=False, encoded=kw.get("encoded"))]46 TClist = [ZSI.TC.String(pname="hostname", aname="_hostname", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="aaURI", aname="_aaURI", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="loginURI", aname="_loginURI", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("http://schemas.xmlsoap.org/wsdl/","RoleList",lazy=False)(pname="roleList", aname="_roleList", minOccurs=1, maxOccurs="unbounded", nillable=False, typed=False, encoded=kw.get("encoded"))] 47 47 kw["pname"] = ("urn:ndg:security","HostInfo") 48 48 kw["aname"] = "_HostInfo" … … 169 169 def __init__(self, **kw): 170 170 ns = ns0.getTrustedHostInfoResponse_Dec.schema 171 TClist = [ ]171 TClist = [GTD("http://schemas.xmlsoap.org/wsdl/","HostInfo",lazy=False)(pname="trustedHosts", aname="_trustedHosts", minOccurs=0, maxOccurs="unbounded", nillable=False, typed=False, encoded=kw.get("encoded"))] 172 172 kw["pname"] = ("urn:ndg:security","getTrustedHostInfoResponse") 173 173 kw["aname"] = "_getTrustedHostInfoResponse" … … 179 179 def __init__(self): 180 180 # pyclass 181 self._trustedHosts = [] 181 182 return 182 183 Holder.__name__ = "getTrustedHostInfoResponse_Holder" -
TI12-security/trunk/python/ndg.security.server/ndg/security/server/AttAuthority/AttAuthority_services_server.py
r2036 r2039 5 5 ################################################## 6 6 7 from AttAuthority_services import *7 from ndg.security.common.AttAuthority.AttAuthority_services import * 8 8 from ZSI.ServiceContainer import ServiceSOAPBinding 9 9 … … 12 12 root = {} 13 13 _wsdl = """<?xml version=\"1.0\" ?> 14 <wsdl:definitions name=\"AttAuthority\" targetNamespace=\"urn:ndg:security\" xmlns=\"http://schemas.xmlsoap.org/wsdl/\" xmlns:http=\"http://schemas.xmlsoap.org/wsdl/http/\" xmlns:soap=\"http://schemas.xmlsoap.org/wsdl/soap/\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:tns=\"urn:ndg:security\" xmlns:wsdl=\"http://schemas.xmlsoap.org/wsdl/\" xmlns: wsu=\"http://schemas.xmlsoap.org/ws/2002/07/utility\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">14 <wsdl:definitions name=\"AttAuthority\" targetNamespace=\"urn:ndg:security\" xmlns=\"http://schemas.xmlsoap.org/wsdl/\" xmlns:http=\"http://schemas.xmlsoap.org/wsdl/http/\" xmlns:soap=\"http://schemas.xmlsoap.org/wsdl/soap/\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:tns=\"urn:ndg:security\" xmlns:wsdl=\"http://schemas.xmlsoap.org/wsdl/\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"> 15 15 16 16 <wsdl:types> 17 <xsd:schema >17 <xsd:schema targetNamespace=\"urn:ndg:security\"> 18 18 19 19 <xsd:element name=\"RoleList\"> … … 32 32 <xsd:element maxOccurs=\"1\" minOccurs=\"1\" name=\"aaURI\" type=\"xsd:string\"/> 33 33 <xsd:element maxOccurs=\"1\" minOccurs=\"1\" name=\"loginURI\" type=\"xsd:string\"/> 34 <xsd:element maxOccurs=\"unbounded\" minOccurs=\"1\" name=\"roleList\" type=\" tns:RoleList\"/>34 <xsd:element maxOccurs=\"unbounded\" minOccurs=\"1\" name=\"roleList\" type=\"RoleList\"/> 35 35 </xsd:sequence> 36 36 </xsd:complexType> … … 78 78 <xsd:element name=\"getTrustedHostInfoResponse\"> 79 79 <xsd:complexType> 80 <xsd:element maxOccurs=\"unbounded\" minOccurs=\"0\" name=\"trustedHosts\" type=\"tns:HostInfo\"/> 80 <xsd:sequence> 81 <xsd:element maxOccurs=\"unbounded\" minOccurs=\"0\" name=\"trustedHosts\" type=\"HostInfo\"/> 82 </xsd:sequence> 81 83 </xsd:complexType> 82 84 </xsd:element> … … 85 87 <xsd:complexType/> 86 88 </xsd:element> 89 87 90 <xsd:element name=\"getX509CertResponse\"> 88 91 <xsd:complexType> … … 261 264 262 265 result = getTrustedHostInfoOutputMsg() 266 # If we have an implementation object, copy the result 267 if hasattr(self,'impl'): 268 result._trustedHosts = parameters 263 269 return self.request, result 264 270 -
TI12-security/trunk/python/ndg.security.server/ndg/security/server/AttAuthority/__init__.py
r2035 r2039 78 78 79 79 # valid configuration property keywords 80 __validKeys = [ 'name', 80 __validKeys = ( 'name', 81 'portNum', 81 82 'keyFile', 82 83 'keyPwd', … … 93 94 'usrRolesModName', 94 95 'usrRolesClassName', 95 'usrRolesPropFile' ]96 'usrRolesPropFile') 96 97 97 98 def __init__(self, … … 330 331 331 332 except Exception, e: 332 raise AttAuthorityError, "User Proxy Certificate: %s" % e333 raise AttAuthorityError, "User certificate: %s" % e 333 334 334 335 … … 583 584 float(self.__prop['attCertNotBeforeOff']) 584 585 586 # Likewise port number 587 self.__prop['portNum'] = int(self.__prop['portNum']) 588 585 589 586 590 # Check directory path … … 627 631 628 632 trustedElem = rootElem.findall('trusted') 629 if not trustedElem: 630 raise AttAuthorityError, \631 "\"trusted\" tag not found in Map Configuration file \"%s\"" % \632 self.__prop['mapConfigFile']633 if not trustedElem: 634 # Make an empty list so that for loop block below is skipped 635 # without an error 636 trustedElem = () 633 637 634 638 # Dictionaries: -
TI12-security/trunk/python/ndg.security.server/ndg/security/server/AttAuthority/server-config.tac
r2035 r2039 86 86 return request, response 87 87 88 portNum = 500089 88 hostname = socket.gethostname() 90 89 … … 106 105 siteFactory = Site(root) 107 106 application = service.Application("AttributeAuthorityContainer") 108 port = internet.TCPServer( portNum, siteFactory)107 port = internet.TCPServer(aaSrv.aa['portNum'], siteFactory) 109 108 port.setServiceParent(application) -
TI12-security/trunk/python/ndg.security.server/ndg/security/server/AttAuthority/start-container.sh
r1714 r2039 1 1 #! /bin/sh 2 # ###########################################################################3 # Automatically generated by wsdl2web.py4 # See LBNLCopyright for copyright notice!5 # ##########################################################################2 # 3 # 4 # 5 # 6 6 7 7 EXEC=twistd 8 OPTIONS= -noy8 OPTIONS="--pidfile=twistd-$$.pid -noy" 9 9 CONFIG=server-config.tac 10 10 -
TI12-security/trunk/python/ndg.security.test/ndg/security/test/MyProxy/myProxyClientTest.cfg
r2028 r2039 11 11 12 12 [test1Store] 13 username: sstljakTestUser 13 #username: sstljakTestUser 14 username: gabriel 14 15 passphrase: 15 16 certFile: ./userCert.pem … … 20 21 21 22 [test2GetDelegation] 22 username: sstljakTestUser 23 #username: sstljakTestUser 24 username: gabriel 23 25 passphrase: 24 26 25 27 [test3Info] 26 username: sstljakTestUser 28 #username: sstljakTestUser 29 username: gabriel 27 30 ownerCertFile: ./proxy-cert.pem 28 31 ownerKeyFile: ./proxy-key.pem … … 30 33 31 34 [test4ChangePassphrase] 32 username: sstljakTestUser 35 #username: sstljakTestUser 36 username: gabriel 33 37 ownerCertFile: ./proxy-cert.pem 34 38 ownerKeyFile: ./proxy-key.pem … … 38 42 39 43 [test5Destroy] 40 username: sstljakTestUser 44 #username: sstljakTestUser 45 username: gabriel 41 46 ownerCertFile: ./proxy-cert.pem 42 47 ownerKeyFile: ./proxy-key.pem -
TI12-security/trunk/python/www/html/attAuthority.wsdl
r2036 r2039 8 8 xmlns:xsd="http://www.w3.org/2001/XMLSchema" 9 9 xmlns:tns="urn:ndg:security" 10 xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility"11 10 targetNamespace="urn:ndg:security"> 12 11 13 12 <wsdl:types> 14 <xsd:schema >13 <xsd:schema targetNamespace="urn:ndg:security"> 15 14 16 15 <xsd:element name="RoleList"> … … 29 28 <xsd:element name="aaURI" type="xsd:string" minOccurs="1" maxOccurs="1"/> 30 29 <xsd:element name="loginURI" type="xsd:string" minOccurs="1" maxOccurs="1"/> 31 <xsd:element name="roleList" type=" tns:RoleList" minOccurs="1" maxOccurs="unbounded"/>30 <xsd:element name="roleList" type="RoleList" minOccurs="1" maxOccurs="unbounded"/> 32 31 </xsd:sequence> 33 32 </xsd:complexType> … … 75 74 <xsd:element name="getTrustedHostInfoResponse"> 76 75 <xsd:complexType> 77 <xsd:element name="trustedHosts" type="tns:HostInfo" minOccurs="0" maxOccurs="unbounded"/> 76 <xsd:sequence> 77 <xsd:element name="trustedHosts" type="HostInfo" minOccurs="0" maxOccurs="unbounded"/> 78 </xsd:sequence> 78 79 </xsd:complexType> 79 80 </xsd:element> … … 82 83 <xsd:complexType/> 83 84 </xsd:element> 85 84 86 <xsd:element name="getX509CertResponse"> 85 87 <xsd:complexType>
Note: See TracChangeset
for help on using the changeset viewer.