Apache JMeter
1.9

org.apache.jmeter.protocol.ldap.sampler
Class LdapClient

java.lang.Object
  |
  +--org.apache.jmeter.protocol.ldap.sampler.LdapClient

public class LdapClient
extends Object

Ldap Client class is main class to create ,modify, search and delete all the LDAP functionality available


Constructor Summary
LdapClient()
          Constructor for the LdapClient object
 
Method Summary
 void connect(String host, String port, String rootdn, String username, String password)
          connect to server
 void createTest(BasicAttributes basicattributes, String string)
          Create the attribute in the ldap directory for the given string
 void deleteTest(String string)
          Delete the attribute from the ldap directory
 void disconnect()
          disconnect from the server
 void modifyTest(ModificationItem[] mods, String string)
          Modify the attribute in the ldap directory for the given string
 void searchTest(String searchBase, String searchFilter)
          Filter the data in the ldap directory for the given search base
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LdapClient

public LdapClient()
Constructor for the LdapClient object

Method Detail

connect

public void connect(String host,
                    String port,
                    String rootdn,
                    String username,
                    String password)
             throws Exception
connect to server

Parameters:
host - Description of Parameter
username - Description of Parameter
password - Description of Parameter
Throws:
Exception - Description of Exception

disconnect

public void disconnect()
disconnect from the server


searchTest

public void searchTest(String searchBase,
                       String searchFilter)
                throws NoPermissionException,
                       NamingException
Filter the data in the ldap directory for the given search base

NoPermissionException
NamingException

modifyTest

public void modifyTest(ModificationItem[] mods,
                       String string)
                throws NoPermissionException,
                       NamingException
Modify the attribute in the ldap directory for the given string

Parameters:
string - The string (dn) value
NoPermissionException
NamingException

createTest

public void createTest(BasicAttributes basicattributes,
                       String string)
                throws NoPermissionException,
                       NamingException
Create the attribute in the ldap directory for the given string

Parameters:
basicattributes - add all the entry in to the basicattribute
string - The string (dn) value
NoPermissionException
NamingException

deleteTest

public void deleteTest(String string)
                throws NoPermissionException,
                       NamingException
Delete the attribute from the ldap directory

NoPermissionException
NamingException

Apache JMeter
1.9

Copyright © 1998-2003 Apache Software Foundation. All Rights Reserved.