Skip to content
Permalink
Browse files

Swap out the ASN.1 library

Ripped out the original SLAMD ASN.1 parsing library and replaced it
with the one from the UnboundID LDAP SDK for Java.  This also
included ripping out the ldap-decoder tool and replacing it with the
LDAP SDK's ldap-decoder tool.

Also, in a marginally related set of changes, some new scripts were
added to expose additional LDAP SDK tools, including:
* base64
* ldapmodify
* ldapsearch
* manage-certificates
* search-and-mod-rate
* split-ldif
* transform-ldif
  • Loading branch information...
dirmgr committed Mar 10, 2019
1 parent a02eb79 commit 72cd8c39524a2631db633e6979c75078676b439e
Showing with 2,240 additions and 27,742 deletions.
  1. +1 −1 scripts/{ldap-decoder.bat → base64.bat}
  2. +1 −1 scripts/{ldap-decoder.sh → base64.sh}
  3. +46 −0 scripts/ldap-debugger.bat
  4. +55 −0 scripts/ldap-debugger.sh
  5. +46 −0 scripts/ldapmodify.bat
  6. +55 −0 scripts/ldapmodify.sh
  7. +46 −0 scripts/ldapsearch.bat
  8. +55 −0 scripts/ldapsearch.sh
  9. +46 −0 scripts/manage-certificates.bat
  10. +55 −0 scripts/manage-certificates.sh
  11. +46 −0 scripts/search-and-mod-rate.bat
  12. +55 −0 scripts/search-and-mod-rate.sh
  13. +46 −0 scripts/split-ldif.bat
  14. +55 −0 scripts/split-ldif.sh
  15. +46 −0 scripts/transform-ldif.bat
  16. +55 −0 scripts/transform-ldif.sh
  17. +3 −2 src/com/slamd/admin/AdminDebug.java
  18. +5 −4 src/com/slamd/admin/AdminJob.java
  19. +0 −188 src/com/slamd/asn1/ASN1Boolean.java
  20. +0 −89 src/com/slamd/asn1/ASN1DecodeResult.java
  21. +0 −2,245 src/com/slamd/asn1/ASN1Element.java
  22. +0 −191 src/com/slamd/asn1/ASN1Enumerated.java
  23. +0 −61 src/com/slamd/asn1/ASN1Exception.java
  24. +0 −1,411 src/com/slamd/asn1/ASN1Integer.java
  25. +0 −123 src/com/slamd/asn1/ASN1Null.java
  26. +0 −204 src/com/slamd/asn1/ASN1OctetString.java
  27. +0 −400 src/com/slamd/asn1/ASN1Reader.java
  28. +0 −582 src/com/slamd/asn1/ASN1Sequence.java
  29. +0 −399 src/com/slamd/asn1/ASN1Set.java
  30. +0 −115 src/com/slamd/asn1/ASN1Writer.java
  31. +0 −42 src/com/slamd/asn1/package.html
  32. +62 −40 src/com/slamd/client/Client.java
  33. +1 −1 src/com/slamd/client/ClientShutdownHook.java
  34. +46 −24 src/com/slamd/clientmanager/ClientManager.java
  35. +3 −2 src/com/slamd/db/DSMigrator.java
  36. +20 −20 src/com/slamd/db/JobFolder.java
  37. +35 −59 src/com/slamd/db/SLAMDDB.java
  38. +8 −8 src/com/slamd/db/SLAMDGroup.java
  39. +11 −11 src/com/slamd/db/SLAMDPermission.java
  40. +14 −13 src/com/slamd/db/SLAMDUser.java
  41. +5 −4 src/com/slamd/http/HTTPClient.java
  42. +3 −3 src/com/slamd/http/HTTPRequest.java
  43. +59 −58 src/com/slamd/job/Job.java
  44. +69 −68 src/com/slamd/job/OptimizingJob.java
  45. +14 −13 src/com/slamd/jobgroup/JobGroup.java
  46. +2 −1 src/com/slamd/jobgroup/JobGroupItem.java
  47. +20 −19 src/com/slamd/jobgroup/JobGroupJob.java
  48. +35 −34 src/com/slamd/jobgroup/JobGroupOptimizingJob.java
  49. +44 −53 src/com/slamd/jobs/LDAPDigestMD5SocketFactory.java
  50. +7 −15 src/com/slamd/message/ClassTransferRequestMessage.java
  51. +11 −29 src/com/slamd/message/ClassTransferResponseMessage.java
  52. +18 −35 src/com/slamd/message/ClientHelloMessage.java
  53. +10 −27 src/com/slamd/message/ClientManagerHelloMessage.java
  54. +10 −18 src/com/slamd/message/HelloResponseMessage.java
  55. +23 −47 src/com/slamd/message/JobCompletedMessage.java
  56. +10 −18 src/com/slamd/message/JobControlRequestMessage.java
  57. +10 −27 src/com/slamd/message/JobControlResponseMessage.java
  58. +24 −57 src/com/slamd/message/JobRequestMessage.java
  59. +10 −27 src/com/slamd/message/JobResponseMessage.java
  60. +6 −5 src/com/slamd/message/KeepAliveMessage.java
  61. +6 −5 src/com/slamd/message/Message.java
  62. +11 −46 src/com/slamd/message/RegisterStatisticMessage.java
  63. +9 −17 src/com/slamd/message/ReportStatisticMessage.java
  64. +9 −26 src/com/slamd/message/ServerHelloMessage.java
  65. +6 −5 src/com/slamd/message/ServerShutdownMessage.java
  66. +8 −7 src/com/slamd/message/StartClientRequestMessage.java
  67. +9 −17 src/com/slamd/message/StartClientResponseMessage.java
  68. +13 −20 src/com/slamd/message/StatusRequestMessage.java
  69. +14 −31 src/com/slamd/message/StatusResponseMessage.java
  70. +6 −5 src/com/slamd/message/StopClientRequestMessage.java
  71. +9 −17 src/com/slamd/message/StopClientResponseMessage.java
  72. +19 −68 src/com/slamd/parameter/Parameter.java
  73. +5 −4 src/com/slamd/parameter/ParameterList.java
  74. +5 −4 src/com/slamd/protocol/ClassData.java
  75. +8 −7 src/com/slamd/protocol/ClassTransferRequest.java
  76. +8 −7 src/com/slamd/protocol/ClassTransferResponse.java
  77. +5 −4 src/com/slamd/protocol/ClientDisconnect.java
  78. +17 −16 src/com/slamd/protocol/ClientHello.java
  79. +16 −15 src/com/slamd/protocol/ClientManagerHello.java
  80. +5 −4 src/com/slamd/protocol/ClientUpgradeRequest.java
  81. +7 −6 src/com/slamd/protocol/ClientUpgradeResponse.java
  82. +8 −7 src/com/slamd/protocol/FileData.java
  83. +12 −11 src/com/slamd/protocol/JobCompleted.java
  84. +6 −5 src/com/slamd/protocol/JobControlRequest.java
  85. +8 −7 src/com/slamd/protocol/JobControlResponse.java
  86. +19 −18 src/com/slamd/protocol/JobRequest.java
  87. +8 −7 src/com/slamd/protocol/JobResponse.java
  88. +3 −2 src/com/slamd/protocol/KeepAlive.java
  89. +17 −16 src/com/slamd/protocol/MonitorClientHello.java
  90. +8 −7 src/com/slamd/protocol/RegisterStatistic.java
  91. +6 −5 src/com/slamd/protocol/ReportStatistic.java
  92. +15 −14 src/com/slamd/protocol/SLAMDMessage.java
  93. +8 −7 src/com/slamd/protocol/ServerDisconnect.java
  94. +13 −12 src/com/slamd/protocol/ServerHello.java
  95. +5 −4 src/com/slamd/protocol/StartClientRequest.java
  96. +7 −6 src/com/slamd/protocol/StartClientResponse.java
  97. +3 −2 src/com/slamd/protocol/StatusRequest.java
  98. +10 −9 src/com/slamd/protocol/StatusResponse.java
  99. +3 −2 src/com/slamd/realm/LDAPRealm.java
  100. +45 −20 src/com/slamd/resourcemonitor/ResourceMonitorClient.java
  101. +15 −0 src/com/slamd/resourcemonitor/netstat/AIXNetStatCollector.java
  102. +15 −0 src/com/slamd/resourcemonitor/netstat/AggregateInterfaceStatistics.java
  103. +15 −0 src/com/slamd/resourcemonitor/netstat/HPUXNetStatCollector.java
  104. +15 −0 src/com/slamd/resourcemonitor/netstat/InterfaceStatistics.java
  105. +15 −0 src/com/slamd/resourcemonitor/netstat/LinuxNetStatCollector.java
  106. +15 −0 src/com/slamd/resourcemonitor/netstat/NetStatCollector.java
  107. +15 −0 src/com/slamd/resourcemonitor/netstat/SingleInterfaceStatistics.java
  108. +15 −0 src/com/slamd/resourcemonitor/netstat/SolarisNetStatCollector.java
  109. +15 −0 src/com/slamd/resourcemonitor/netstat/WindowsNetStatCollector.java
  110. +4 −5 src/com/slamd/scripting/mail/CRAMMD5Handler.java
  111. +5 −5 src/com/slamd/scripting/mail/SMTPConnectionVariable.java
  112. +45 −39 src/com/slamd/server/ClientConnection.java
  113. +9 −5 src/com/slamd/server/ClientListener.java
  114. +41 −18 src/com/slamd/server/ClientManagerConnection.java
  115. +13 −10 src/com/slamd/server/RealTimeStatHandler.java
  116. +46 −51 src/com/slamd/server/ResourceMonitorClientConnection.java
  117. +5 −3 src/com/slamd/server/ResourceMonitorClientListener.java
  118. +42 −27 src/com/slamd/server/StatClientConnection.java
  119. +17 −16 src/com/slamd/server/UploadedFile.java
  120. +6 −5 src/com/slamd/stat/AccumulatingTracker.java
  121. +10 −9 src/com/slamd/stat/CategoricalTracker.java
  122. +10 −9 src/com/slamd/stat/FloatValueTracker.java
  123. +6 −5 src/com/slamd/stat/IncrementalTracker.java
  124. +9 −8 src/com/slamd/stat/IntegerValueTracker.java
  125. +10 −9 src/com/slamd/stat/LongValueTracker.java
  126. +11 −10 src/com/slamd/stat/PeriodicEventTracker.java
  127. +7 −6 src/com/slamd/stat/PersistentStatViewer.java
  128. +40 −18 src/com/slamd/stat/RealTimeStatReporter.java
  129. +6 −5 src/com/slamd/stat/ResourceMonitorStatTracker.java
  130. +15 −14 src/com/slamd/stat/StackedValueTracker.java
  131. +4 −3 src/com/slamd/stat/StatDebugger.java
  132. +14 −13 src/com/slamd/stat/StatEncoder.java
  133. +8 −7 src/com/slamd/stat/StatPersistenceThread.java
  134. +9 −8 src/com/slamd/stat/TimeTracker.java
  135. +6 −5 src/com/slamd/tools/DBDump.java
  136. +1 −0 src/com/slamd/tools/SwingClient.java
  137. +0 −167 src/com/slamd/tools/ldapdecoder/ConnectionIdentifier.java
  138. +0 −140 src/com/slamd/tools/ldapdecoder/LDAPClientConnection.java
  139. +0 −1,357 src/com/slamd/tools/ldapdecoder/LDAPDecoder.java
  140. +0 −253 src/com/slamd/tools/ldapdecoder/LDAPDecoderClientThread.java
  141. +0 −60 src/com/slamd/tools/ldapdecoder/LDAPDecoderException.java
  142. +0 −281 src/com/slamd/tools/ldapdecoder/LDAPDecoderServerThread.java
  143. +0 −84 src/com/slamd/tools/ldapdecoder/LDAPDecoderShutdownHook.java
  144. +0 −162 src/com/slamd/tools/ldapdecoder/protocol/AbandonRequest.java
  145. +0 −264 src/com/slamd/tools/ldapdecoder/protocol/AddRequest.java
  146. +0 −374 src/com/slamd/tools/ldapdecoder/protocol/AddResponse.java
  147. +0 −81 src/com/slamd/tools/ldapdecoder/protocol/AuthorizationIDRequestControl.java
  148. +0 −133 src/com/slamd/tools/ldapdecoder/protocol/AuthorizationIDResponseControl.java
  149. +0 −463 src/com/slamd/tools/ldapdecoder/protocol/BindRequest.java
  150. +0 −486 src/com/slamd/tools/ldapdecoder/protocol/BindResponse.java
  151. +0 −272 src/com/slamd/tools/ldapdecoder/protocol/CompareRequest.java
  152. +0 −374 src/com/slamd/tools/ldapdecoder/protocol/CompareResponse.java
  153. +0 −160 src/com/slamd/tools/ldapdecoder/protocol/DeleteRequest.java
  154. +0 −374 src/com/slamd/tools/ldapdecoder/protocol/DeleteResponse.java
  155. +0 −281 src/com/slamd/tools/ldapdecoder/protocol/EntryChangeNotificationControl.java
  156. +0 −275 src/com/slamd/tools/ldapdecoder/protocol/ExtendedRequest.java
  157. +0 −510 src/com/slamd/tools/ldapdecoder/protocol/ExtendedResponse.java
  158. +0 −282 src/com/slamd/tools/ldapdecoder/protocol/GetEffectiveRightsControl.java
  159. +0 −281 src/com/slamd/tools/ldapdecoder/protocol/IntermediateResponse.java
  160. +0 −308 src/com/slamd/tools/ldapdecoder/protocol/LDAPAttribute.java
  161. +0 −451 src/com/slamd/tools/ldapdecoder/protocol/LDAPControl.java
  162. +0 −1,389 src/com/slamd/tools/ldapdecoder/protocol/LDAPMessage.java
  163. +0 −259 src/com/slamd/tools/ldapdecoder/protocol/LDAPModification.java
  164. +0 −481 src/com/slamd/tools/ldapdecoder/protocol/LDAPResultCode.java
  165. +0 −80 src/com/slamd/tools/ldapdecoder/protocol/ManageDSAITControl.java
  166. +0 −355 src/com/slamd/tools/ldapdecoder/protocol/ModifyDNRequest.java
  167. +0 −374 src/com/slamd/tools/ldapdecoder/protocol/ModifyDNResponse.java
  168. +0 −316 src/com/slamd/tools/ldapdecoder/protocol/ModifyRequest.java
  169. +0 −374 src/com/slamd/tools/ldapdecoder/protocol/ModifyResponse.java
  170. +0 −218 src/com/slamd/tools/ldapdecoder/protocol/PagedResultsControl.java
  171. +0 −83 src/com/slamd/tools/ldapdecoder/protocol/PasswordExpiredControl.java
  172. +0 −181 src/com/slamd/tools/ldapdecoder/protocol/PasswordExpiringControl.java
  173. +0 −474 src/com/slamd/tools/ldapdecoder/protocol/PasswordPolicyControl.java
  174. +0 −346 src/com/slamd/tools/ldapdecoder/protocol/PersistentSearchControl.java
  175. +0 −60 src/com/slamd/tools/ldapdecoder/protocol/ProtocolException.java
  176. +0 −308 src/com/slamd/tools/ldapdecoder/protocol/ProtocolOp.java
  177. +0 −182 src/com/slamd/tools/ldapdecoder/protocol/ProxiedAuthV1Control.java
  178. +0 −134 src/com/slamd/tools/ldapdecoder/protocol/ProxiedAuthV2Control.java
  179. +0 −80 src/com/slamd/tools/ldapdecoder/protocol/RealAttributesOnlyControl.java
  180. +0 −1,167 src/com/slamd/tools/ldapdecoder/protocol/SearchFilter.java
  181. +0 −612 src/com/slamd/tools/ldapdecoder/protocol/SearchRequest.java
  182. +0 −374 src/com/slamd/tools/ldapdecoder/protocol/SearchResultDone.java
  183. +0 −258 src/com/slamd/tools/ldapdecoder/protocol/SearchResultEntry.java
  184. +0 −204 src/com/slamd/tools/ldapdecoder/protocol/SearchResultReference.java
  185. +0 −291 src/com/slamd/tools/ldapdecoder/protocol/ServerSortKey.java
  186. +0 −176 src/com/slamd/tools/ldapdecoder/protocol/ServerSortRequestControl.java
  187. +0 −268 src/com/slamd/tools/ldapdecoder/protocol/ServerSortResponseControl.java
  188. +0 −138 src/com/slamd/tools/ldapdecoder/protocol/UnbindRequest.java
  189. +0 −483 src/com/slamd/tools/ldapdecoder/protocol/VLVRequestControl.java
  190. +0 −250 src/com/slamd/tools/ldapdecoder/protocol/VLVResponseControl.java
  191. +0 −145 src/com/slamd/tools/ldapdecoder/snoop/EthernetHeader.java
  192. +0 −408 src/com/slamd/tools/ldapdecoder/snoop/IPv4Header.java
  193. +0 −408 src/com/slamd/tools/ldapdecoder/snoop/SnoopDecoder.java
  194. +0 −60 src/com/slamd/tools/ldapdecoder/snoop/SnoopException.java
  195. +0 −272 src/com/slamd/tools/ldapdecoder/snoop/SnoopPacketRecord.java
  196. +0 −502 src/com/slamd/tools/ldapdecoder/snoop/TCPDumpDecoder.java
  197. +0 −202 src/com/slamd/tools/ldapdecoder/snoop/TCPDumpPacketRecord.java
  198. +0 −358 src/com/slamd/tools/ldapdecoder/snoop/TCPHeader.java
