ldapanswer_xml.html
10.2 KB
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
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- start the processing -->
<html>
<head>
<link rel="stylesheet" type="text/css" href="../../docs/css/style.css"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="author" value="Apache JMeter developers">
<meta name="email" value="dev@jmeter.apache.org">
<title>Apache JMeter - User's Manual: LDAP answer XML description</title>
<style>
.code { font-weight: bold; }
</style>
</head>
<body bgcolor="#ffffff" text="#000000" link="#525D76">
<table border="0" cellspacing="0">
<tr>
<td align="left">
<a href="http://www.apache.org"><img style="margin: 0px 30px 0px 0px" title="Apache Software Foundation" width="261" height="106" src="../../docs/images/asf-logo.png" border="0"/></a>
</td>
<td align="right">
<a href="http://jmeter.apache.org/"><img width="259" height="88" src="../../docs/images/jmeter.png" alt="Apache JMeter" title="Apache JMeter" border="0"/></a>
</td>
</tr>
</table>
<table border="0" cellspacing="4">
<tr><td>
<hr noshade size="1"/>
</td></tr>
<tr>
<td align="left" valign="top">
<br>
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
<a name="ldapans_xml"><strong>description of the ldapanswer XML definition</strong></a></font>
</td></tr>
<tr><td>
<blockquote>
<p>
The extended LDAP sampler was built to support testing for very complex testpurposes.
It was aimed at supporting the LDAP operations as close as possible.
As the results are not passed back in a user-readable form, I invented my own xml definition to
construct an answer in xml encoding, so the results may be parsed with regextracter or alike functions.
</p><table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#828DA6">
<font color="#ffffff" face="arial,helvetica,sanserif">
<a name="overview"><strong>1 Global overview</strong></a>
</font>
</td></tr>
<tr><td>
<blockquote>
<p>
The global structure is as follows:<br>
<ol>
<li>
&lt;ldapanswer&gt; and &lt;ldapanswer/&gt; are the begin and endtags which are used to define the beginning ands end of the answer.
</li>
<li>
each ldapanswer contains 4 sections, an "operation" section (enclosed by
&lt;operation&gt; tags) a respons code section (enclosed by &lt;responsecode&gt; tags), a
response message (enclosed by &lt;responsemessage&gt; tags and (only with a search
request) a searchresult section (enclosed with &ltsearchresult&gt tags>
</li>
</ol>
</p><table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#828DA6">
<font color="#ffffff" face="arial,helvetica,sanserif">
<a name="operation"><strong>1.1 The operation section</strong></a>
</font>
</td></tr>
<tr><td>
<blockquote>
<p>
The operation section defines the operation as it is sent to the LDAP Server. The
following tags (with a short explanation) are used
<ol>
<li>
&lt;opertype&gt;<br>
Thise describes which kind of operation was sent, it can have the following values:
<ol>
<li>
bind<br>
(this code is used for both a thread bind as a single bind/unbind operation)
</li>
<li>
unbind
</li>
<li>
compare
</li>
<li>
add
</li>
<li>
delete
</li>
<li>
modfy
</li>
<li>
rename
</li>
<li>
search
</li>
</ol>
</li>
<li>
&lt;attributes&gt;
This will name all attributes that will be added or modified during an "add" or a "modify"
operation.
</li>
<li>
&lt;baseobject&gt;
This will hold the value of the root or context prefix that will be used in the current session.
This value is given for any "thread bind" and "thread unbind" operation
</li>
<li>
&lt;binddn&gt;
This is the DN of the user that is binding to the directory, it is used in the
"thread bind", "thread unbind" and "single bind" operations.
</li>
<li>
&lt;comparedn&gt;
This is the DN of the object from which an attribute is compared to a given attributevalue
It is only used in the "compare" operation.
</li>
<li>
&lt;comparefilter&gt;
This is the filter, in the form (attribute= value) that is used in the "compare" operation.
</li>
<li>
&lt;countlimit&gt;
This is the maximum number of searchresults that will be returned, as it is requested by the client.
The actual number might be smaller as the server can have its own countlimit configured.
This will be used only in search requests.</li>
<li>
&lt;dn&gt;
This is the distinguished name of the object on which the actions are performed.
It is used in Add, Delete, Modify and ModifyDN operations
</li>
<li>
&lt;newdn&gt;
This is the new distinghuised name of an object to which the object will be renamed
or moved, it is used in de ModifyDN operation
</li>
<li>
&lt;scope&gt;
This is used in search operations, it can be 0 (object), 1 (onelevel) or 2 (subtree).
It defines the scope of the search which can be limited to the above settings.
</li>
<li>
&lt;searchfilter&gt;
The searchfilter that will be used in a search request, it should be in proper LDAP syntax.
</li>
<li>
&lt;searchbase&gt;
The searchbase where a search is started, this is given, relative to the baseobject of the current connection.
</li>
<li>
&lt;timelimit&gt;
This is the maximum timethe server will use in finding the requested objects.as it is requested by the client.
The actual number might be smaller as the server can have its own countlimit configured.
This will be used only in search requests.</li>
</ol>
</p></blockquote>
</td></tr>
<tr><td><br></td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#828DA6">
<font color="#ffffff" face="arial,helvetica,sanserif">
<a name="response_message"><strong>1.2 Response message section</strong></a>
</font>
</td></tr>
<tr><td>
<blockquote>
<p>
As the response code, the official LDAP error definitions are used, so this section
contains the error message as returned from the server.
A succesfull request always returns "Success" as the responsmessage.
The following tag is used:
&lt;responsemessage&gt;<br>
</p></blockquote>
</td></tr>
<tr><td><br></td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#828DA6">
<font color="#ffffff" face="arial,helvetica,sanserif">
<a name="response_code"><strong>1.3 Response code section</strong></a>
</font>
</td></tr>
<tr><td>
<blockquote>
<p>
As the response code, the official LDAP error definitions are used, so this section
contains the error number as returned from the server.
A succesfull request always returns 0 (zero) as the responscode.
The following tag is used:
&lt;responsecode&gt;<br>
</p></blockquote>
</td></tr>
<tr><td><br></td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#828DA6">
<font color="#ffffff" face="arial,helvetica,sanserif">
<a name="search"><strong>1.4 Search Result section</strong></a>
</font>
</td></tr>
<tr><td>
<blockquote>
<p>
The following tag is used:
&lt;searchresult&gt;<br>
This gives the results from a serachrequest, as they are returned by the server.
It contains the following tags:
<ol>
<li>
&lt;dn&gt;
This contains the complete distinghuised name of the object which is represented here
</li>
<li>
&lt;returnedattr&gt;
This contains the number of returned attributes.
</li>
<li>
&lt;attribute&gt;
Each returned attribute is given between these tags, it always consists of an
attribute name and attribute value pair
<ol>
<li>
&lt;attributename&gt;
This contains the official attributename as returned by the server.
</li>
<li>
&lt;attributevalue&gt;
This contains the attribute value as returned by the server.
</li>
</ol>
</li>
</ol>
</p></blockquote>
</td></tr>
<tr><td><br></td></tr>
</table>
</blockquote>
</td></tr>
<tr><td><br></td></tr>
</table>
</blockquote>
</p>
</td></tr>
<tr><td><br></td></tr>
</table>
<br>
</td>
</tr>
<tr><td>
<hr noshade size="1"/>
</td></tr>
<tr>
<td>
<table width=100%>
<tr>
<td align="center">
<font color="#525D76" size="-1"><em>
Copyright © 1999-2017, Apache Software Foundation
</em></font>
</td>
</tr>
<tr><td colspan="2">
<div align="center"><font color="#525D76" size="-1">
Apache, Apache JMeter, JMeter, the Apache feather, and the Apache JMeter logo are
trademarks of the Apache Software Foundation.
</font>
</div>
</td></tr>
</table>
</td>
</tr>
</table>
</body>
</html>
<!-- end the processing -->