2 * Automatically generated -- do not edit!
4 * This file was automatically generated from the original JSON source file
5 * for the use in C test programs. To make changes, modify the original
6 * JSON source or (more rarely) the make-c-data script and run it again.
8 * Written by Russ Allbery <eagle@eyrie.org>
9 * Copyright 2020 Russ Allbery <eagle@eyrie.org>
11 * The Board of Trustees of the Leland Stanford Junior University
13 * SPDX-License-Identifier: MIT
16 #include <tests/data/passwords/tests.h>
18 extern const struct password_test principal_tests[];
19 const struct password_test principal_tests[] = {
23 "someuser@EXAMPLE.ORG",
26 "Password based on username or principal",
31 "based on principal (reversed)",
32 "someuser@EXAMPLE.ORG",
35 "Password based on username or principal",
40 "based on principal with digits",
41 "someuser@EXAMPLE.ORG",
44 "Password based on username or principal",
53 "Password based on username or principal",
58 "principal with leading digits",
59 "someuser@EXAMPLE.ORG",
62 "Password based on username or principal",
67 "principal with leading and trailing digits",
68 "someuser@EXAMPLE.ORG",
71 "Password based on username or principal",
76 "is realm (lowercase)",
77 "someuser@NEWEXAMPLE.ORG",
80 "Password based on username or principal",
85 "is realm (lowercase) with digits",
86 "someuser@NEWEXAMPLE.ORG",
89 "Password based on username or principal",
94 "is realm (lowercase) with leading digits",
95 "someuser@NEWEXAMPLE.ORG",
98 "Password based on username or principal",
104 "someuser@NEWEXAMPLE.ORG",
106 KADM5_PASS_Q_GENERIC,
107 "Password based on username or principal",
112 "is second realm with digits",
113 "someuser@NEWEXAMPLE.ORG",
115 KADM5_PASS_Q_GENERIC,
116 "Password based on username or principal",
121 "is whole realm (mixed case)",
122 "someuser@NEWEXAMPLE.ORG",
124 KADM5_PASS_Q_GENERIC,
125 "Password based on username or principal",