Activity log for bug #799605

Date Who What changed Old value New value Message
2011-06-20 06:00:59 Nick Piggott bug added bug
2011-06-20 06:02:37 Nick Piggott description Running Ubuntu 11.04 on a Dell Mini 1018 Netbook On a system running LDAP, Kerberos and Cached Credentials, pam-auth-update creates a 'common-account' file that will always fail if the machine uses cached credentials (presumably because it's offline). The relevant lines from the common-account file: # here are the per-package modules (the "Primary" block) account [success=1 new_authtok_reqd=done default=ignore] pam_unix.so # here's the fallback if no module succeeds account requisite pam_deny.so # 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 code # since the modules above will each just jump around account required pam_permit.so # and here are more per-package modules (the "Additional" block) account required pam_krb5.so minimum_uid=1000 account [success=ok new_authtok_reqd=done ignore=ignore user_unknown=ignore authinfo_unavail=ignore default=bad] pam_ldap.so minimum_uid=1000 # end of pam-auth-update config This will always fail if the machine is off-line, because pam_unix.so will fail and cause the module to end with the next line which makes pam_deny.so a requisite. As a patch, I have commented out all of common-account, but this is unsatisfactory. Two solutions could be proposed: * Write a common-account file that will pass if all the component modules fail due to the user or the service being absent. That is - only fail if it is explicitly required to fail, rather than failing if pam_unix.so fails because the user is in ldap or cached. * Implement a (dummy?) "account" method in pam_ccreds and add that into the relevant profile for cached credentials in pam_auth_update Running Ubuntu 11.04 on a Dell Mini 1018 Netbook On a system running LDAP, Kerberos and Cached Credentials, pam-auth-update creates a 'common-account' file that will always fail if the machine uses cached credentials (presumably because it's offline). The relevant lines from the common-account file: # here are the per-package modules (the "Primary" block) account [success=1 new_authtok_reqd=done default=ignore] pam_unix.so # here's the fallback if no module succeeds account requisite pam_deny.so # 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 code # since the modules above will each just jump around account required pam_permit.so # and here are more per-package modules (the "Additional" block) account required pam_krb5.so minimum_uid=1000 account [success=ok new_authtok_reqd=done ignore=ignore user_unknown=ignore authinfo_unavail=ignore default=bad] pam_ldap.so minimum_uid=1000 # end of pam-auth-update config This will always fail if the machine is off-line, because pam_unix.so will fail and cause the module to end with the next line which makes pam_deny.so a requisite. As a patch, I have commented out all of common-account except the line requiring pam_permit.so, but this is unsatisfactory. Two solutions could be proposed: * Write a common-account file that will pass if all the component modules fail due to the user or the service being absent. That is - only fail if it is explicitly required to fail, rather than failing if pam_unix.so fails because the user is in ldap or cached. * Implement a (dummy?) "account" method in pam_ccreds and add that into the relevant profile for cached credentials in pam_auth_update
2011-06-20 16:16:58 Steve Langasek affects pam (Ubuntu) libpam-ccreds (Ubuntu)
2011-06-20 16:16:58 Steve Langasek libpam-ccreds (Ubuntu): status New Incomplete
2011-06-20 16:17:07 Steve Langasek libpam-ccreds (Ubuntu): status Incomplete New
2011-11-08 18:52:05 Launchpad Janitor libpam-ccreds (Ubuntu): status New Confirmed
2011-11-08 18:52:16 sun bug added subscriber sun
2012-07-24 13:32:27 uwe bug added subscriber uwe
2012-09-06 05:19:43 Chris Teachworth bug added subscriber Chris Teachworth
2012-12-05 14:27:27 yahia reda abdulqawi attachment added ldap-with-ccreds https://bugs.launchpad.net/ubuntu/+source/libpam-ccreds/+bug/799605/+attachment/3452252/+files/ldap-with-ccreds
2013-08-15 03:10:34 uwe attachment added ldap-with-ccreds https://bugs.launchpad.net/ubuntu/+source/libpam-ccreds/+bug/799605/+attachment/3773162/+files/ldap-with-ccreds
2018-02-05 23:03:33 Reinhard Mayr bug added subscriber Reinhard Mayr