[OpenAFS] Obtaining tokens at login on Ubuntu 18.04

Prasad K. Dharmasena pkd@umd.edu
Fri, 17 Aug 2018 20:44:36 -0400


--000000000000a76a240573aafc66
Content-Type: text/plain; charset="UTF-8"

Thanks for the pointer.  I did 'dpkg -r dbus-user-session' and rebooted.
Now 'pam-afs-session' does the right thing and obtains a token.

However, @poettering points out in the systemd/issues/7261 thread,

Are there any downsides?
>
> Yes, many. You turned off user service management entirely. Hence
> "systemctl --user" and all that stuff won't work anymore.




On Fri, Aug 17, 2018 at 6:25 AM Andreas Ladanyi <andreas.ladanyi@kit.edu>
wrote:

> Hi,
>
> try to remove the dbus-user-session package and look if it works.
>
> Have a look at https://github.com/systemd/systemd/issues/7261
>
> regards,
>
> Andy
>
> Am 17.08.2018 um 02:41 schrieb Prasad K. Dharmasena:
>
> I've installed OpenAFS and pam-afs-session on Ubuntu 18.04 (bionic) via
> (a) vendor supplied packages, and (b) building from source (1.6.22.3).  On
> both machines, logging in via gdm doesn't get me a token.  SSH in, however,
> does obtain a token.  For both gdm and ssh logins, the auth.log shows the
> following:
>
> pam_afs_session(gdm-password:session): PAG apparently lost, recreating
> pam_afs_session(sshd:session): PAG apparently lost, recreating
>
> Has anyone else seen this on Ubuntu 18.04?  (I've had this working for a
> while now on Ubuntu 16.04 -- building from 1.6.20+ source with
> pam-afs-session 2.6.)
>
> Thanks.
>
>
> -pkd
>
>
>

--000000000000a76a240573aafc66
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Thanks for the pointer.=C2=A0 I did &#39;dpkg -r dbus-user=
-session&#39; and rebooted.=C2=A0 Now &#39;pam-afs-session&#39; does the ri=
ght thing and obtains a token.=C2=A0<div><br></div><div>However,=C2=A0@poet=
tering points out in the systemd/issues/7261 thread,</div><div><br></div><d=
iv><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;bord=
er-left:1px solid rgb(204,204,204);padding-left:1ex"><blockquote class=3D"g=
mail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204=
,204,204);padding-left:1ex">Are there any downsides?</blockquote>Yes, many.=
 You turned off user service management entirely. Hence &quot;systemctl --u=
ser&quot; and all that stuff won&#39;t work anymore.</blockquote></div><div=
><br></div><div><br></div></div><br><div class=3D"gmail_quote"><div dir=3D"=
ltr">On Fri, Aug 17, 2018 at 6:25 AM Andreas Ladanyi &lt;<a href=3D"mailto:=
andreas.ladanyi@kit.edu">andreas.ladanyi@kit.edu</a>&gt; wrote:<br></div><b=
lockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px =
#ccc solid;padding-left:1ex">
 =20
   =20
 =20
  <div text=3D"#000000" bgcolor=3D"#FFFFFF">
    <p>Hi,<br>
    </p>
    <p>try to remove the dbus-user-session package and look if it works.<br=
>
    </p>
    <p>Have a look at <a class=3D"m_248744422962824272moz-txt-link-freetext=
" href=3D"https://github.com/systemd/systemd/issues/7261" target=3D"_blank"=
>https://github.com/systemd/systemd/issues/7261</a></p>
    <p>regards,<br>
    </p>
    <p>Andy<br>
    </p>
    <br>
    <div class=3D"m_248744422962824272moz-cite-prefix">Am 17.08.2018 um 02:=
41 schrieb Prasad
      K. Dharmasena:<br>
    </div>
    <blockquote type=3D"cite">
      <div dir=3D"ltr">I&#39;ve installed OpenAFS and pam-afs-session on
        Ubuntu 18.04 (bionic) via (a) vendor supplied packages, and (b)
        building from source (1.6.22.3).=C2=A0 On both machines, logging in
        via gdm doesn&#39;t get me a token.=C2=A0 SSH in, however, does obt=
ain a
        token.=C2=A0 For both gdm and ssh logins, the auth.log shows the
        following:
        <div><br>
        </div>
        <div>pam_afs_session(gdm-password:session): PAG apparently lost,
          recreating</div>
        <div>
          <div>pam_afs_session(sshd:session): PAG apparently lost,
            recreating</div>
          <br class=3D"m_248744422962824272gmail-Apple-interchange-newline"=
>
        </div>
        <div>Has anyone else seen this on Ubuntu 18.04?=C2=A0 (I&#39;ve had=
 this
          working for a while now on Ubuntu 16.04 -- building from
          1.6.20+ source with pam-afs-session 2.6.)</div>
        <div><br>
        </div>
        <div>Thanks.</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>-pkd</div>
        <div><br>
        </div>
      </div>
    </blockquote>
    <br>
  </div>

</blockquote></div>

--000000000000a76a240573aafc66--