@@ -37,7 +37,7 @@ if not %JAVA_HOME_ERROR% == 0 exit /B %JAVA_HOME_ERROR%


rem Invoke the tool.
set TOOL_CLASS=com.slamd.tools.ldapdecoder.LDAPDecoder
set TOOL_CLASS=com.unboundid.ldap.sdk.examples.Base64Tool
"%JAVA_CMD%" %JVM_ARGS% %TOOL_CLASS% %*
goto end

@@ -50,6 +50,6 @@ fi


# Invoke the tool.
TOOL_CLASS="com.slamd.tools.ldapdecoder.LDAPDecoder"
TOOL_CLASS="com.unboundid.ldap.sdk.examples.Base64Tool"
exec "${JAVA_CMD}" ${JVM_ARGS} ${TOOL_CLASS} "${@}"

@@ -0,0 +1,46 @@
@echo off

rem ###########################################################################
rem # Sun Public License
rem #
rem # The contents of this file are subject to the Sun Public License Version
rem # 1.0 (the "License"). You may not use this file except in compliance with
rem # the License. A copy of the License is available at http://www.sun.com/
rem #
rem # The Original Code is the SLAMD Distributed Load Generation Engine.
rem # The Initial Developer of the Original Code is Neil A. Wilson.
rem # Portions created by Neil A. Wilson are Copyright (C) 2004-2019.
rem # Some preexisting portions Copyright (C) 2002-2006 Sun Microsystems, Inc.
rem # All Rights Reserved.
rem #
rem # Contributor(s): Neil A. Wilson
rem ###########################################################################


