You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by fs...@apache.org on 2016/01/31 14:19:45 UTC
svn commit: r1727812 -
/jmeter/trunk/src/protocol/ldap/org/apache/jmeter/protocol/ldap/sampler/LdapClient.java
Author: fschumacher
Date: Sun Jan 31 13:19:45 2016
New Revision: 1727812
URL: http://svn.apache.org/viewvc?rev=1727812&view=rev
Log:
Removal of code, that was commented out.
Based on patch by Benoit Wiart.
Bugzilla Id: 58949
Modified:
jmeter/trunk/src/protocol/ldap/org/apache/jmeter/protocol/ldap/sampler/LdapClient.java
Modified: jmeter/trunk/src/protocol/ldap/org/apache/jmeter/protocol/ldap/sampler/LdapClient.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/ldap/org/apache/jmeter/protocol/ldap/sampler/LdapClient.java?rev=1727812&r1=1727811&r2=1727812&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/ldap/org/apache/jmeter/protocol/ldap/sampler/LdapClient.java (original)
+++ jmeter/trunk/src/protocol/ldap/org/apache/jmeter/protocol/ldap/sampler/LdapClient.java Sun Jan 31 13:19:45 2016
@@ -105,7 +105,6 @@ public class LdapClient {
* when searching fails
*/
public boolean searchTest(String searchBase, String searchFilter) throws NamingException {
- // System.out.println("Base="+searchBase+" Filter="+searchFilter);
SearchControls searchcontrols = new SearchControls(SearchControls.SUBTREE_SCOPE,
1L, // count limit
0, // time limit
@@ -113,15 +112,6 @@ public class LdapClient {
false,// return object ?
false);// dereference links?
NamingEnumeration<?> ne = dirContext.search(searchBase, searchFilter, searchcontrols);
- // System.out.println("Loop "+ne.toString()+" "+ne.hasMore());
- // while (ne.hasMore()){
- // Object tmp = ne.next();
- // System.out.println(tmp.getClass().getName());
- // SearchResult sr = (SearchResult) tmp;
- // Attributes at = sr.getAttributes();
- // System.out.println(at.get("cn"));
- // }
- // System.out.println("Done "+ne.hasMore());
return ne.hasMore();
}
@@ -148,7 +138,6 @@ public class LdapClient {
* @throws NamingException when creating subcontext fails
*/
public void createTest(BasicAttributes basicattributes, String string) throws NamingException {
- // DirContext dc = //TODO perhaps return this?
dirContext.createSubcontext(string, basicattributes);
}