Recent Commits
Commit | Author | Details | Committed | ||||
---|---|---|---|---|---|---|---|
27179f80f860 | aubruz | Remove rm home_dir | Apr 30 2019 | ||||
49187b81db97 | aubruz | Retain only NAS mount conf | Apr 30 2019 | ||||
53ad8d1e5747 | aubruz | Add spaces for PEP 8 | Apr 29 2019 | ||||
47956313be69 | aubruz | Modify README.md | Apr 26 2019 | ||||
3f3a56b982b8 | aubruz | Ignore .Idea folder | Apr 26 2019 | ||||
99acca0ef0f4 | sbancal | security FIX mount.cifs options | Sep 3 2018 | ||||
d1256b42fa94 | sbancal | +zsh +git in .conf | Aug 28 2018 | ||||
8db6cb97c9a4 | sbancal | Anonymize .conf | Aug 28 2018 | ||||
9efea5ffb9d3 | sbancal | FIX Sometimes target has to be mkdir as root | Aug 28 2018 | ||||
8dc40122c738 | sbancal | FIX for Kerberos setup | Aug 23 2018 | ||||
9d9f510b2a94 | sbancal | Add LICENSE | Aug 13 2018 | ||||
c401a921e03e | sbancal | FIX doc for Ubuntu 18.04 +missing package dep | Jul 10 2018 | ||||
6025742850c0 | sbancal | Adapted to Ubuntu 18.04 LTS | Jul 10 2018 | ||||
72bf9521147a | sbancal | 2017-10-06 +missing dep package python-lockfile | Oct 6 2017 | ||||
58eadc790e94 | sbancal | 2016-12-06 better doc in manage_cred.py | Dec 6 2016 |
README.md
epfl_roaming and manage_cred
manage_cred
... is a tool that receives user's credentials during authentication phase and keeps it for later use. Any tool that want to benefit from it has to implement a "manage_cred's extension" by adding a Python file in /usr/local/lib/manage_cred/ that implements both :
- FLAG_FILE : points to a file that reports that this extension expects to be run
- run : function that will receive both the username and the password in order to perform the commands needing the credentials.
The files related to manage_cred : + /etc/pam.d/common-auth
Says that PAM has to run `manage_cred.py` at authentication step with credentials exposed
+ /usr/local/bin/manage_cred.py
Main script
+ /usr/local/lib/manage_cred
Folder that will contain all extensions
epfl_roaming
... is a tool that stores selected application's config/preferences on the NAS. This is configured by adding right the folders, files and DConf keys in /usr/local/etc/epfl_roaming.conf.
This version does not provide a clean environment at each login nor erase data at logout time!
It directly needs manage_cred, since it has to mount the NAS during session creation at a time when we don't receive the password from PAM.
The files related to epfl_roaming : + /etc/pam.d/common-session
Says that PAM has to run `epfl_roaming.py --pam` at session opening and closing. Most of the job is done here.
+ /etc/skel/.config/autostart/epfl_roaming.desktop
Says that Gnome/Unity has to run `epfl_roaming.py --session` when session is opened (used to apply DConf keys)
+ /etc/systemd/system/epfl_roaming_on_shutdown.service
Says that systemd has to run `epfl_roaming.py --on_halt` when the system is shut down or rebooted (since PAM procedure might be skipped or aborted)
+ /usr/local/bin/epfl_roaming.py
Main script
+ /usr/local/etc/epfl_roaming.conf
Configuration
+ /usr/local/lib/manage_cred/ext_epfl_roaming.py
manage_cred's extension for epfl_roaming
How to do the setup
~~~ bash sudo make install ~~~
Note : This process has been validated on Ubuntu 18.04. Adaptations will be needed for Ubuntu 14.04 or other GNU/Linux flavors.