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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
|
#.MODULE_IMPORT
InformationFramework x509if
ServiceAdministration x509if
AuthenticationFramework x509af
AttributeCertificateDefinitions x509af
SelectedAttributeTypes x509sat
BasicAccessControl crmf
Remote-Operations-Generic-ROS-PDUs ros
Remote-Operations-Information-Objects ros
ACSE-1 acse
DistributedOperations dsp
DirectoryShadowAbstractService disp
#.INCLUDE ../x509if/x509if-exp.cnf
#.INCLUDE ../x509af/x509af-exp.cnf
#.INCLUDE ../x509sat/x509sat-exp.cnf
#.INCLUDE ../pkixcrmf/crmf-exp.cnf
#.INCLUDE ../dsp/dsp-exp.cnf
#.INCLUDE ../disp/disp-exp.cnf
#.INCLUDE ../ros/ros-exp.cnf
#.INCLUDE ../acse/acse-exp.cnf
#.EXPORTS
CommonResults
Referral
SecurityParameters
EntryModification
ContextSelection
DirectoryBindArgument
DirectoryBindError
ReadArgument
ReadResult
ListArgument
ListResult
SearchArgument
SearchResult
AddEntryArgument
AddEntryResult
CompareArgument
CompareResult
RemoveEntryArgument
RemoveEntryResult
ModifyEntryArgument
ModifyEntryResult
ModifyDNArgument
ModifyDNResult
AbandonArgument
AbandonResult
AttributeError
NameError
ServiceError
Abandoned
SecurityError
AbandonFailedError
UpdateError
#.TYPE_RENAME
FamilyEntry/information FamilyInformation
AbandonResult/information AbandonInformation
AddEntryResult/information AddEntryInformation
RemoveEntryResult/information RemoveEntryInformation
ModifyEntryResult/information ModifyEntryInformation
ModifyDNResult/information ModifyDNInformation
EntryInformation/information/_item EntryInformationItem
#.FIELD_RENAME
ModifyRights/_item/item/attribute attribute-type
ModifyRights/_item/item/entry item-entry
AddEntryArgumentData/entry add-entry
EntryInformation/information entry-information
FamilyEntry/information family-information
AbandonResult/information abandon-information
AddEntryResult/information add-entry-information
RemoveEntryResult/information remove-entry-information
ModifyEntryResult/information modify-entry-information
ModifyDNResult/information modify-dn-information
EntryInformation/information/_item entry-information-item
Filter/item filter-item
NameErrorData/matched matched-name
SecurityParameters/name distinguished-name
SimpleCredentials/name distinguished-name
StrongCredentials/name distinguished-name
ModifyDNArgument/object distinguished-name
AbandonFailedErrorData/problem abandon-failed-problem
ServiceErrorData/problem service-error-problem
AttributeErrorData/problems/_item/problem attribute-error-problem
NameErrorData/problem name-error-problem
SecurityErrorData/problem security-error-problem
UpdateErrorData/problem update-error-problem
DirectoryBindErrorData/error/securityError securityProblem
SecurityError/signedSecurityError/securityError securityErrorData
DirectoryBindErrorData/error/serviceError serviceProblem
FilterItem/substrings/type sunstringType
ModifyRights/_item/item/value value-assertion
#.FN_BODY T_initial
proto_item *it;
it = proto_tree_add_item(tree, hf_index, tvb, offset, -1, FALSE);
proto_item_append_text(it," XXX: Not yet implemented!");
#.FN_BODY T_any
/* XXX: not yet implemented */
#.FN_BODY T_final
/* XXX: not yet implemented */
#.FN_BODY T_matchValue
/* XXX: not yet implemented */
#.FN_BODY T_bind_token
/* XXX: not yet implemented */
#.FN_BODY T_req
/* XXX: not yet implemented */
#.FN_BODY T_rep
/* XXX: not yet implemented */
#.FN_BODY T_spkmInfo
/* XXX: not yet implemented */
#.FN_BODY DirectoryBindArgument
guint32 len;
/* check and see if this is an empty set */
dissect_ber_length(pinfo, tree, tvb, offset+1, &len, NULL);
if(len == 0) {
/* its an empty set - i.e anonymous (assuming version is DEFAULTed) */
proto_tree_add_text(tree, tvb, offset, -1,"Anonymous");
if(check_col(pinfo->cinfo, COL_INFO))
col_append_fstr(pinfo->cinfo, COL_INFO, " anonymous");
}
/* do the default thing */
%(DEFAULT_BODY)s
#.FN_BODY SimpleCredentials
%(DEFAULT_BODY)s
if(check_col(pinfo->cinfo, COL_INFO))
col_append_fstr(pinfo->cinfo, COL_INFO, " %%s", x509if_get_last_dn());
#.FN_PARS OCTET_STRING
VAL_PTR=&out_tvb
#.FN_BODY OCTET_STRING
tvbuff_t *out_tvb;
int i;
int len;
proto_item *oct_item;
%(DEFAULT_BODY)s
len = tvb_length(out_tvb);
/* now see if we can add a string representation */
for(i=0; i<len; i++)
if(!g_ascii_isprint(tvb_get_guint8(out_tvb, i)))
break;
if(i == len) {
if((oct_item = get_ber_last_created_item())) {
proto_item_append_text(oct_item," (");
for(i=0; i<len; i++)
proto_item_append_text(oct_item,"%%c",tvb_get_guint8(out_tvb,i));
proto_item_append_text(oct_item,")");
}
}
#.FN_PARS SecurityProblem
VAL_PTR = &problem
#.FN_BODY SecurityProblem
guint32 problem;
%(DEFAULT_BODY)s
if (check_col(pinfo->cinfo, COL_INFO)) {
col_append_fstr(pinfo->cinfo, COL_INFO, " %%s", val_to_str(problem, dap_SecurityProblem_vals, "SecurityProblem(%%d)"));
}
#.FN_PARS ServiceProblem
VAL_PTR = &problem
#.FN_BODY ServiceProblem
guint32 problem;
%(DEFAULT_BODY)s
if (check_col(pinfo->cinfo, COL_INFO)) {
col_append_fstr(pinfo->cinfo, COL_INFO, " %%s", val_to_str(problem, dap_ServiceProblem_vals, "ServiceProblem(%%d)"));
}
#.FN_PARS UpdateProblem
VAL_PTR = &problem
#.FN_BODY UpdateProblem
guint32 problem;
%(DEFAULT_BODY)s
if (check_col(pinfo->cinfo, COL_INFO)) {
col_append_fstr(pinfo->cinfo, COL_INFO, " %%s", val_to_str(problem, dap_UpdateProblem_vals, "UpdateProblem(%%d)"));
}
#.FN_PARS LimitProblem
VAL_PTR = &problem
#.FN_BODY LimitProblem
guint32 problem;
%(DEFAULT_BODY)s
if (check_col(pinfo->cinfo, COL_INFO)) {
col_append_fstr(pinfo->cinfo, COL_INFO, " %%s", val_to_str(problem, dap_LimitProblem_vals, "LimitProblem(%%d)"));
}
#.FN_PARS T_subset
VAL_PTR = &subset
#.FN_BODY T_subset
guint32 subset;
%(DEFAULT_BODY)s
if (check_col(pinfo->cinfo, COL_INFO)) {
col_append_fstr(pinfo->cinfo, COL_INFO, " %%s", val_to_str(subset, dap_T_subset_vals, "Subset(%%d)"));
}
#.FN_BODY Name
const char *dn;
%(DEFAULT_BODY)s
if(check_col(pinfo->cinfo, COL_INFO)) {
dn = x509if_get_last_dn();
col_append_fstr(pinfo->cinfo, COL_INFO, " %%s", (dn && *dn) ? dn : "(root)");
}
#.FN_BODY T_subordinates_item
proto_item *sub_item;
%(DEFAULT_BODY)s
if((sub_item = get_ber_last_created_item())) {
proto_item_append_text(sub_item," (%%s)", x509if_get_last_dn());
}
|