rem Specify the arguments that should be provided to the JVM when running this
rem tool.
set JVM_ARGS=


rem
rem You should not need to edit anything below this point.
rem


rem Get the directory containing this batch file.
set BATDIR=%~dp0


rem Prepare the Java environment.
call "%BATDIR%set-java-home.bat"
if not %JAVA_HOME_ERROR% == 0 exit /B %JAVA_HOME_ERROR%


rem Invoke the tool.
set TOOL_CLASS=com.unboundid.ldap.sdk.examples.LDAPDebugger
"%JAVA_CMD%" %JVM_ARGS% %TOOL_CLASS% %*
goto end


:end

@@ -0,0 +1,55 @@
#!/bin/sh

###############################################################################
# Sun Public License
#
# The contents of this file are subject to the Sun Public License Version
# 1.0 (the "License"). You may not use this file except in compliance with
# the License. A copy of the License is available at http://www.sun.com/
#
# The Original Code is the SLAMD Distributed Load Generation Engine.
# The Initial Developer of the Original Code is Neil A. Wilson.
# Portions created by Neil A. Wilson are Copyright (C) 2004-2019.
# Some preexisting portions Copyright (C) 2002-2006 Sun Microsystems, Inc.
# All Rights Reserved.
#
# Contributor(s): Neil A. Wilson
###############################################################################


