Package dak :: Module acl
[hide private]
[frames] | no frames]

Module acl

source code

Functions [hide private]
 
usage(status=0) source code
daklib.dbconn.Fingerprint or None
get_fingerprint(entry, session)
get fingerprint for given ACL entry
source code
 
acl_set_fingerprints(acl_name, entries) source code
 
acl_export_per_source(acl_name) source code
 
acl_allow(acl_name, fingerprint, sources) source code
 
acl_deny(acl_name, fingerprint, sources) source code
 
main(argv=None) source code

Imports: os, sys, DBConn, Fingerprint, Keyring, Uid, ACL


Function Details [hide private]

get_fingerprint(entry, session)

source code 

get fingerprint for given ACL entry

The entry is a string in one of these formats:

   uid:<uid>
   name:<name>
   fpr:<fingerprint>
   keyring:<keyring-name>
Parameters:
  • entry (string) - ACL entry
  • session - database session
Returns: daklib.dbconn.Fingerprint or None
fingerprint for the entry