smbpwman is a password caching daemon (or more simply it just caches keys and values). Originally written for automatic mounting of samba shares at any time.
I've created a patched version of pam_mount that makes use of this to work around a problem when using openssh (see bug #24213). Also attached are patches that I used on smbpwman for this purpose to reduce the time it cached passwords for and to have it clean the memory containing passwords before it deallocated it.
Created attachment 41513 [details]
Created attachment 41514 [details, diff]
Patch to clean passwords
Patch to overwrite passwords in memory with 0's before freeing the memory
Created attachment 41515 [details, diff]
Fix race condition in clearing passwords
Patch to fix race condition by introducing reference counter.
Add some debugging ability
Created attachment 41516 [details, diff]
Create shared library for interaction with daemon
Created attachment 41517 [details, diff]
Prevent daemon from auto starting
Created attachment 41518 [details, diff]
Patch to expire cache entries
Patch to expire cache entries after 2 seconds
Created attachment 41519 [details, diff]
Retry connection to daemon
Created attachment 41520 [details, diff]
Fix locking to prevent multiple daemons from running
Created attachment 41521 [details, diff]
Patch to enable debugging
Created attachment 41522 [details]
Created attachment 41523 [details]
Cron job to flush the cache
Created attachment 41524 [details]
Fixed smbpwman ebuild
Fixed to prevent installation of cron job for vanilla builds, and fixed some
white space problems.
I would also like to have that in Portage.
Current version is 0.6.
Should we reassign it to email@example.com?
Yes, I think it is better to reassign to firstname.lastname@example.org
If anyone volunteers :-)
No way we are adding an ebuild that requires zillions of patches to work. Reopen with an updated ebuild if upstream fixed those meanwhile and is still alive.