# Uncomment the next line in order to explicitly specify which Java environment
# should be used.
#JAVA_HOME=/usr/java


# Specify the arguments that should be provided to the JVM when running this
# tool.
JVM_ARGS=""


#
# You should not need to edit anything below this line.
#


# Determine the user's current working directory and the path to this script.
USER_WORKING_DIRECTORY=`pwd`
cd "`dirname "${0}"`"
SCRIPT_DIR=`pwd`
cd "${USER_WORKING_DIRECTORY}"
export USER_WORKING_DIRECTORY SCRIPT_DIR


# Set up the appropriate Java environment.
export JAVA_HOME JVM_ARGS SCRIPT_DIR USER_WORKING_DIRECTORY
. "${SCRIPT_DIR}/set-java-home.sh"
if test "${JAVA_HOME_ERROR}" -ne 0
then
exit 1
fi


# Invoke the tool.
TOOL_CLASS="com.unboundid.ldap.sdk.examples.LDAPDebugger"
exec "${JAVA_CMD}" ${JVM_ARGS} ${TOOL_CLASS} "${@}"

@@ -0,0 +1,46 @@
@echo off

rem ###########################################################################
rem # Sun Public License
rem #
rem # The contents of this file are subject to the Sun Public License Version
rem # 1.0 (the "License"). You may not use this file except in compliance with
rem # the License. A copy of the License is available at http://www.sun.com/
rem #
rem # The Original Code is the SLAMD Distributed Load Generation Engine.
rem # The Initial Developer of the Original Code is Neil A. Wilson.
rem # Portions created by Neil A. Wilson are Copyright (C) 2004-2019.
rem # Some preexisting portions Copyright (C) 2002-2006 Sun Microsystems, Inc.
rem # All Rights Reserved.
rem #
rem # Contributor(s): Neil A. Wilson
rem ###########################################################################


