<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>134307</bug_id>
          
          <creation_ts>2006-05-25 03:59 0000</creation_ts>
          <short_desc>sys-auth/pam_krb5-2.2.6 keywording and DEPEND</short_desc>
          <delta_ts>2008-02-26 10:50:13 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>47138</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>BryanRJ@gmail.com</reporter>
          <assigned_to>pam-bugs@gentoo.org</assigned_to>
          <cc>btrzcins@vt.edu</cc>
    
    <cc>glua@4-mail.net</cc>
    
    <cc>jgonzalez.openinput@gmail.com</cc>
    
    <cc>kerberos@gentoo.org</cc>
    
    <cc>kyron@neuralbs.com</cc>

      

      
          <long_desc isprivate="0">
            <who>BryanRJ@gmail.com</who>
            <bug_when>2006-05-25 03:59:19 0000</bug_when>
            <thetext>I have been using sys-auth/pam_krb5-2.2.6 with a Heimdal 0.7 series KDC on x86 and amd64 for two months now with no problems.

Please change the DEPEND to virtual/krb5 and keyword the package into ~arch instead of -*.  This is the only pam_krb5 I&apos;ve found that can correctly handle fetching openafs tokens (when used with a heimdal KDC), obviating pam-openafs-session for all cases except SSH with GSSAPI key-exchange but no OpenAFS ticket passing.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2006-05-25 04:06:17 0000</bug_when>
            <thetext>This is already fixed in 20030601 and 20030601-r1.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>BryanRJ@gmail.com</who>
            <bug_when>2006-05-25 08:35:06 0000</bug_when>
            <thetext>This is not a valid solution.

pam_krb5-2003* and pam_krb5-2.2.6 are two entirely different packages - look at the SRC_URI in the ebuild and the DESCRIPTION.

2.2.6 comes from Fedora, whereas 2003* is from the SF.net pam_krb5 project.

