xref: /freebsd/contrib/pam-krb5/tests/data/scripts/password/too-long-debug (revision bf6873c5786e333d679a7838d28812febf479a8a)
1*bf6873c5SCy Schubert# Test password change to an excessively long password.  -*- conf -*-
2*bf6873c5SCy Schubert#
3*bf6873c5SCy Schubert# Copyright 2020 Russ Allbery <eagle@eyrie.org>
4*bf6873c5SCy Schubert#
5*bf6873c5SCy Schubert# SPDX-License-Identifier: BSD-3-clause or GPL-1+
6*bf6873c5SCy Schubert
7*bf6873c5SCy Schubert[options]
8*bf6873c5SCy Schubert    password = debug
9*bf6873c5SCy Schubert
10*bf6873c5SCy Schubert[run]
11*bf6873c5SCy Schubert    chauthtok(PRELIM_CHECK)   = PAM_SUCCESS
12*bf6873c5SCy Schubert    chauthtok(UPDATE_AUTHTOK) = PAM_AUTHTOK_ERR
13*bf6873c5SCy Schubert
14*bf6873c5SCy Schubert[prompts]
15*bf6873c5SCy Schubert    echo_off = Current Kerberos password: |%p
16*bf6873c5SCy Schubert    echo_off = Enter new Kerberos password: |%n
17*bf6873c5SCy Schubert
18*bf6873c5SCy Schubert[output]
19*bf6873c5SCy Schubert    DEBUG pam_sm_chauthtok: entry (prelim)
20*bf6873c5SCy Schubert    DEBUG (user %u) attempting authentication as %0 for kadmin/changepw
21*bf6873c5SCy Schubert    DEBUG pam_sm_chauthtok: exit (success)
22*bf6873c5SCy Schubert    DEBUG pam_sm_chauthtok: entry (update)
23*bf6873c5SCy Schubert    DEBUG /^\(user %u\) rejecting password longer than [0-9]+$/
24*bf6873c5SCy Schubert    DEBUG pam_sm_chauthtok: exit (failure)
25