Friday, July 4, 2014

How to use Jmeter LDAP reuest sampler to populate users to a LDAP

This post describes how to populate users to LDAP from Jmeter LDAP request sampler.

In this scenario I'm going to populate 100000 users to openLDAP.

Now lets configure the Jmeter test plan. First add a LDAP Request sampler and configure the sampler as shown in below. For user name I'm going to add username and post-fix to the username. To do that add a counter config element to get a auto increment number as shown in below screen-shot. Then assigned that variable to end of the username user${no}. I'm giving a same password for all users.

This kind of user population is more useful for test the system behaviours with large users base.

LDAP Request sampler configurations
Username: cn=admin,dc=wso2qa,dc=com
Password: qwert
Server Name:192.168.5.5
Port:389
Entry DN: cn=user${no},ou=people,dc=wso2qa,dc=com
Properties:
cn - user${no}
sn - user${no}
userPassword - user123



Then configure Tread Properties as fallows, depends on your requirement. In this scenario I'm populating 100000 users to openLDAP. Therefore configure the Tread Properties as follows.
Number of treads : 1
Ramp-up period : 1
Loop count : 100000

Then execute the jmeter script.

No comments:

Post a Comment