Module runtime
source code
Module implementing configuration details at runtime.
|
_priv = None
|
|
_priv_lock = threading.Lock()
|
Imports:
grp,
pwd,
threading,
constants,
errors,
utils
Retrieve the uid from the database.
- Parameters:
user (string) - The username to retrieve
- Returns:
- The resolved uid
|
Retrieve the gid from the database.
- Parameters:
group (string) - The group name to retrieve
- Returns:
- The resolved gid
|
Singleton wrapper around resolver instance.
As this method is accessed by multiple threads at the same time we
need to take thread-safty carefully
|