password module
- class password.Password(cfg=None)[source]
Bases:
object
provide passwords for BIT either from keyring, Password_Cache or by asking User.
- password(parent, profile_id, mode, pw_id=1, only_from_keyring=False)[source]
based on profile settings return password from keyring, Password_Cache or by asking User.
- passwordFromKeyring(service_name, user_name)[source]
get password from system keyring (seahorse). The keyring is only available if User is logged in.
- passwordFromUser(parent, profile_id=None, mode=None, pw_id=1, prompt=None)[source]
ask user for password. This does even work when run as cronjob and user is logged in.
- setPassword(password, profile_id, mode, pw_id)[source]
store password to keyring and Password_Cache
- class password.Password_Cache(cfg=None, *args, **kwargs)[source]
Bases:
Daemon
Password_Cache get started on User login. It provides passwords for BIT cronjobs because keyring is not available when the User is not logged in. Does not start if there is no password to cache (e.g. no profile allows to cache).
- PW_CACHE_VERSION = 3