1# Test alternative authentication principal with debug logging. -*- conf -*- 2# 3# Written by Russ Allbery <eagle@eyrie.org> 4# Copyright 2014, 2020 Russ Allbery <eagle@eyrie.org> 5# Copyright 2010-2011 6# The Board of Trustees of the Leland Stanford Junior University 7# 8# SPDX-License-Identifier: BSD-3-clause or GPL-1+ 9 10[options] 11 auth = alt_auth_map=%%s/unknown-user no_ccache debug 12 account = alt_auth_map=%%s/unknown-user no_ccache debug 13 session = no_ccache debug 14 15[run] 16 authenticate = PAM_SUCCESS 17 acct_mgmt = PAM_SUCCESS 18 open_session = PAM_SUCCESS 19 close_session = PAM_SUCCESS 20 21[prompts] 22 echo_off = Password: |%p 23 24[output] 25 DEBUG pam_sm_authenticate: entry 26 DEBUG (user %u) mapping %u to %0/unknown-user@%2 27 DEBUG /^\(user %u\) alternate authentication failed: / 28 DEBUG (user %u) attempting authentication as %u 29 DEBUG (user %u) mapped user %0/unknown-user@%2 does not match principal %u 30 INFO user %u authenticated as %u 31 DEBUG pam_sm_authenticate: exit (success) 32 DEBUG pam_sm_acct_mgmt: entry 33 DEBUG (user %u) mapped user %0/unknown-user@%2 does not match principal %u 34 DEBUG pam_sm_acct_mgmt: exit (success) 35 DEBUG pam_sm_open_session: entry 36 DEBUG pam_sm_open_session: exit (success) 37 DEBUG pam_sm_close_session: entry 38 DEBUG pam_sm_close_session: exit (success) 39