rem Specify the arguments that should be provided to the JVM when running this
rem tool.
set JVM_ARGS=


rem
rem You should not need to edit anything below this point.
rem


rem Get the directory containing this batch file.
set BATDIR=%~dp0


rem Prepare the Java environment.
call "%BATDIR%set-java-home.bat"
if not %JAVA_HOME_ERROR% == 0 exit /B %JAVA_HOME_ERROR%


rem Invoke the tool.
set TOOL_CLASS=com.unboundid.ldap.sdk.unboundidds.tools.LDAPModify
"%JAVA_CMD%" %JVM_ARGS% %TOOL_CLASS% %*
goto end


:end

@@ -0,0 +1,55 @@
#!/bin/sh

###############################################################################
# Sun Public License
#
# The contents of this file are subject to the Sun Public License Version
# 1.0 (the "License"). You may not use this file except in compliance with
# the License. A copy of the License is available at http://www.sun.com/
#
# The Original Code is the SLAMD Distributed Load Generation Engine.
# The Initial Developer of the Original Code is Neil A. Wilson.
# Portions created by Neil A. Wilson are Copyright (C) 2004-2019.
# Some preexisting portions Copyright (C) 2002-2006 Sun Microsystems, Inc.
# All Rights Reserved.
#
# Contributor(s): Neil A. Wilson
###############################################################################


