Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 160082 - sys-auth/pam-afs-session-1.1 (new ebuild)
Summary: sys-auth/pam-afs-session-1.1 (new ebuild)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Stefaan De Roeck (RETIRED)
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2007-01-04 13:27 UTC by Bryan Jacobs
Modified: 2007-05-01 10:15 UTC (History)
2 users (show)

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


Attachments
pam-afs-session-1.1 (pam-afs-session-1.1.ebuild,553 bytes, text/plain)
2007-01-04 13:27 UTC, Bryan Jacobs
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bryan Jacobs 2007-01-04 13:27:19 UTC
This is a PAM module to provide an AFS PAG and tokens.
Comment 1 Bryan Jacobs 2007-01-04 13:27:58 UTC
Created attachment 105418 [details]
pam-afs-session-1.1
Comment 2 Stefaan De Roeck (RETIRED) gentoo-dev 2007-01-04 14:13:07 UTC
Quite a coincidence, I had just started making an ebuild for this package this same evening.  I haven't gotten far, so this is very welcome :) Thank you.

As far as I understand the documentation, this package doesn't really provide tokens, but calls other tools to do that.  
Comment 3 Dirk Heinrichs 2007-02-12 19:05:08 UTC
Could this be put into the portage tree, please.
Comment 4 Stefaan De Roeck (RETIRED) gentoo-dev 2007-02-12 19:22:33 UTC
It could.

