[OpenAFS] 1.6.20 pam_afs_session bug ?

Andreas Ladanyi andreas.ladanyi@kit.edu
Fri, 31 Mar 2017 10:14:47 +0200


This is a cryptographically signed message in MIME format.

--------------ms090509000408000604000004
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

Hi Dave,
> What does your pam config file for the screensaver look like?
the gnome-screensaver pam config file:

@include common-auth
auth optional pam_gnome_keyring.so

common-auth config file:

auth    [success=3D3 default=3Dignore]      pam_krb5.so minimum_uid=3D100=
0
auth    [success=3D2 default=3Dignore]      pam_unix.so nullok_secure
try_first_pass
auth    [success=3D1 default=3Dignore]      pam_sss.so use_first_pass
# here's the fallback if no module succeeds
auth    requisite                       pam_deny.so debug
# prime the stack with a positive return value if there isn't one already=
;
# this avoids us returning an error just because nothing sets a success c=
ode
# since the modules above will each just jump around
auth    required                        pam_permit.so
# and here are more per-package modules (the "Additional" block)
auth    optional                        pam_afs_session.so
auth    optional                        pam_cap.so
# end of pam-auth-update config


pam_afs_session is configured as optional and without always_aklog ...

On Ubuntu 16.04 , AFS 1.6.20 from ppa, kernel 4.4, it is fine. Same pam
config like in this post for ubuntu 16.10.



>
> On Thu, Mar 30, 2017 at 03:53:24PM +0200, Andreas Ladanyi wrote:
>> Hi guys,
>>
>> i tested:
>>
>> Ubuntu 16.10, Gnome, Kernel 4.8
>>
>> current OpenAFS 1.6.20 from ppa.
>>
>> After relogin from screensaver dialog the kerberos tgt and afs service=

>> ticket are renewed but the afs token isnt renewed. There is no
>> "always_aklog" flag at pam_afs_session.so line in pam common-auth file=
=2E
>>
>> If i try this relogin procedure with OpenAFS 1.6.18 from the distri re=
po
>> the afs token is also renewed.
>>
>>
>> regards,
>>
>> Andreas
>>
>>
>
>




--------------ms090509000408000604000004
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkg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