chaps: Downgrade excessive logs

Respect the PAM_SILENT flag, and downgrade logs that occur in
normal situations.  In particular, PAM sessions can be opened
without a prior call to authenticate, leading to the user name
being unavailable.

BUG=None
TEST=Chaps unit tests (with ASAN) plus PKCS11 tests

Change-Id: Id617d091f34ef61dd454599dd61315f02f2cbbea
Reviewed-on: https://chromium-review.googlesource.com/221933
Reviewed-by: Darren Krahn <dkrahn@chromium.org>
Commit-Queue: David Drysdale <drysdale@google.com>
Tested-by: David Drysdale <drysdale@google.com>
4 files changed