1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
|
-- $Id$
SETCHGPW2 DEFINITIONS ::=
BEGIN
IMPORTS PrincipalName, Realm, ENCTYPE FROM krb5;
ProtocolErrorCode ::= ENUMERATED {
generic-error(0),
unsupported-major-version(1),
unsupported-minor-version(2),
unsupported-operation(3),
authorization-failed(4),
initial-ticket-required(5),
target-principal-unknown(6),
...
}
Key ::= SEQUENCE {
enc-type[0] INTEGER,
key[1] OCTET STRING,
...
}
Language-Tag ::= UTF8String -- Constrained by RFC3066
LangTaggedText ::= SEQUENCE {
language[0] Language-Tag OPTIONAL,
text[1] UTF8String,
...
}
-- NULL Op
Req-null ::= NULL
Rep-null ::= NULL
Err-null ::= NULL
-- Change password
Req-change-pw ::= SEQUENCE {
old-pw[0] UTF8String,
new-pw[1] UTF8String OPTIONAL,
etypes[2] SEQUENCE OF ENCTYPE OPTIONAL,
...
}
Rep-change-pw ::= SEQUENCE {
info-text[0] UTF8String OPTIONAL,
new-pw[1] UTF8String OPTIONAL,
etypes[2] SEQUENCE OF ENCTYPE OPTIONAL
}
Err-change-pw ::= SEQUENCE {
help-text[0] UTF8String OPTIONAL,
code[1] ENUMERATED {
generic(0),
wont-generate-new-pw(1),
old-pw-incorrect(2),
new-pw-rejected-geneneric(3),
pw-change-too-short(4),
...
},
suggested-new-pw[2] UTF8String OPTIONAL,
...
}
-- Change/Set keys
Req-set-keys ::= SEQUENCE {
etypes[0] SEQUENCE OF ENCTYPE,
entropy[1] OCTET STRING,
...
}
Rep-set-keys ::= SEQUENCE {
info-text[0] UTF8String OPTIONAL,
kvno[1] INTEGER,
keys[2] SEQUENCE OF Key,
aliases[3] SEQUENCE OF SEQUENCE {
name[0] PrincipalName,
realm[1] Realm OPTIONAL,
...
},
...
}
Err-set-keys ::= SEQUENCE {
help-text[0] UTF8String OPTIONAL,
enctypes[1] SEQUENCE OF ENCTYPE OPTIONAL,
code[1] ENUMERATED {
etype-no-support(0),
...
},
...
}
-- Get password policy
Req-get-pw-policy ::= NULL
Rep-get-pw-policy ::= SEQUENCE {
help-text[0] UTF8String OPTIONAL,
policy-name[1] UTF8String OPTIONAL,
description[2] UTF8String OPTIONAL,
...
}
Err-get-pw-policy ::= NULL
-- Get principal aliases
Req-get-princ-aliases ::= NULL
Rep-get-princ-aliases ::= SEQUENCE {
help-text[0] UTF8String OPTIONAL,
aliases[1] SEQUENCE OF SEQUENCE {
name[0] PrincipalName,
realm[1] Realm OPTIONAL,
...
} OPTIONAL,
...
}
Err-get-princ-aliases ::= NULL
-- Get list of encryption types supported by KDC for new types
Req-get-supported-etypes ::= NULL
Rep-get-supported-etypes ::= SEQUENCE OF ENCTYPE
Err-get-supported-etypes ::= NULL
-- Choice switch
Op-req ::= CHOICE {
null[0] Req-null,
change-pw[1] Req-change-pw,
set-keys[2] Req-set-keys,
get-pw-policy[3] Req-get-pw-policy,
get-princ-aliases[4] Req-get-princ-aliases,
get-supported-etypes[5] Req-get-supported-etypes,
...
}
Op-rep ::= CHOICE {
null[0] Rep-null,
change-pw[1] Rep-change-pw,
set-keys[2] Rep-set-keys,
get-pw-policy[3] Rep-get-pw-policy,
get-princ-aliases[4] Rep-get-princ-aliases,
get-supported-etypes[5] Rep-get-supported-etypes,
...
}
Op-error ::= CHOICE {
null[0] Err-null,
change-pw[1] Err-change-pw,
set-keys[2] Err-set-keys,
get-pw-policy[3] Err-get-pw-policy,
get-princ-aliases[4] Err-get-princ-aliases,
get-supported-etypes[5] Err-get-supported-etypes,
...
}
Request ::= [ APPLICATION 0 ] SEQUENCE {
pvno-major[0] INTEGER DEFAULT 2,
pvno-minor[1] INTEGER DEFAULT 0,
languages[2] SEQUENCE OF Language-Tag OPTIONAL,
targ-name[3] PrincipalName OPTIONAL,
targ-realm[4] Realm OPTIONAL,
operation[5] Op-Req,
...
}
Response ::= [ APPLICATION 1 ] SEQUENCE {
pvno-major[0] INTEGER DEFAULT 2,
pvno-minor[1] INTEGER DEFAULT 0,
language[2] Language-Tag DEFAULT "i-default",
result[3] Op-rep OPTIONAL,
...
}
Error-Response ::= [ APPLICATION 2 ] SEQUENCE {
pvno-major[0] INTEGER DEFAULT 2,
pvno-minor[1] INTEGER DEFAULT 0,
language[2] Language-Tag DEFAULT "i-default",
error-code[3] ProtocolErrorCode,
help-text[4] UTF8String OPTIONAL,
op-error[5] Op-error OP-ERROR,
...
}
END
-- etags -r '/\([A-Za-z][-A-Za-z0-9]*\).*::=/\1/' setchgpw2.asn1
|