# Uncomment the next line in order to explicitly specify which Java environment
# should be used.
#JAVA_HOME=/usr/java


# Specify the arguments that should be provided to the JVM when running this
# tool.
JVM_ARGS=""


#
# You should not need to edit anything below this line.
#


# Determine the user's current working directory and the path to this script.
USER_WORKING_DIRECTORY=`pwd`
cd "`dirname "${0}"`"
SCRIPT_DIR=`pwd`
cd "${USER_WORKING_DIRECTORY}"
export USER_WORKING_DIRECTORY SCRIPT_DIR


# Set up the appropriate Java environment.
export JAVA_HOME JVM_ARGS SCRIPT_DIR USER_WORKING_DIRECTORY
. "${SCRIPT_DIR}/set-java-home.sh"
if test "${JAVA_HOME_ERROR}" -ne 0
then
exit 1
fi


# Invoke the tool.
TOOL_CLASS="com.unboundid.ldap.sdk.unboundidds.tools.LDAPModify"
exec "${JAVA_CMD}" ${JVM_ARGS} ${TOOL_CLASS} "${@}"

@@ -0,0 +1,46 @@
@echo off

rem ###########################################################################
rem # Sun Public License
rem #
rem # The contents of this file are subject to the Sun Public License Version
rem # 1.0 (the "License"). You may not use this file except in compliance with
rem # the License. A copy of the License is available at http://www.sun.com/
rem #
rem # The Original Code is the SLAMD Distributed Load Generation Engine.
rem # The Initial Developer of the Original Code is Neil A. Wilson.
rem # Portions created by Neil A. Wilson are Copyright (C) 2004-2019.
rem # Some preexisting portions Copyright (C) 2002-2006 Sun Microsystems, Inc.
rem # All Rights Reserved.
rem #
rem # Contributor(s): Neil A. Wilson
rem ###########################################################################


