Package org.apache.jmeter.protocol.ldap.sampler

Examples of org.apache.jmeter.protocol.ldap.sampler.LdapExtClient


   * This will do the bind and unbind for the User defined TestCase
   *
   * @return executed time for the bind op
   **************************************************************************/
  private void singleBindOp(SampleResult res) throws NamingException {
    LdapExtClient ldap_temp;
    ldap_temp = new LdapExtClient();
    res.sampleStart();
    DirContext ctx = ldap_temp.connect(getServername(), getPort(), getRootdn(), getSuserDN(), getSuserPw());
    ldap_temp.disconnect(ctx);
    res.sampleEnd();
  }
View Full Code Here


    boolean isSuccessful = true;
    SearchResult sr;
    String iets;
    NamingEnumeration attrlist;
    res.setSampleLabel(getName());
    LdapExtClient temp_client = (LdapExtClient) ldapConnections.get(getThreadName());
    DirContext dirContext = (DirContext) ldapContexts.get(getThreadName());
    if (temp_client == null) {
      temp_client = new LdapExtClient();
      try {
        dirContext = new InitialDirContext();
      } catch (NamingException err) {
        log.error("Ldap client context creation - ", err);
      }
View Full Code Here

TOP

Related Classes of org.apache.jmeter.protocol.ldap.sampler.LdapExtClient

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.