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