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.