You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by ja...@apache.org on 2005/03/08 19:46:29 UTC

[Apache JMeter Wiki] New: UserManual/Reference/LdapSampler

   Date: 2005-03-08T10:46:29
   Editor: MichaelStover
   Wiki: Apache JMeter Wiki
   Page: UserManual/Reference/LdapSampler
   URL: http://wiki.apache.org/jakarta-jmeter/UserManual/Reference/LdapSampler

   no comment

New Page:

= LDAP Request =

This Sampler lets you send a different Ldap request(Add, Modify, Delete and Search) to a LDAP server.

If you are going to send multiple requests to the same LDAP server, consider using an LDAP Request Defaults Configuration Element so you do not have to enter the same information for each LDAP Request.
The same way the Login Config Element also using for Login and password.

'''Control Panel'''
 http://jakarta.apache.org/jmeter/images/screenshots/ldap_request.png

There are two ways to create test cases for testing a LDAP Server.

 1. Inbuilt Test cases.
 1. User defined Test cases.

There are four test scenarios of testing LDAP. The tests are given below:

 1. Add Test
  1. '''Inbuilt test:'''
  This will add a pre-defined entry in the LDAP Server and calculate the execution time. After execution of the test, the created entry will be deleted from the LDAP Server.
  1. '''User defined test:'''
  This will add the entry in the LDAP Server. User has to enter all the attributes in the table.The entries are collected from the table to add. The execution time is calculated. The created entry will not be deleted after the test.
 1. Modify Test
  1. '''Inbuilt test:'''
  This will create a pre-defined entry first, then will modify the created entry in the LDAP Server.And calculate the execution time. After execution of the test, the created entry will be deleted from the LDAP Server.
  1. '''User defined test:'''
  This will modify the entry in the LDAP Server. User has to enter all the attributes in the table. The entries are collected from the table to modify. The execution time is calculated. The entry will not be deleted from the LDAP Server.
 1. Search Test
  1. '''Inbuilt test:'''
  This will create the entry first, then will search if the attributes are available. It calculates the execution time of the search query. At the end of the execution,created entry will be deleted from the LDAP Server.
  1. '''User defined test:'''
  This will search the user defined entry(Search filter) in the Search base (again, defined by the user). The entries should be available in the LDAP Server. The execution time is calculated.
 1. Delete Test
  1. '''Inbuilt test:'''
  This will create a pre-defined entry first, then it will be deleted from the LDAP Server. The execution time is calculated.
  1. '''User defined test:'''
  This will delete the user-defined entry in the LDAP Server. The entries should be available in the LDAP Server. The execution time is calculated.

'''Parameters'''
|| '''Attribute''' || '''Description''' || '''Required''' ||
|| '''Name''' || Descriptive name for this controller that is shown in the tree. || No ||
|| '''Server Name or IP''' || Domain name or IP address of the LDAP server. JMeter assumes the LDAP server is listening on the default port(389). || Yes ||
|| '''Port''' || default port(389). || Yes ||
|| '''root DN''' || DN for the server to communicate || Yes ||
|| '''Username''' || LDAP server username. || Usually ||
|| '''Password''' || LDAP server password. || Usually ||
|| '''Entry DN''' || The name of the context to create or Modify; may not be empty Example: do you want to add cn=apache,ou=test you have to add in table name=cn, value=apache || yes ||
|| '''Delete''' || The name of the context to Delete; may not be empty || yes ||
|| '''Search base''' || The name of the context or object to search || yes ||
|| '''Search filter''' || The filter expression to use for the search; may not be null || yes ||
|| '''add test''' || This name, value pair to added in the given context object || yes ||
|| '''modify test''' || This name, value pair to add or modify in the given context object|| Yes ||

See Also:
 * [:UserManual/BuildLdapTest:Building a Ldap Test Plan]
 * [:../LdapRequestDefaults:LDAP Request Defaults]

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org