- Timestamp:
- Oct 17, 2008 9:52:04 AM (16 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master, version-1.30, version-2.00, version-3.01, version-3.02
- Children:
- 4700b3b
- Parents:
- 3925b50
- Location:
- fedd
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/fedd_access.py
r3925b50 rabb87eb 435 435 "Access denied (nodetypes %s)" % \ 436 436 str(', ').join(inaccessible)) 437 438 ssh = [ x['sshPubkey'] \ 439 for x in req['access'] if x.has_key('sshPubkey')] 437 # XXX: This allocates a single user for both service and creation. 438 # This needs to be made more nuanced. 439 tmp_ssh = [ x['sshPubkey'] \ 440 for x in req['serviceAccess'] + req['createAccess'] \ 441 if x.has_key('sshPubkey')] 442 443 # Converting to a set collapses duplicates 444 ssh = set(tmp_ssh) 440 445 441 446 if len(ssh) > 0: -
fedd/fedd_experiment_control.py
r3925b50 rabb87eb 815 815 } 816 816 817 # XXX multi-level access818 817 uri = self.tbmap.get(tb, None) 819 818 if not uri: … … 826 825 'user': user, 827 826 'allocID' : { 'localname': 'test' }, 828 'access' : [ { 'sshPubkey' : self.ssh_pubkey } ] 827 # XXX: need to get service access stright 828 'createAccess' : [ { 'sshPubkey' : self.ssh_pubkey } ], 829 'serviceAccess' : [ { 'sshPubkey' : self.ssh_pubkey } ] 829 830 } 830 831 -
fedd/fedd_types.xsd
r3925b50 rabb87eb 68 68 </xsd:complexType> 69 69 70 <xsd:simpleType name="userRole"> 71 <xsd:annotation> 72 <xsd:documentation> 73 Purpose of this user - service access or experiment creation 74 </xsd:documentation> 75 </xsd:annotation> 76 <xsd:restriction base="xsd:string"> 77 <xsd:enumeration value="serviceAccess"/> 78 <xsd:enumeration value="experimentCreation"/> 79 </xsd:restriction> 80 </xsd:simpleType> 81 82 70 83 <xsd:complexType name="userType"> 71 84 <xsd:annotation> … … 80 93 <xsd:element name="access" type="tns:accessType" minOccurs="0" 81 94 maxOccurs="unbounded"/> 95 <xsd:element name="role" type="tns:userRole" minOccurs="0" maxOccurs="1"/> 82 96 </xsd:sequence> 83 97 </xsd:complexType> … … 294 308 <xsd:element name="resources" type="tns:resourcesType" minOccurs="0" 295 309 maxOccurs="1"/> 296 <xsd:element name="access" type="tns:accessType" minOccurs="1" 310 <xsd:element name="createAccess" type="tns:accessType" minOccurs="1" 311 maxOccurs="unbounded"/> 312 <xsd:element name="serviceAccess" type="tns:accessType" minOccurs="1" 297 313 maxOccurs="unbounded"/> 298 314 <xsd:element name="allocID" type="tns:IDType"/>
Note: See TracChangeset
for help on using the changeset viewer.