]> eyrie.org Git - kerberos/krb5-strength.git/blob - tests/data/passwords/principal.c
New upstream version 3.2
[kerberos/krb5-strength.git] / tests / data / passwords / principal.c
1 /*
2  * Automatically generated -- do not edit!
3  *
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.
7  *
8  * Written by Russ Allbery <eagle@eyrie.org>
9  * Copyright 2020 Russ Allbery <eagle@eyrie.org>
10  * Copyright 2013
11  *     The Board of Trustees of the Leland Stanford Junior University
12  *
13  * SPDX-License-Identifier: MIT
14  */
15
16 #include <tests/data/passwords/tests.h>
17
18 extern const struct password_test principal_tests[];
19 const struct password_test principal_tests[] = {
20     {
21
22         "based on principal",
23         "someuser@EXAMPLE.ORG",
24         "someuser",
25         KADM5_PASS_Q_GENERIC,
26         "Password based on username or principal",
27         0,
28     },
29     {
30
31         "based on principal (reversed)",
32         "someuser@EXAMPLE.ORG",
33         "resuemos",
34         KADM5_PASS_Q_GENERIC,
35         "Password based on username or principal",
36         0,
37     },
38     {
39
40         "based on principal with digits",
41         "someuser@EXAMPLE.ORG",
42         "someuser123",
43         KADM5_PASS_Q_GENERIC,
44         "Password based on username or principal",
45         0,
46     },
47     {
48
49         "is full principal",
50         "test@EXAMPLE.ORG",
51         "test@EXAMPLE.ORG",
52         KADM5_PASS_Q_GENERIC,
53         "Password based on username or principal",
54         0,
55     },
56     {
57
58         "principal with leading digits",
59         "someuser@EXAMPLE.ORG",
60         "123someuser",
61         KADM5_PASS_Q_GENERIC,
62         "Password based on username or principal",
63         0,
64     },
65     {
66
67         "principal with leading and trailing digits",
68         "someuser@EXAMPLE.ORG",
69         "1someuser2",
70         KADM5_PASS_Q_GENERIC,
71         "Password based on username or principal",
72         0,
73     },
74     {
75
76         "is realm (lowercase)",
77         "someuser@NEWEXAMPLE.ORG",
78         "newexample",
79         KADM5_PASS_Q_GENERIC,
80         "Password based on username or principal",
81         0,
82     },
83     {
84
85         "is realm (lowercase) with digits",
86         "someuser@NEWEXAMPLE.ORG",
87         "newexample123",
88         KADM5_PASS_Q_GENERIC,
89         "Password based on username or principal",
90         0,
91     },
92     {
93
94         "is realm (lowercase) with leading digits",
95         "someuser@NEWEXAMPLE.ORG",
96         "123newexample",
97         KADM5_PASS_Q_GENERIC,
98         "Password based on username or principal",
99         0,
100     },
101     {
102
103         "is realm reversed",
104         "someuser@NEWEXAMPLE.ORG",
105         "ELPMAXEWEN",
106         KADM5_PASS_Q_GENERIC,
107         "Password based on username or principal",
108         0,
109     },
110     {
111
112         "is second realm with digits",
113         "someuser@NEWEXAMPLE.ORG",
114         "ORG1791520",
115         KADM5_PASS_Q_GENERIC,
116         "Password based on username or principal",
117         0,
118     },
119     {
120
121         "is whole realm (mixed case)",
122         "someuser@NEWEXAMPLE.ORG",
123         "NewExample.Org",
124         KADM5_PASS_Q_GENERIC,
125         "Password based on username or principal",
126         0,
127     },
128 };