* be done without having Kerberos configured and a username and password
* available.
*
- * Copyright 2020 Russ Allbery <eagle@eyrie.org>
+ * Copyright 2020, 2022 Russ Allbery <eagle@eyrie.org>
*
* SPDX-License-Identifier: BSD-3-clause or GPL-1+
*/
#include <tests/fakepam/script.h>
#include <tests/tap/basic.h>
+#include <tests/tap/kerberos.h>
int
plan_lazy();
+ /*
+ * Generate a testing krb5.conf file with a nonexistent default realm so
+ * that this test will run on any system.
+ */
+ kerberos_generate_conf("bogus.example.com");
+
memset(&config, 0, sizeof(config));
config.user = "test";
* simple and just checks that the file is created.
*
* Written by Russ Allbery <eagle@eyrie.org>
- * Copyright 2020 Russ Allbery <eagle@eyrie.org>
+ * Copyright 2020, 2022 Russ Allbery <eagle@eyrie.org>
* Copyright 2012
* The Board of Trustees of the Leland Stanford Junior University
*
#include <tests/fakepam/script.h>
#include <tests/tap/basic.h>
+#include <tests/tap/kerberos.h>
#include <tests/tap/string.h>
plan_lazy();
+ /*
+ * Generate a testing krb5.conf file with a nonexistent default realm so
+ * that this test will run on any system.
+ */
+ kerberos_generate_conf("bogus.example.com");
+
memset(&config, 0, sizeof(config));
config.user = "testuser";
tmpdir = test_tmpdir();