org.apache.jmeter.protocol.ldap.sampler
Class LdapClient
Ldap Client class is main class to create, modify, search and delete all the
LDAP functionality available.
LdapClient() - Constructor for the LdapClient object.
|
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.
|
boolean | searchTest(String searchBase, String searchFilter) - Filter the data in the ldap directory for the given search base.
|
LdapClient
public LdapClient()
Constructor for the LdapClient object.
connect
public void connect(String host,
String port,
String rootdn,
String username,
String password)
throws NamingException
Connect to server.
createTest
public void createTest(BasicAttributes basicattributes,
String string)
throws NamingException
Create the attribute in the ldap directory for the given string.
basicattributes
- add all the entry in to the basicattributestring
- the string (dn) value
deleteTest
public void deleteTest(String string)
throws NamingException
Delete the attribute from the ldap directory.
string
- the string (dn) value
disconnect
public void disconnect()
Disconnect from the server.
modifyTest
public void modifyTest(ModificationItem[] mods,
String string)
throws NamingException
Modify the attribute in the ldap directory for the given string.
mods
- add all the entry in to the ModificationItemstring
- the string (dn) value
searchTest
public boolean searchTest(String searchBase,
String searchFilter)
throws NamingException
Filter the data in the ldap directory for the given search base.
searchBase
- where the search should startsearchFilter
- filter this value from the base
Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.