Comment 5 for bug 799605

Nick Piggott (nick-piggott) wrote :

I've subsequently implemented a slightly more elegant solution:

# here are the per-package modules (the "Primary" block)
account [success=2 new_authtok_reqd=done default=ignore]
account [success=1 default=ignore]
# here's the fallback if no module succeeds
account requisite
# 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
# and here are more per-package modules (the "Additional" block)
# end of pam-auth-update config

This works. There are more useful options in the module, but I can't get them to behave properly and I am not a PAM guru. I'm a bit fed up of locking myself out of my own system.

pam-auth-update needs an update.