Monday, July 5, 2021

JMETER LDAP Extended Request Error - javax.naming.NamingException: context is null

If you are creating a test plan to perform load testing on LDAP server using JMETER, you might have added a sampler 'LDAP Extended Request' in the Thread Group of your Test Plan.

While performing operations such as Add Test, Modify Test, Search Test or Delete Test, if you are getting following error

javax.naming.NamingException: context is null

 Here is the solution for you.

You should not use the sampler 'LDAP Extended Request' for your Performance Test Plan. Add Test, Modify Test and other necessary operations can be performed by another sampler 'LDAP Request' successfully. You will not get above error using this sampler.

Here is the complete guide to perform the Load Testing on LDAP Server using JMETER.


 


LDAP Server Performance Testing by JMETER | LDAP Server Load Testing by JMETER

A guide to perform Load Testing on your LDAP Server by JMETER.

Watch the video to learn all the necessary steps to perform Load Testing on LDAP Server. This is an easy and simple method. Any beginner or intermediate QA Engineer can learn to do performance testing on LDAP Server.

It does not require any scripting. A very basic knowledge of JMETER is enough to perform this automated task.



php LDAP admin Import Sample Users | Import Sample Data LDAP Server

LDAP Server : Import Test Users

php LDAP admin is a user friendly client to operate LDAP server. If you want to use LDAP user data for your task, you might need dummy users. There are multiple reasons such as security policy when real users' data cannot be used for any automated task. 

Here we will see how you can import sample or dummy user data which is same as real data.

Steps :

1. Download zip file of LDIF Generator from here.

2. Extract it and open the software using command

java -jar LDIFGen.jar

3. Add Domain Component (dc) name of your LDAP server in the field "Base added to Generate Records". In my case it was

dc=example, dc=com

4. Number of records can be 500 or 5000 depends on your requirement.

5. Field 'Directory where input data is stored' : This is the path of the 'data' directory which you can find in the extracted LDIF generator folder. 

Make sure D is capital in the path name if it is capital in the extracted folder.

6. Output directory path can be anywhere on the system. Make sure you have write permission in the folder.

7. Click on 'Run' button. An output file output.ldif file will be generated.

8. Open php LDAP Admin and click on import option in the left menu. Select the output.ldif file and click on Proceed.

9. All sample users will be imported into the LDAP server.

You can see the complete procedure in the following video.