The only thing holding me back is that I currently cannot test this properly (I don't have a full Kerberos V setup, and unfortunately I lack the time to create one now).  Does it help if I put it portage hard-masked?
Comment 5 Dirk Heinrichs 2007-02-12 20:22:54 UTC
(In reply to comment #4)
> It could.
> 
> The only thing holding me back is that I currently cannot test this properly (I
> don't have a full Kerberos V setup, and unfortunately I lack the time to create
> one now).  Does it help if I put it portage hard-masked?

I've put it into my overlay already. Will test it during the next couple of
days. Would that help getting it into the tree as ~arch?
Comment 6 Bryan Jacobs 2007-02-12 20:57:48 UTC
(In reply to comment #4)
> It could.
> 
> The only thing holding me back is that I currently cannot test this properly (I
> don't have a full Kerberos V setup, and unfortunately I lack the time to create
> one now).  Does it help if I put it portage hard-masked?
> 

I've already tested this on x86 and amd64 - it works just fine.
And it's too small to cause any major trouble...  It's just a little bit of code which makes AFS users' lives easier via the system aklog.  I recommend putting it into ~arch.
Comment 7 Stefaan De Roeck (RETIRED) gentoo-dev 2007-02-12 21:40:05 UTC
I've put the ebuild (slightly adapted) in portage.  If you could both test this ebuild on the platforms you have available, I'm willing to take responsibility and trust you on that :)
Comment 8 Dirk Heinrichs 2007-02-13 18:52:28 UTC
First thing that hit me was that the module is installed in /usr/lib/security
instead of /lib/security. Once configured, I get an AFS token and different
logins (of the same user) are put into different PAGs. So I can say: Works
fine for me.
Comment 9 Dirk Heinrichs 2007-02-13 18:53:59 UTC
(In reply to comment #8)
> First thing that hit me was that the module is installed in /usr/lib/security
> instead of /lib/security. Once configured, I get an AFS token and different
> logins (of the same user) are put into different PAGs. So I can say: Works
> fine for me.
Platform is x86.

Comment 10 Stefaan De Roeck (RETIRED) gentoo-dev 2007-02-13 21:59:49 UTC
(In reply to comment #8)
> First thing that hit me was that the module is installed in /usr/lib/security
> instead of /lib/security. 

Can you double-check?  And confirm that you're using the ebuild I put in portage, not the one in your overlay?  (I don't see what you're getting, not on amd64 nor on x86)

Comment 11 Bryan Jacobs 2007-02-13 22:20:04 UTC
(In reply to comment #10)
> (In reply to comment #8)
> > First thing that hit me was that the module is installed in /usr/lib/security
> > instead of /lib/security. 
> 
> Can you double-check?  And confirm that you're using the ebuild I put in
> portage, not the one in your overlay?  (I don't see what you're getting, not on
> amd64 nor on x86)
> 

Your ebuild in portage works fine for me on amd64.

Before: no AFS tokens except where kinit fetches them.
After: AFS tokens acquired whenever KRB5CCNAME is set to a valid ccache owned by the current user.
Comment 12 Dirk Heinrichs 2007-02-13 22:21:27 UTC
(In reply to comment #10)
> (In reply to comment #8)
> > First thing that hit me was that the module is installed in /usr/lib/security
> > instead of /lib/security. 
> 
> Can you double-check?  And confirm that you're using the ebuild I put in
> portage, not the one in your overlay?  (I don't see what you're getting, not on
> amd64 nor on x86)
> 
Yep, confirmed.
Comment 13 Stefaan De Roeck (RETIRED) gentoo-dev 2007-02-14 07:14:10 UTC
(In reply to comment #12)
> (In reply to comment #10)
> > (In reply to comment #8)
> > > First thing that hit me was that the module is installed in /usr/lib/security
> > > instead of /lib/security. 
> > 
> > Can you double-check?  And confirm that you're using the ebuild I put in
> > portage, not the one in your overlay?  (I don't see what you're getting, not on
> > amd64 nor on x86)
> > 
> Yep, confirmed.
> 

I really don't understand:
src_install() {
    dopammod pam_afs_session.so
...

dopammod() {
    exeinto $(getpam_mod_dir)
...

and in getpam_mod_dir:
PAM_MOD_DIR=/$(get_libdir)/security
  unless you have OSX, then it becomes /usr/lib/pam

Can you put some echo-statements in the ebuild?  Or install it using "ebuild ... qmerge" instead of just emerge?

Bryan: is which directory is the module installed on your machine?
Comment 14 Dirk Heinrichs 2007-02-14 07:24:12 UTC
(In reply to comment #13)
> (In reply to comment #12)
> > (In reply to comment #10)
> > > (In reply to comment #8)
> > > > First thing that hit me was that the module is installed in /usr/lib/security
> > > > instead of /lib/security. 
> > > 
> > > Can you double-check?  And confirm that you're using the ebuild I put in
> > > portage, not the one in your overlay?  (I don't see what you're getting, not on
> > > amd64 nor on x86)
> > > 
> > Yep, confirmed.
> > 
> 
> I really don't understand:
> [...]

I confirmed what you asked for: Yes, I was using the ebuild from my overlay, 
and yes, the one in portage correctly installs into /lib/security.
Comment 15 Stefaan De Roeck (RETIRED) gentoo-dev 2007-02-14 07:29:15 UTC
> I confirmed what you asked for: Yes, I was using the ebuild from my overlay, 
> and yes, the one in portage correctly installs into /lib/security.

Technically, I was asking you to confirm that you were using the ebuild in portage, not the other way around :)
Glad to know it works correctly though!
Comment 16 Bryan Jacobs 2007-02-14 08:08:11 UTC
(In reply to comment #13)
> (In reply to comment #12)
> > (In reply to comment #10)
> > > (In reply to comment #8)
> > > > First thing that hit me was that the module is installed in /usr/lib/security
> > > > instead of /lib/security. 
> > > 
> > > Can you double-check?  And confirm that you're using the ebuild I put in
> > > portage, not the one in your overlay?  (I don't see what you're getting, not on
> > > amd64 nor on x86)
> > > 
> > Yep, confirmed.
> > 
> 
> I really don't understand:
> src_install() {
>     dopammod pam_afs_session.so
> ...
> 
> dopammod() {
>     exeinto $(getpam_mod_dir)
> ...
> 
> and in getpam_mod_dir:
> PAM_MOD_DIR=/$(get_libdir)/security
>   unless you have OSX, then it becomes /usr/lib/pam
> 
> Can you put some echo-statements in the ebuild?  Or install it using "ebuild
> ... qmerge" instead of just emerge?
> 
> Bryan: is which directory is the module installed on your machine?
> 

/lib64/security.  Everything's hunky-dory with your portage ebuild.
Comment 17 Dirk Heinrichs 2007-04-16 17:47:41 UTC
Version bumped to 1.3. Renaming the 1.1 ebuild compiles and installs fine on
x86, functional test pending.
Comment 18 Stefaan De Roeck (RETIRED) gentoo-dev 2007-04-17 07:34:40 UTC
Great, thanks.  I'll await your functional test if you don't mind. 
Comment 19 Dirk Heinrichs 2007-04-17 16:50:27 UTC
Works fine on x86. Checked local and ssh logins, no problems.
Comment 20 Stefaan De Roeck (RETIRED) gentoo-dev 2007-05-01 10:15:26 UTC
Sorry for the long wait. pam-afs-session-1.3 is now in the tree. Thanks for reporting and testing!