<
function-
arg-
description>
The baseDN for the search operation
</
function-
arg-
description>
<
function-
arg-
property name="type" value="dn"/>
<
function-
arg-
def name="dsFilter" type="optional">
<
function-
arg-
description>
The filter for the search operation
</
function-
arg-
description>
<
function-
arg-
property name="type" value="filter"/>
<
function-
arg-
def name="dsAttributes" type="optional">
<
function-
arg-
description>
Only return these attributes
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="outputFile" type="optional" default="'None'">
<
function-
arg-
description>
Output file containing the command output
</
function-
arg-
description>
<
function-
arg-
property name="type" value="file"/>
<
function-
arg-
def name="outputPath" type="optional">
<
function-
arg-
description>
Path containing the outputFile
</
function-
arg-
description>
<
function-
arg-
property name="type" value="filepath"/>
<!-- Build the Command --> myHost=String(dsInstanceHost)
myPort=int(dsInstancePort)
myBaseDn=String(dsBaseDN)
myDn=String(dsInstanceDn)
myPassword=String(dsInstancePswd).toCharArray()
myFilter = '(objectClass=*)'
factory = LDAPConnectionFactory(myHost,myPort)
#TODO: handle search result references
#TODO: not really a need to use writer to write to stdout
except ErrorResultException, e:
except ErrorResultIOException, e:
except InterruptedException, e:
<
function name="authRate">
This function runs ldap authrate tool from OpenDJ SDK
<
function-
arg-
def name="location" type="optional" default="STAF_REMOTE_HOSTNAME">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="hostname"/>
<
function-
arg-
def name="sdkBinPath" type="optional" default="'%s' % SDK_BIN">
<
function-
arg-
description>
Pathname to installation of sdk binaries
</
function-
arg-
description>
<
function-
arg-
property name="type" value="filepath"/>
<
function-
arg-
def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)">
<
function-
arg-
description>
Pathname to installation root
</
function-
arg-
description>
<
function-
arg-
property name="type" value="filepath"/>
<
function-
arg-
def name="dsInstanceHost" type="optional">
<
function-
arg-
description>
Directory server hostname or IP address
</
function-
arg-
description>
<
function-
arg-
property name="type" value="hostname"/>
<
function-
arg-
def name="dsInstancePort" type="optional">
<
function-
arg-
description>
Directory server port number
</
function-
arg-
description>
<
function-
arg-
property name="type" value="Port number"/>
<
function-
arg-
def name="dsInstanceDn" type="optional">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="DN"/>
<
function-
arg-
def name="dsInstancePswd" type="optional">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="extraParams" type="optional">
<
function-
arg-
description>
Optional extra parameters for specific test cases
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="expectedRC" type="optional" default="0">
<
function-
arg-
description>
Expected return code value. Default value is 0
Wildcard 'noCheck' to not check the RC
</
function-
arg-
description>
<
function-
arg-
property name="type" value="integer"/>
<
function-
arg-
def name="verbose" type="optional" default="True">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="integer"/>
<
function-
arg-
def name="knownIssue" type="optional" default="None">
<
function-
arg-
description>
Known issue. Corresponds to an issue number.
</
function-
arg-
description>
<
function-
arg-
def name="outputFile" type="optional" default="'None'">
<
function-
arg-
description>
Output file containing the command output
</
function-
arg-
description>
<
function-
arg-
property name="type" value="file"/>
<
function-
arg-
def name="outputPath" type="optional">
<
function-
arg-
description>
Path containing the outputFile
</
function-
arg-
description>
<
function-
arg-
property name="type" value="filepath"/>
<!-- Build the Command --> dsBinPath='%s/%s' % (dsPath,fileFolder)
STAFCmd='%
s/
authrate%s' % (sdkBinPath,fileExt)
<!-- Set common ldap arguments --> <
call function="'_ldapCommonArgs'" />
STAFCmdParams=' '.join(STAFCmdParamsList)
<
if expr="outputFile != 'None'">
<
call function="'runCommand'" >
'arguments' : STAFCmdParams,
'outputFile': '%s/%s' % (outputPath, outputFile),
'expectedRC': expectedRC,
<
call function="'runCommand'">
'arguments' : STAFCmdParams,
'expectedRC' : expectedRC,
'knownIssue' : knownIssue
for line in STAXResult[0][1].split('\n'):
<
function name="searchRate">
This function runs ldap searchrate tool from OpenDJ SDK
<
function-
arg-
def name="location" type="optional" default="STAF_REMOTE_HOSTNAME">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="hostname"/>
<
function-
arg-
def name="sdkBinPath" type="optional" default="'%s' % SDK_BIN">
<
function-
arg-
description>
Pathname to installation of sdk binaries
</
function-
arg-
description>
<
function-
arg-
property name="type" value="filepath"/>
<
function-
arg-
def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)">
<
function-
arg-
description>
Pathname to installation root
</
function-
arg-
description>
<
function-
arg-
property name="type" value="filepath"/>
<
function-
arg-
def name="dsInstanceHost" type="optional">
<
function-
arg-
description>
Directory server hostname or IP address
</
function-
arg-
description>
<
function-
arg-
property name="type" value="hostname"/>
<
function-
arg-
def name="dsInstancePort" type="optional">
<
function-
arg-
description>
Directory server port number
</
function-
arg-
description>
<
function-
arg-
property name="type" value="Port number"/>
<
function-
arg-
def name="dsInstanceDn" type="optional">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="DN"/>
<
function-
arg-
def name="dsInstancePswd" type="optional">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="extraParams" type="optional">
<
function-
arg-
description>
Optional extra parameters for specific test cases
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="expectedRC" type="optional" default="0">
<
function-
arg-
description>
Expected return code value. Default value is 0
Wildcard 'noCheck' to not check the RC
</
function-
arg-
description>
<
function-
arg-
property name="type" value="integer"/>
<
function-
arg-
def name="verbose" type="optional" default="True">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="integer"/>
<
function-
arg-
def name="knownIssue" type="optional" default="None">
<
function-
arg-
description>
Known issue. Corresponds to an issue number.
</
function-
arg-
description>
<
function-
arg-
def name="dsBaseDN" type="optional">
<
function-
arg-
description>
The baseDN for the search operation
</
function-
arg-
description>
<
function-
arg-
property name="type" value="dn"/>
<
function-
arg-
def name="outputFile" type="optional" default="'None'">
<
function-
arg-
description>
Output file containing the command output
</
function-
arg-
description>
<
function-
arg-
property name="type" value="file"/>
<
function-
arg-
def name="outputPath" type="optional">
<
function-
arg-
description>
Path containing the outputFile
</
function-
arg-
description>
<
function-
arg-
property name="type" value="filepath"/>
<!-- Build the Command --> dsBinPath='%s/%s' % (dsPath,fileFolder)
<!-- Set common ldap arguments --> <
call function="'_ldapCommonArgs'" />
STAFCmdParams=' '.join(STAFCmdParamsList)
<
if expr="outputFile != 'None'">
<
call function="'runCommand'" >
'arguments' : STAFCmdParams,
'outputFile': '%s/%s' % (outputPath, outputFile),
'expectedRC': expectedRC,
<
call function="'runCommand'">
'arguments' : STAFCmdParams,
'expectedRC' : expectedRC,
'knownIssue' : knownIssue
for line in STAXResult[0][1].split('\n'):
<
function name="modRate">
This function runs ldap modrate tool from OpenDJ SDK
<
function-
arg-
def name="location" type="optional" default="STAF_REMOTE_HOSTNAME">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="hostname"/>
<
function-
arg-
def name="sdkBinPath" type="optional" default="'%s' % SDK_BIN">
<
function-
arg-
description>
Pathname to installation of sdk binaries
</
function-
arg-
description>
<
function-
arg-
property name="type" value="filepath"/>
<
function-
arg-
def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)">
<
function-
arg-
description>
Pathname to installation root
</
function-
arg-
description>
<
function-
arg-
property name="type" value="filepath"/>
<
function-
arg-
def name="dsInstanceHost" type="optional">
<
function-
arg-
description>
Directory server hostname or IP address
</
function-
arg-
description>
<
function-
arg-
property name="type" value="hostname"/>
<
function-
arg-
def name="dsInstancePort" type="optional">
<
function-
arg-
description>
Directory server port number
</
function-
arg-
description>
<
function-
arg-
property name="type" value="Port number"/>
<
function-
arg-
def name="dsInstanceDn" type="optional">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="DN"/>
<
function-
arg-
def name="dsInstancePswd" type="optional">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="extraParams" type="optional">
<
function-
arg-
description>
Optional extra parameters for specific test cases
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="expectedRC" type="optional" default="0">
<
function-
arg-
description>
Expected return code value. Default value is 0
Wildcard 'noCheck' to not check the RC
</
function-
arg-
description>
<
function-
arg-
property name="type" value="integer"/>
<
function-
arg-
def name="verbose" type="optional" default="True">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="integer"/>
<
function-
arg-
def name="knownIssue" type="optional" default="None">
<
function-
arg-
description>
Known issue. Corresponds to an issue number.
</
function-
arg-
description>
<
function-
arg-
def name="dsBaseDN" type="optional">
<
function-
arg-
description>
The baseDN for the operation
</
function-
arg-
description>
<
function-
arg-
property name="type" value="dn"/>
<
function-
arg-
def name="attribute" type="optional">
<
function-
arg-
description>
The attribute to be modified
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="formatString" type="optional">
<
function-
arg-
description>
The attribute value to be modified
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="outputFile" type="optional" default="'None'">
<
function-
arg-
description>
Output file containing the command output
</
function-
arg-
description>
<
function-
arg-
property name="type" value="file"/>
<
function-
arg-
def name="outputPath" type="optional">
<
function-
arg-
description>
Path containing the outputFile
</
function-
arg-
description>
<
function-
arg-
property name="type" value="filepath"/>
<!-- Build the Command --> dsBinPath='%s/%s' % (dsPath,fileFolder)
STAFCmd='%
s/
modrate%s' % (sdkBinPath,fileExt)
<!-- Set common ldap arguments --> <
call function="'_ldapCommonArgs'" />
STAFCmdParams=' '.join(STAFCmdParamsList)
<
if expr="outputFile != 'None'">
<
call function="'runCommand'" >
'arguments' : STAFCmdParams,
'outputFile': '%s/%s' % (outputPath, outputFile),
'expectedRC': expectedRC,
<
call function="'runCommand'">
'arguments' : STAFCmdParams,
'expectedRC' : expectedRC,
'knownIssue' : knownIssue
for line in STAXResult[0][1].split('\n'):
<
function name="addRate">
This function runs ldap searchrate tool from OpenDJ SDK
<
function-
arg-
def name="location" type="optional" default="STAF_REMOTE_HOSTNAME">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="hostname"/>
<
function-
arg-
def name="sdkBinPath" type="optional" default="'%s' % SDK_BIN">
<
function-
arg-
description>
Pathname to installation of sdk binaries
</
function-
arg-
description>
<
function-
arg-
property name="type" value="filepath"/>
<
function-
arg-
def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)">
<
function-
arg-
description>
Pathname to installation root
</
function-
arg-
description>
<
function-
arg-
property name="type" value="filepath"/>
<
function-
arg-
def name="dsInstanceHost" type="optional">
<
function-
arg-
description>
Directory server hostname or IP address
</
function-
arg-
description>
<
function-
arg-
property name="type" value="hostname"/>
<
function-
arg-
def name="dsInstancePort" type="optional">
<
function-
arg-
description>
Directory server port number
</
function-
arg-
description>
<
function-
arg-
property name="type" value="Port number"/>
<
function-
arg-
def name="dsInstanceDn" type="optional">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="DN"/>
<
function-
arg-
def name="dsInstancePswd" type="optional">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="extraParams" type="optional">
<
function-
arg-
description>
Optional extra parameters for specific test cases
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="expectedRC" type="optional" default="0">
<
function-
arg-
description>
Expected return code value. Default value is 0
Wildcard 'noCheck' to not check the RC
</
function-
arg-
description>
<
function-
arg-
property name="type" value="integer"/>
<
function-
arg-
def name="verbose" type="optional" default="True">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="integer"/>
<
function-
arg-
def name="knownIssue" type="optional" default="None">
<
function-
arg-
description>
Known issue. Corresponds to an issue number.
</
function-
arg-
description>
<
function-
arg-
def name="templateFile" type="optional">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="dn"/>
<
function-
arg-
def name="outputFile" type="optional" default="'None'">
<
function-
arg-
description>
Output file containing the command output
</
function-
arg-
description>
<
function-
arg-
property name="type" value="file"/>
<
function-
arg-
def name="outputPath" type="optional">
<
function-
arg-
description>
Path containing the outputFile
</
function-
arg-
description>
<
function-
arg-
property name="type" value="filepath"/>
<!-- Build the Command --> dsBinPath='%s/%s' % (dsPath,fileFolder)
STAFCmd='%
s/
addrate%s' % (sdkBinPath,fileExt)
<!-- Set common ldap arguments --> <
call function="'_ldapCommonArgs'" />
STAFCmdParams=' '.join(STAFCmdParamsList)
<
if expr="outputFile != 'None'">
<
call function="'runCommand'" >
'arguments' : STAFCmdParams,
'outputFile': '%s/%s' % (outputPath, outputFile),
'expectedRC': expectedRC,
<
call function="'runCommand'">
'arguments' : STAFCmdParams,
'expectedRC' : expectedRC,
'knownIssue' : knownIssue
for line in STAXResult[0][1].split('\n'):
<
function name="delRate">
This function runs ldap delrate tool from OpenDJ SDK
<
function-
arg-
def name="location" type="optional" default="STAF_REMOTE_HOSTNAME">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="hostname"/>
<
function-
arg-
def name="sdkBinPath" type="optional" default="'%s' % SDK_BIN">
<
function-
arg-
description>
Pathname to installation of sdk binaries
</
function-
arg-
description>
<
function-
arg-
property name="type" value="filepath"/>
<
function-
arg-
def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)">
<
function-
arg-
description>
Pathname to installation root
</
function-
arg-
description>
<
function-
arg-
property name="type" value="filepath"/>
<
function-
arg-
def name="dsInstanceHost" type="optional">
<
function-
arg-
description>
Directory server hostname or IP address
</
function-
arg-
description>
<
function-
arg-
property name="type" value="hostname"/>
<
function-
arg-
def name="dsInstancePort" type="optional">
<
function-
arg-
description>
Directory server port number
</
function-
arg-
description>
<
function-
arg-
property name="type" value="Port number"/>
<
function-
arg-
def name="dsInstanceDn" type="optional">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="DN"/>
<
function-
arg-
def name="dsInstancePswd" type="optional">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="extraParams" type="optional">
<
function-
arg-
description>
Optional extra parameters for specific test cases
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="expectedRC" type="optional" default="0">
<
function-
arg-
description>
Expected return code value. Default value is 0
Wildcard 'noCheck' to not check the RC
</
function-
arg-
description>
<
function-
arg-
property name="type" value="integer"/>
<
function-
arg-
def name="verbose" type="optional" default="True">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="integer"/>
<
function-
arg-
def name="knownIssue" type="optional" default="None">
<
function-
arg-
description>
Known issue. Corresponds to an issue number.
</
function-
arg-
description>
<
function-
arg-
def name="dsBaseDN" type="optional">
<
function-
arg-
description>
The baseDN for the search operation
</
function-
arg-
description>
<
function-
arg-
property name="type" value="dn"/>
<
function-
arg-
def name="outputFile" type="optional" default="'None'">
<
function-
arg-
description>
Output file containing the command output
</
function-
arg-
description>
<
function-
arg-
property name="type" value="file"/>
<
function-
arg-
def name="outputPath" type="optional">
<
function-
arg-
description>
Path containing the outputFile
</
function-
arg-
description>
<
function-
arg-
property name="type" value="filepath"/>
<!-- Build the Command --> dsBinPath='%s/%s' % (dsPath,fileFolder)
STAFCmd='%
s/
delrate%s' % (sdkBinPath,fileExt)
<!-- Set common ldap arguments --> <
call function="'_ldapCommonArgs'" />
STAFCmdParams=' '.join(STAFCmdParamsList)
<
if expr="outputFile != 'None'">
<
call function="'runCommand'" >
'arguments' : STAFCmdParams,
'outputFile': '%s/%s' % (outputPath, outputFile),
'expectedRC': expectedRC,
<
call function="'runCommand'">
'arguments' : STAFCmdParams,
'expectedRC' : expectedRC,
'knownIssue' : knownIssue
for line in STAXResult[0][1].split('\n'):
<
function name="LdifDiffSdk">
This function runs ldap delrate tool from OpenDJ SDK
<
function-
arg-
def name="location" type="optional" default="STAF_REMOTE_HOSTNAME">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="hostname"/>
<
function-
arg-
def name="sdkBinPath" type="optional" default="'%s' % SDK_BIN">
<
function-
arg-
description>
Pathname to installation of sdk binaries
</
function-
arg-
description>
<
function-
arg-
property name="type" value="filepath"/>
<
function-
arg-
def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)">
<
function-
arg-
description>
Pathname to installation root
</
function-
arg-
description>
<
function-
arg-
property name="type" value="filepath"/>
<
function-
arg-
def name="sourceLdif" type="required">
<
function-
arg-
description>
LDIF file to use as the source data
</
function-
arg-
description>
<
function-
arg-
property name="type" value="filepath"/>
<
function-
arg-
def name="targetLdif" type="required">
<
function-
arg-
description>
LDIF file to use as the target data
</
function-
arg-
description>
<
function-
arg-
property name="type" value="filepath"/>
<
function-
arg-
def name="outputLdif" type="required">
<
function-
arg-
description>
File to which the diffs should be written
</
function-
arg-
description>
<
function-
arg-
property name="type" value="filepath"/>
<
function-
arg-
def name="expectedRC" type="optional" default="0">
<
function-
arg-
description>
Expected return code value. Default value is 0
Wildcard 'noCheck' to not check the RC
</
function-
arg-
description>
<
function-
arg-
property name="type" value="integer"/>
<
function-
arg-
def name="knownIssue" type="optional" default="None">
<
function-
arg-
description>
Known issue. Corresponds to an issue number.
</
function-
arg-
description>
<!-- Build the Command --> dsBinPath='%s/%s' % (dsPath,fileFolder)
STAFCmd='%
s/
ldifdiff%s' % (sdkBinPath,fileExt)
STAFCmdParams=' '.join(STAFCmdParamsList)
<
call function="'runCommand'">
'arguments' : STAFCmdParams,
'expectedRC' : expectedRC,
'knownIssue' : knownIssue
savSTAXResult = STAXResult
for line in savSTAXResult[0][1].split('\n'):
if len(savSTAXResult[0][1]) > 0: