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