Changeset 5a6b75b
- Timestamp:
- Dec 2, 2008 8:44:41 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:
- 08329f4
- Parents:
- 5fffd82
- Location:
- fedd/federation
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/federation/access.py
r5fffd82 r5a6b75b 38 38 bool_attrs = ("project_priority", "allow_proxy") 39 39 emulab_attrs = ("boss", "ops", "domain", "fileserver", "eventserver") 40 id_attrs = (" testbed", "proxy",40 id_attrs = ("proxy", 41 41 "proxy_cert_file", "proxy_cert_pwd", "proxy_trusted_certs", 42 42 "project_allocation_uri", "project_allocation_cert_file", … … 96 96 auth = authorizer() 97 97 98 self.fedid_default = "testbed" 98 tb = config.get('access', 'testbed') 99 if tb: self.testbed = [ t.strip() for t in tb.split(',') ] 100 else: self.testbed = [ ] 101 99 102 if config.has_option("access", "accessdb"): 100 103 self.read_access(config.get("access", "accessdb")) … … 544 547 dt = unpack_id(req['destinationTestbed']) 545 548 546 if dt == None or dt ==self.testbed:549 if dt == None or dt in self.testbed: 547 550 # Request for this fedd 548 551 found, dyn, owners = self.lookup_access(req, fid) … … 701 704 dt = None 702 705 703 if dt == None or dt ==self.testbed:706 if dt == None or dt in self.testbed: 704 707 # Local request 705 708 try: -
fedd/federation/deter_impl.py
r5fffd82 r5a6b75b 53 53 experiment_control_local(config, self.auth) 54 54 # Tell the experiment control where local access control is and 55 # what testbed it pertains to.55 # what testbeds it pertains to. 56 56 if self.access: 57 self.experiment.local_access[self.access.testbed] = \58 57 for t in self.access.testbed: 58 self.experiment.local_access[t] = self.access 59 59 60 60 self.soap_services.update(self.experiment.soap_services)
Note: See TracChangeset
for help on using the changeset viewer.