First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 160082
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Stefaan De Roeck <stefaan@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Bryan Jacobs <BryanRJ@gmail.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
pam-afs-session-1.1.ebuild pam-afs-session-1.1 text/plain Bryan Jacobs 2007-01-04 13:27 0000 553 bytes Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 160082 depends on: Show dependency tree
Show dependency graph
Bug 160082 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-01-04 13:27 0000
This is a PAM module to provide an AFS PAG and tokens.

------- Comment #1 From Bryan Jacobs 2007-01-04 13:27:58 0000 -------
Created an attachment (id=105418) [edit]
pam-afs-session-1.1

------- Comment #2 From Stefaan De Roeck 2007-01-04 14:13:07 0000 -------
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 From Dirk Heinrichs 2007-02-12 19:05:08 0000 -------
Could this be put into the portage tree, please.

------- Comment #4 From Stefaan De Roeck 2007-02-12 19:22:33 0000 -------
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 From Dirk Heinrichs 2007-02-12 20:22:54 0000 -------
(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 From Bryan Jacobs 2007-02-12 20:57:48 0000 -------
(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 From Stefaan De Roeck 2007-02-12 21:40:05 0000 -------
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 From Dirk Heinrichs 2007-02-13 18:52:28 0000 -------
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 From Dirk Heinrichs 2007-02-13 18:53:59 0000 -------
(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 From Stefaan De Roeck 2007-02-13 21:59:49 0000 -------
(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 From Bryan Jacobs 2007-02-13 22:20:04 0000 -------
(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 From Dirk Heinrichs 2007-02-13 22:21:27 0000 -------
(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 From Stefaan De Roeck 2007-02-14 07:14:10 0000 -------
(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 From Dirk Heinrichs 2007-02-14 07:24:12 0000 -------
(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 From Stefaan De Roeck 2007-02-14 07:29:15 0000 -------
> 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 From Bryan Jacobs 2007-02-14 08:08:11 0000 -------
(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 From Dirk Heinrichs 2007-04-16 17:47:41 0000 -------
Version bumped to 1.3. Renaming the 1.1 ebuild compiles and installs fine on
x86, functional test pending.

------- Comment #18 From Stefaan De Roeck 2007-04-17 07:34:40 0000 -------
Great, thanks.  I'll await your functional test if you don't mind. 

------- Comment #19 From Dirk Heinrichs 2007-04-17 16:50:27 0000 -------
Works fine on x86. Checked local and ssh logins, no problems.

------- Comment #20 From Stefaan De Roeck 2007-05-01 10:15:26 0000 -------
Sorry for the long wait. pam-afs-session-1.3 is now in the tree. Thanks for
reporting and testing!

First Last Prev Next    No search results available      Search page      Enter new bug