Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 69121 - libpam-storepw-0.1.ebuild (New Package)
Summary: libpam-storepw-0.1.ebuild (New Package)
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2004-10-27 04:33 UTC by Rodrigo Severo
Modified: 2005-09-02 21:25 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
libpam-storepw-0.1.ebuild (libpam-storepw-0.1.ebuild,1.42 KB, text/plain)
2004-10-27 04:34 UTC, Rodrigo Severo
Details
A README file with needed explanations. (README,1.22 KB, text/plain)
2004-10-27 04:37 UTC, Rodrigo Severo
Details
libpam-storepw-0.1.ebuild (Patched) (libpam-storepw-0.1.ebuild,1.53 KB, text/plain)
2004-10-29 14:14 UTC, Rodrigo Severo
Details
0.1-cifs.patch (0.1-cifs.patch,391 bytes, patch)
2004-10-29 14:14 UTC, Rodrigo Severo
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rodrigo Severo 2004-10-27 04:33:00 UTC
Hey,


I'm sending here libpam-storepw-0.1.ebuild.

libpam-storepw is a pam module to help Linux clients access smb/cifs shares. The problem with cifs or smbfs/smb/samba is that mounting a cifs filesystems requires a password. This module creates a credentials file which can be used by, for example, automount to provide the proper shares for each user.

I suggest app-admin/libpam-storepw.

Rodrigo
Comment 1 Rodrigo Severo 2004-10-27 04:34:44 UTC
Created attachment 42681 [details]
libpam-storepw-0.1.ebuild
Comment 2 Rodrigo Severo 2004-10-27 04:37:00 UTC
Created attachment 42682 [details]
A README file with needed explanations.

The original package lacks in documentation so I created (copied) this info
from the original home page.
Comment 3 Michael Glauche (RETIRED) gentoo-dev 2004-10-29 02:55:19 UTC
I think the package described in bug #67060 has the same functionality, can you check it out ?
Comment 4 Rodrigo Severo 2004-10-29 05:12:12 UTC
I've just looked at bug #67060. During my LDAP/cifs errant I tried smbpwman. It works on solving exactly the same problem as libpam-storepw.

But they both take two rather different approachs to this same problem:

1. smbpwman uses a much more sophisticated/complex approach with an outside daemon getting the password from a pam module and eventually passing it to some third component.

2. libpam-storepw is much simplier as it is a pam module itself which saves a credential file for latter use by whoever needs it.

The simplicity of libpam-storepw attracted me as it seems much more robust. The idea being: why have two softwares doing the work that can be done greatly by one?

I think that both packages should be included in portage as each one will probably fit better in different setups.
Comment 5 Rodrigo Severo 2004-10-29 14:14:22 UTC
Created attachment 42879 [details]
libpam-storepw-0.1.ebuild (Patched)

I had to include a small patch to make it compatible both with cifs and smbfs
and not only with smbfs.
Comment 6 Rodrigo Severo 2004-10-29 14:14:59 UTC
Created attachment 42880 [details, diff]
0.1-cifs.patch

The patch itself.
Comment 7 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-06-05 18:06:37 UTC
You probably want to clean this up using pam eclass (and remove the epatch comment above).
Comment 8 Rodrigo Severo 2005-06-06 08:13:32 UTC
I'm afraid I didn't understand exactly what do you mean. Could you please
elaborate a little longer?

What exactly is pam eclass? Where can I find it?
Comment 9 Daniel Black (RETIRED) gentoo-dev 2005-06-07 02:15:13 UTC
pam eclass - /usr/portage/eclass/pam.eclass 
 
Take a look at other pam ebuilds for usage. Look for inherit pam at the top of 
the ebuild. 
Comment 10 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-09-02 16:37:56 UTC
Let it be validated before. 
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2005-09-02 21:25:04 UTC
1/ This needs to use pam eclass and be rewritten accordingly.
2/ Did you really test this on all those ARCHs in KEYWORDS? If not, remove those
untested.
3/ ${A}, ${S}, ${FILESDIR} should be quoted.
4/ Remove the redundant eclass-related comments.

Please, fix the above problems and reopen then.