rem Specify the arguments that should be provided to the JVM when running this
rem tool.
set JVM_ARGS=


rem
rem You should not need to edit anything below this point.
rem


rem Get the directory containing this batch file.
set BATDIR=%~dp0


rem Prepare the Java environment.
call "%BATDIR%set-java-home.bat"
if not %JAVA_HOME_ERROR% == 0 exit /B %JAVA_HOME_ERROR%


rem Invoke the tool.
set TOOL_CLASS=com.unboundid.ldap.sdk.unboundidds.tools.LDAPSearch
"%JAVA_CMD%" %JVM_ARGS% %TOOL_CLASS% %*
goto end


:end

@@ -0,0 +1,55 @@
#!/bin/sh

###############################################################################
# Sun Public License
#
# The contents of this file are subject to the Sun Public License Version
# 1.0 (the "License"). You may not use this file except in compliance with
# the License. A copy of the License is available at http://www.sun.com/
#
# The Original Code is the SLAMD Distributed Load Generation Engine.
# The Initial Developer of the Original Code is Neil A. Wilson.
# Portions created by Neil A. Wilson are Copyright (C) 2004-2019.
# Some preexisting portions Copyright (C) 2002-2006 Sun Microsystems, Inc.
# All Rights Reserved.
#
# Contributor(s): Neil A. Wilson
###############################################################################


# Uncomment the next line in order to explicitly specify which Java environment
# should be used.
#JAVA_HOME=/usr/java


# Specify the arguments that should be provided to the JVM when running this
# tool.
JVM_ARGS=""


#
# You should not need to edit anything below this line.
#


# Determine the user's current working directory and the path to this script.
USER_WORKING_DIRECTORY=`pwd`
cd "`dirname "${0}"`"
SCRIPT_DIR=`pwd`
cd "${USER_WORKING_DIRECTORY}"
export USER_WORKING_DIRECTORY SCRIPT_DIR


# Set up the appropriate Java environment.
export JAVA_HOME JVM_ARGS SCRIPT_DIR USER_WORKING_DIRECTORY
. "${SCRIPT_DIR}/set-java-home.sh"
if test "${JAVA_HOME_ERROR}" -ne 0
then
exit 1
fi


# Invoke the tool.
TOOL_CLASS="com.unboundid.ldap.sdk.unboundidds.tools.LDAPSearch"
exec "${JAVA_CMD}" ${JVM_ARGS} ${TOOL_CLASS} "${@}"

@@ -0,0 +1,46 @@
@echo off

rem ###########################################################################
rem # Sun Public License
rem #
rem # The contents of this file are subject to the Sun Public License Version
rem # 1.0 (the "License"). You may not use this file except in compliance with
rem # the License. A copy of the License is available at http://www.sun.com/
rem #
rem # The Original Code is the SLAMD Distributed Load Generation Engine.
rem # The Initial Developer of the Original Code is Neil A. Wilson.
rem # Portions created by Neil A. Wilson are Copyright (C) 2004-2019.
rem # Some preexisting portions Copyright (C) 2002-2006 Sun Microsystems, Inc.
rem # All Rights Reserved.
rem #
rem # Contributor(s): Neil A. Wilson
rem ###########################################################################


rem Specify the arguments that should be provided to the JVM when running this
rem tool.
set JVM_ARGS=


rem
rem You should not need to edit anything below this point.
rem


rem Get the directory containing this batch file.
set BATDIR=%~dp0


rem Prepare the Java environment.
call "%BATDIR%set-java-home.bat"
if not %JAVA_HOME_ERROR% == 0 exit /B %JAVA_HOME_ERROR%


rem Invoke the tool.
set TOOL_CLASS=com.unboundid.util.ssl.cert.ManageCertificates
"%JAVA_CMD%" %JVM_ARGS% %TOOL_CLASS% %*
goto end


:end

Oops, something went wrong.

0 comments on commit 72cd8c3

Please sign in to comment.
You can’t perform that action at this time.