Changeset 2566 for trunk/packages/invirt-dev/invirt-build-conf
- Timestamp:
- Nov 25, 2009, 11:43:21 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-dev/invirt-build-conf
r2565 r2566 15 15 16 16 17 def userToPrinc(user): 18 """Convert an AFS principal to a Kerberos v5 principal.""" 19 if '@' in user: 20 (princ, realm) = user.split('@') 21 else: 22 princ = user 23 realm = config.kerberos.realm 24 25 return princ.replace('.', '/') + '@' + realm 26 27 17 28 def main(): 18 29 # Python could really use a file-like object that gets written to … … 26 37 27 38 acl_fd = tempfile.NamedTemporaryFile(delete=False) 28 print >>acl_fd, '\n'.join( acl)39 print >>acl_fd, '\n'.join(user(a) for a in acl) 29 40 30 41 acl_path = os.path.join('/etc/remctl/acl/build-%s' % pocket)
Note: See TracChangeset
for help on using the changeset viewer.