Changeset b6a6206 for fedd/fedd_to_abac.py
- Timestamp:
- Oct 6, 2011 3:58:02 PM (13 years ago)
- Branches:
- compt_changes, info-ops, master
- Children:
- 3df9b33
- Parents:
- 2933343 (diff), f3898f7 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/fedd_to_abac.py
r2933343 rb6a6206 65 65 comment_re = re.compile('^\s*#|^$') 66 66 fedid_str = 'fedid:([0-9a-fA-F]{40})' 67 id_str = '[a-zA-Z][\w _-]*'67 id_str = '[a-zA-Z][\w/_-]*' 68 68 single_re = re.compile('\s*%s\s*->\s*(%s)' % (fedid_str, id_str)) 69 69 double_re = re.compile('\s*%s\s*->\s*\((%s)\s*,\s*(%s)\)' % \ … … 109 109 (creds_dir or 'new_cert_dir', id.name, i) 110 110 111 cid = Creddy.ID(cert)112 cid.load_privkey(key)113 cattr = Creddy.Attribute(cid, r, 3600 * 24 * 365 * 10)114 cattr.principal(k)115 111 116 112 if debug: … … 118 114 (cert, key, r, k, cf) 119 115 else: 116 cid = Creddy.ID(cert) 117 cid.load_privkey(key) 118 cattr = Creddy.Attribute(cid, r, 3600 * 24 * 365 * 10) 119 cattr.principal(k) 120 120 cattr.bake() 121 121 cattr.write_name(cf)
Note: See TracChangeset
for help on using the changeset viewer.