Changeset f3898f7 for fedd/fedd_to_abac.py
- Timestamp:
- Oct 5, 2011 5:11:01 PM (13 years ago)
- Branches:
- compt_changes, info-ops, master
- Children:
- b6a6206
- Parents:
- 53b5c18
- git-author:
- Ted Faber <faber@…> (10/05/11 17:10:01)
- git-committer:
- Ted Faber <faber@…> (10/05/11 17:11:01)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/fedd_to_abac.py
r53b5c18 rf3898f7 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.