They share the same name, but 2.2.6 works properly with OpenAFS and OpenSSH where 2003* does not.  The pam-2003* series also does strange things like depending on kth-krb if the &quot;afs&quot; USE flag is set.  Please keyword this package.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kyron@neuralbs.com</who>
            <bug_when>2006-09-19 19:58:44 0000</bug_when>
            <thetext>I second that motion. I am using 2.2.6 on a production server and I am going through hell unmasking / keywording it correctly due to misversionning.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>major@ocgnet.org</who>
            <bug_when>2006-10-30 18:26:56 0000</bug_when>
            <thetext>(In reply to comment #2)

&gt; They share the same name, but 2.2.6 works properly with OpenAFS and OpenSSH
&gt; where 2003* does not.  The pam-2003* series also does strange things like
&gt; depending on kth-krb if the &quot;afs&quot; USE flag is set.  Please keyword this
&gt; package.

Yah, 2003* does indeed put a dependancy on kth-krb, but unfortunately claims that pam_krb5-2.2.6 work with everything out of the box are slightly exagerated. 
 
2.2.6 attempts to validate allowed logins by reading the .k5login.  This is cute and all, but it apparently attempts to do this before aquiring the AFS PAG even though the authentication succeeds.  Unless all logins make $HOME system:anyuser readable, then pam_krb5-2.2.6 fails the login due to recieving a permission denied error when attempting to open ${HOME}/.k5login.  Making ${HOME} paths system:anyuser globally readable in order to make pam_krb5-2.2.6 function is quite frankly &quot;not a valid solution&quot;.  Particuarly since AFS directory acl&apos;s are inherited from the parent directory.  Every new directory created under ${HOME} would be created with system:anyuser read permission.

The claim that pam_krb5-2003* does not work with OpenSSH is also exagerated.  It works correctly so long as OpenSSH is capable of handing off the credential data correctly.  This gets into a bit of a religious war that has been going on between OpenSSH and pam for quite a while.  OpenSSH can&apos;t pass the credentials unless compiled with pthread support, but they have gone out of their way to make enabling pthread support difficult because people want to enable it thinking it improves performance, and for some reason OpenSSH isn&apos;t content to let people live with their own opinions and decisions.

pam_krb5-2003* does not have this problem.  Unfortunately, kth-krb is a dead project and not all of the pieces are in place to remove it from the systems yet.  Such as this pam issue.  The only problem with pam_krb5-2003* that I know of is the dependancy on the kth-krb package.  The OpenAFS and OpenSSH claims are both ficticious, and misleading.

Lastly, as noted, pam_krb5-2.2.6 does not work with OpenAFS unless one changes local security policies in order to allow it to read ${HOME}/.k5login on AFS, and there is no way to disable this check w/out disabling local account validation completely.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>major@ocgnet.org</who>
            <bug_when>2006-10-30 19:01:30 0000</bug_when>
            <thetext>(In reply to comment #4)
&gt; 2.2.6 attempts to validate allowed logins by reading the .k5login.  This is
&gt; cute and all, but it apparently attempts to do this before aquiring the AFS PAG
&gt; even though the authentication succeeds.  Unless all logins make $HOME
&gt; system:anyuser readable, then pam_krb5-2.2.6 fails the login due to recieving a
&gt; permission denied error when attempting to open ${HOME}/.k5login.  Making
&gt; ${HOME} paths system:anyuser globally readable in order to make pam_krb5-2.2.6
&gt; function is quite frankly &quot;not a valid solution&quot;.  Particuarly since AFS
&gt; directory acl&apos;s are inherited from the parent directory.  Every new directory
&gt; created under ${HOME} would be created with system:anyuser read permission.

I retract this statement.  It seems that the pam_krb5-2.2.6 requires the &quot;token&quot; argument in more sections then pam_krb5-2003* did.  I now have pam_krb5-2.2.6 requesting tokens in the auth, password, and session events, as well as needing use_shmem=sshd in the auth and session events to get around openssh&apos;s inability to hand off credientials between these stages of authentication.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>btrzcins@vt.edu</who>
            <bug_when>2007-01-04 21:42:15 0000</bug_when>
            <thetext>I have just been going through intense torture with the other two pam_krb5&apos;s and AFS with Heimdal, and after reading this bug I unmasked 2.2.6 and tried it, and it&apos;s been working perfectly in a production environment. This absolutely should go in ~arch.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>volkmar.glauche@uniklinik-freiburg.de</who>
            <bug_when>2007-01-10 09:39:47 0000</bug_when>
            <thetext>(In reply to comment #5)
&gt; (In reply to comment #4)
&gt; &gt; 2.2.6 attempts to validate allowed logins by reading the .k5login.  This is

I have seen this behaviour, too, but it seems to be due to stale krb5cc_* files left after an unclean logout (e.g. user logged out by system reboot).
Otherwise, this module is working just fine on amd64. Please unmask this package.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2007-05-08 18:02:55 0000</bug_when>
            <thetext>*** Bug 146449 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>arno@jyu.fi</who>
            <bug_when>2007-05-08 18:08:52 0000</bug_when>
            <thetext>It still does not work:

as75|21:06|1|&gt;ssh shetach.chem.jyu.fi
Password: 
Last login: Wed May  9 00:04:58 2007 from as75.adsl.tnnet.fi
arno@shetach ~ $ klist
klist: No credentials cache found (ticket cache FILE:/tmp/krb5cc_45132)

arno@shetach ~ $ kinit
Password for arno@CC.JYU.FI: 
arno@shetach ~ $ klist
Ticket cache: FILE:/tmp/krb5cc_45132
Default principal: arno@CC.JYU.FI

Valid starting     Expires            Service principal
05/08/07 21:07:02  05/09/07 07:07:02  krbtgt/CC.JYU.FI@CC.JYU.FI
        renew until 05/08/07 21:07:02
arno@shetach ~ $ 
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>BryanRJ@gmail.com</who>
            <bug_when>2007-05-08 18:15:25 0000</bug_when>
            <thetext>(In reply to comment #9)
&gt; It still does not work:

There are many things that can prevent the OpenSSH/krb5 combo from working.  What I currently use is pam_krb5-3.5 from eyrie.org (attached).  Its only problem is that it provides no AFS support; when coupled with pam-afs-session, this isn&apos;t an issue.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>BryanRJ@gmail.com</who>
            <bug_when>2007-05-08 18:16:08 0000</bug_when>
            <thetext>Created an attachment (id=118608)
pam_krb5-3.5.ebuild

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2008-02-26 10:50:13 0000</bug_when>
            <thetext>Use 3.9; closing this.
</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>118608</attachid>
            <date>2007-05-08 18:16 0000</date>
            <desc>pam_krb5-3.5.ebuild</desc>
            <filename>pam_krb5-3.5.ebuild</filename>
            <type>text/plain</type>
            <data encoding="base64">IyBDb3B5cmlnaHQgMTk5OS0yMDA3IEdlbnRvbyBGb3VuZGF0aW9uCiMgRGlzdHJpYnV0ZWQgdW5k
ZXIgdGhlIHRlcm1zIG9mIHRoZSBHTlUgR2VuZXJhbCBQdWJsaWMgTGljZW5zZSB2MgojICRIZWFk
ZXI6ICQKCmluaGVyaXQgbXVsdGlsaWIgZXV0aWxzCgpERVNDUklQVElPTj0icGFtX2tyYjUgTW9k
dWxlIGZyb20gZXlyaWUub3JnIgpIT01FUEFHRT0iaHR0cDovL3d3dy5leXJpZS5vcmcvfmVhZ2xl
L3NvZnR3YXJlL3BhbS1rcmI1LyIKU1JDX1VSST0iaHR0cDovL2FyY2hpdmVzLmV5cmllLm9yZy9z
b2Z0d2FyZS9rZXJiZXJvcy9wYW0ta3JiNS0ke1BWfS50YXIuZ3oiCgpMSUNFTlNFPSJhcy1pcyIK
U0xPVD0iMCIKS0VZV09SRFM9In5hbWQ2NCB+eDg2IgpJVVNFPSIiCgpERVBFTkQ9InZpcnR1YWwv
a3JiNSIKUkRFUEVORD0iJHtERVBFTkR9IgoKc3JjX2NvbXBpbGUoKSB7CgljZCB3b3JrCgltdiBw
YW0ta3JiNS0ke1BWfSAke1B9CgljZCAke1N9CgllY29uZiAtLWxpYmRpcj0vJChnZXRfbGliZGly
KSB8fCBkaWUKCWVtYWtlIHx8IGRpZQp9CgpzcmNfaW5zdGFsbCgpIHsKCWV4ZWludG8gLyQoZ2V0
X2xpYmRpcikvc2VjdXJpdHkKCWRvZXhlIHBhbV9rcmI1LnNvCglkb21hbiBwYW1fa3JiNS41Cglk
b2RvYyBDSEFOR0VTIENPUFlSSUdIVCBORVdTIFJFQURNRSBUT0RPCn0K
</data>        

          </attachment>
    </bug>

</bugzilla>