xref: /src/contrib/pam-krb5/tests/data/scripts/password/basic-debug (revision bf6873c5786e333d679a7838d28812febf479a8a)
124f0b4caSCy Schubert# Test password change with prompting and debug.  -*- conf -*-
224f0b4caSCy Schubert#
324f0b4caSCy Schubert# Written by Russ Allbery <eagle@eyrie.org>
424f0b4caSCy Schubert# Copyright 2014, 2020 Russ Allbery <eagle@eyrie.org>
524f0b4caSCy Schubert# Copyright 2010-2011
624f0b4caSCy Schubert#     The Board of Trustees of the Leland Stanford Junior University
724f0b4caSCy Schubert#
824f0b4caSCy Schubert# SPDX-License-Identifier: BSD-3-clause or GPL-1+
924f0b4caSCy Schubert
1024f0b4caSCy Schubert[options]
1124f0b4caSCy Schubert    password = debug
1224f0b4caSCy Schubert
1324f0b4caSCy Schubert[run]
1424f0b4caSCy Schubert    chauthtok(PRELIM_CHECK)   = PAM_SUCCESS
1524f0b4caSCy Schubert    chauthtok(UPDATE_AUTHTOK) = PAM_SUCCESS
1624f0b4caSCy Schubert
1724f0b4caSCy Schubert[prompts]
1824f0b4caSCy Schubert    echo_off = Current Kerberos password: |%p
1924f0b4caSCy Schubert    echo_off = Enter new Kerberos password: |%n
2024f0b4caSCy Schubert    echo_off = Retype new Kerberos password: |%n
2124f0b4caSCy Schubert
2224f0b4caSCy Schubert[output]
2324f0b4caSCy Schubert    DEBUG pam_sm_chauthtok: entry (prelim)
2424f0b4caSCy Schubert    DEBUG (user %u) attempting authentication as %0 for kadmin/changepw
2524f0b4caSCy Schubert    DEBUG pam_sm_chauthtok: exit (success)
2624f0b4caSCy Schubert    DEBUG pam_sm_chauthtok: entry (update)
2724f0b4caSCy Schubert    INFO user %u changed Kerberos password
2824f0b4caSCy Schubert    DEBUG pam_sm_chauthtok: exit (success)
29