xref: /freebsd/contrib/pam-krb5/tests/data/scripts/realm/fail-user-realm (revision bf6873c5786e333d679a7838d28812febf479a8a)
1*bf6873c5SCy Schubert# Test authentication failure with different user_realm.  -*- conf -*-
2*bf6873c5SCy Schubert#
3*bf6873c5SCy Schubert# Written by Russ Allbery <eagle@eyrie.org>
4*bf6873c5SCy Schubert# Copyright 2014, 2020 Russ Allbery <eagle@eyrie.org>
5*bf6873c5SCy Schubert# Copyright 2010-2011
6*bf6873c5SCy Schubert#     The Board of Trustees of the Leland Stanford Junior University
7*bf6873c5SCy Schubert#
8*bf6873c5SCy Schubert# SPDX-License-Identifier: BSD-3-clause or GPL-1+
9*bf6873c5SCy Schubert
10*bf6873c5SCy Schubert[options]
11*bf6873c5SCy Schubert    auth = force_first_pass no_ccache user_realm=%0
12*bf6873c5SCy Schubert
13*bf6873c5SCy Schubert[run]
14*bf6873c5SCy Schubert    authenticate = PAM_AUTH_ERR
15*bf6873c5SCy Schubert
16*bf6873c5SCy Schubert[output]
17*bf6873c5SCy Schubert    ERR /^\(user %u\) cannot convert principal to user: /
18*bf6873c5SCy Schubert    NOTICE failed authorization check; logname=%u uid=%i euid=%i tty= ruser= rhost=
19