mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

smaguin
08.20.2008 e43e1a4bf4fd23c053d1e889028812018765ea45
remove STAF_LOCAL_HOSTNAME
update comments
4 files modified
17 ■■■■ changed files
opendj-sdk/opends/tests/system-tests/scenario/singleServer/clients/secureSearch/secureSearchPostamble.xml 2 ●●● patch | view | raw | blame | history
opendj-sdk/opends/tests/system-tests/scenario/singleServer/clients/secureSearch/secureSearchPreamble.xml 2 ●●● patch | view | raw | blame | history
opendj-sdk/opends/tests/system-tests/scenario/singleServer/clients/secureSearch/src/Client.java 9 ●●●● patch | view | raw | blame | history
opendj-sdk/opends/tests/system-tests/scenario/singleServer/clients/secureSearch/src/Worker.java 4 ●●●● patch | view | raw | blame | history
opendj-sdk/opends/tests/system-tests/scenario/singleServer/clients/secureSearch/secureSearchPostamble.xml
@@ -56,7 +56,7 @@
      <!-- parse the client parameters :                        -->
      <!-- params is [[param1,val1],[param2,val2],...]          -->
      <!-- get the ldap instance parameters                     -->
      <import machine="'%s' % (STAF_LOCAL_HOSTNAME)"
      <import machine="'%s' % (client.getHost())"
              file="'%s/%sLib.xml' % (client.getPath(),client.getName())"/>
      <call function="'%sParser' % client.getName()">
      {
opendj-sdk/opends/tests/system-tests/scenario/singleServer/clients/secureSearch/secureSearchPreamble.xml
@@ -56,7 +56,7 @@
      <!-- parse the client parameters :                        -->
      <!-- params is [[param1,val1],[param2,val2],...]          -->
      <!-- get the ldap instance parameters                     -->
      <import machine="'%s' % (STAF_LOCAL_HOSTNAME)"
      <import machine="'%s' % (client.getHost())"
              file="'%s/%sLib.xml' % (client.getPath(),client.getName())"/>
      <call function="'%sParser' % client.getName()">
      {
opendj-sdk/opends/tests/system-tests/scenario/singleServer/clients/secureSearch/src/Client.java
@@ -27,9 +27,7 @@
import java.io.*;
import java.lang.Thread;
import javax.naming.*;
//import javax.naming.directory.InitialDirContext;
import javax.naming.directory.SearchControls;
//import javax.naming.directory.DirContext;
import javax.naming.directory.SearchResult;
import javax.naming.directory.Attributes;
import javax.naming.ldap.*;
@@ -73,6 +71,12 @@
        DNList=new ArrayList<String>();
    uidList=new ArrayList<String>();
        
        /*
         * Execute a search on baseDN to get the list of uid
         * and set the DNlist
         * This connexion can be secure or not depending of the client's configuration
         * the BindDN is directory manager
         */
        try {
            Hashtable envLdap = set_properties_LDAP_simpleBind();
@@ -158,6 +162,7 @@
                long new_t1=System.currentTimeMillis();
                long print_t2=System.currentTimeMillis(); 
        // end of the  system test. Exit
                if ( ( timeTostopTest != 0 ) && ( new_t1 > timeTostopTest ) ) { 
                  
opendj-sdk/opends/tests/system-tests/scenario/singleServer/clients/secureSearch/src/Worker.java
@@ -32,9 +32,7 @@
import javax.naming.directory.SearchResult;
import javax.naming.directory.Attributes;
import javax.naming.directory.Attribute;
//import javax.naming.directory.DirContext;
import javax.naming.Context;
//import javax.naming.directory.InitialDirContext;
import javax.naming.ldap.*;
import javax.naming.ldap.StartTlsResponse;
import javax.naming.ldap.StartTlsRequest;
@@ -63,8 +61,6 @@
  
  public void run() {
    
    String value="";
    try {
      
     LdapContext ctx = null;