0N/A<?
xml version="1.0" encoding="UTF-8" standalone="no"?>
0N/A ! The contents of this file are subject to the terms of the 0N/A ! Common Development and Distribution License, Version 1.0 only 0N/A ! (the "License"). You may not use this file except in compliance 0N/A ! You can obtain a copy of the license at 0N/A ! See the License for the specific language governing permissions 2362N/A ! and limitations under the License. 0N/A ! When distributing Covered Code, include this CDDL HEADER in each 0N/A ! file and include the License file at 0N/A ! add the following below this CDDL HEADER, with the fields enclosed 0N/A ! by brackets "[]" replaced with your own identifying information: 0N/A ! Portions Copyright [yyyy] [name of copyright owner] 0N/A ! Copyright 2011-2013 ForgeRock AS 0N/A <!-- SDK ldapsearch Function --> 0N/A <
function name="SDKldapSearch">
0N/A This function performs an ldapsearch using the SDK java API
0N/A <
function-
arg-
def name="dsInstanceHost" type="optional">
0N/A <
function-
arg-
description>
0N/A Directory server hostname or IP address
0N/A </
function-
arg-
description>
0N/A <
function-
arg-
property name="type" value="hostname"/>
3847N/A <
function-
arg-
def name="dsInstancePort" type="optional">
3847N/A Directory server port number
0N/A </
function-
arg-
description>
3847N/A <
function-
arg-
property name="type" value="Port number"/>
0N/A <
function-
arg-
def name="dsInstanceDn" type="optional">
0N/A <
function-
arg-
description>
0N/A </
function-
arg-
description>
3847N/A <
function-
arg-
property name="type" value="DN"/>
3847N/A <
function-
arg-
def name="dsInstancePswd" type="optional">
0N/A </
function-
arg-
description>
0N/A <
function-
arg-
property name="type" value="string"/>
0N/A <
function-
arg-
def name="dsScope" type="optional">
0N/A <
function-
arg-
description>
0N/A The scope of the search operation
0N/A </
function-
arg-
description>
0N/A <
function-
arg-
property name="type" value="string"/>
3847N/A <
function-
arg-
def name="dsBaseDN" type="optional">
0N/A <
function-
arg-
description>
0N/A The baseDN for the search operation
0N/A </
function-
arg-
description>
3847N/A <
function-
arg-
property name="type" value="dn"/>
3847N/A <
function-
arg-
def name="dsFilter" type="optional">
3847N/A The filter for the search operation
3847N/A </
function-
arg-
description>
3847N/A <
function-
arg-
property name="type" value="filter"/>
3847N/A <
function-
arg-
def name="dsAttributes" type="optional">
0N/A <
function-
arg-
description>
0N/A Only return these attributes
3847N/A </
function-
arg-
description>
3847N/A <
function-
arg-
property name="type" value="string"/>
0N/A <!-- Build the Command --> 3847N/A myHost=String(dsInstanceHost)
3847N/A myPassword=String(dsInstancePswd).toCharArray()
3847N/A myFilter = '(objectClass=*)'
3847N/A factory = LDAPConnectionFactory(myHost,myPort)
3847N/A #TODO: handle search result references
3847N/A #TODO: not really a need to use writer to write to stdout
0N/A except ErrorResultException, e:
0N/A except ErrorResultIOException, e:
0N/A except InterruptedException, e:
0N/A <
function name="authRate">
0N/A This function runs ldap authrate tool from OpenDJ SDK
0N/A <
function-
arg-
def name="location" type="optional" default="STAF_REMOTE_HOSTNAME">
0N/A Location of target host
0N/A </
function-
arg-
description>
0N/A <
function-
arg-
property name="type" value="hostname"/>
0N/A <
function-
arg-
def name="sdkBinPath" type="optional" default="'%s' % SDK_BIN">
0N/A <
function-
arg-
description>
0N/A Pathname to installation of sdk binaries
0N/A </
function-
arg-
description>
3847N/A <
function-
arg-
property name="type" value="filepath"/>
0N/A <
function-
arg-
def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)">
0N/A Pathname to installation root
3847N/A </
function-
arg-
description>
3847N/A <
function-
arg-
property name="type" value="filepath"/>
3847N/A <
function-
arg-
def name="dsInstanceHost" type="optional">
0N/A <
function-
arg-
description>
0N/A Directory server hostname or IP address
0N/A </
function-
arg-
description>
0N/A <
function-
arg-
property name="type" value="hostname"/>
3847N/A <
function-
arg-
def name="dsInstancePort" type="optional">
3847N/A Directory server port number
3847N/A </
function-
arg-
description>
3847N/A <
function-
arg-
property name="type" value="Port number"/>
0N/A <
function-
arg-
def name="dsInstanceDn" type="optional">
3847N/A </
function-
arg-
description>
3847N/A <
function-
arg-
property name="type" value="DN"/>
3847N/A <
function-
arg-
def name="dsInstancePswd" type="optional">
3847N/A </
function-
arg-
description>
3847N/A <
function-
arg-
property name="type" value="string"/>
3847N/A <
function-
arg-
def name="extraParams" type="optional">
0N/A Optional extra parameters for specific test cases
3847N/A </
function-
arg-
description>
3847N/A <
function-
arg-
property name="type" value="string"/>
3847N/A <
function-
arg-
def name="expectedRC" type="optional" default="0">
3847N/A Expected return code value. Default value is 0
0N/A Wildcard 'noCheck' to not check the RC
3847N/A </
function-
arg-
description>
3847N/A <
function-
arg-
property name="type" value="integer"/>
3847N/A <
function-
arg-
def name="verbose" type="optional" default="True">
0N/A </
function-
arg-
description>
0N/A <
function-
arg-
property name="type" value="integer"/>
3847N/A <
function-
arg-
def name="knownIssue" type="optional" default="None">
3847N/A Known issue. Corresponds to an issue number.
3847N/A </
function-
arg-
description>
0N/A </
function-
map-
args>
0N/A <!-- Build the Command --> 3847N/A dsBinPath='%s/%s' % (dsPath,fileFolder)
0N/A <!-- Set common ldap arguments --> 0N/A <
call function="'_ldapCommonArgs'" />
0N/A STAFCmdParams=' '.join(STAFCmdParamsList)
0N/A <
call function="'runCommand'">
0N/A { 'command' : STAFCmd,
0N/A 'arguments' : STAFCmdParams,
0N/A 'location' : mylocation,
0N/A 'name' : 'authrate',
0N/A 'expectedRC' : expectedRC,
0N/A 'knownIssue' : knownIssue
3847N/A for line in STAXResult[0][1].split('\n'):
0N/A <
function name="searchRate">
0N/A This function runs ldap searchrate tool from OpenDJ SDK
0N/A <
function-
arg-
def name="location" type="optional" default="STAF_REMOTE_HOSTNAME">
0N/A <
function-
arg-
description>
0N/A Location of target host
0N/A </
function-
arg-
description>
3847N/A <
function-
arg-
property name="type" value="hostname"/>
3847N/A <
function-
arg-
def name="sdkBinPath" type="optional" default="'%s' % SDK_BIN">
0N/A <
function-
arg-
description>
0N/A Pathname to installation of sdk binaries
0N/A </
function-
arg-
description>
0N/A <
function-
arg-
property name="type" value="filepath"/>
3847N/A <
function-
arg-
def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)">
0N/A <
function-
arg-
description>
3847N/A Pathname to installation root
3847N/A </
function-
arg-
description>
0N/A <
function-
arg-
property name="type" value="filepath"/>
0N/A <
function-
arg-
def name="dsInstanceHost" type="optional">
0N/A <
function-
arg-
description>
0N/A Directory server hostname or IP address
0N/A </
function-
arg-
description>
0N/A <
function-
arg-
property name="type" value="hostname"/>
0N/A <
function-
arg-
def name="dsInstancePort" type="optional">
0N/A <
function-
arg-
description>
0N/A Directory server port number
0N/A </
function-
arg-
description>
0N/A <
function-
arg-
property name="type" value="Port number"/>
0N/A <
function-
arg-
def name="dsInstanceDn" type="optional">
3847N/A </
function-
arg-
description>
3847N/A <
function-
arg-
property name="type" value="DN"/>
0N/A <
function-
arg-
def name="dsInstancePswd" type="optional">
0N/A <
function-
arg-
description>
3847N/A </
function-
arg-
description>
3847N/A <
function-
arg-
property name="type" value="string"/>
3847N/A <
function-
arg-
def name="extraParams" type="optional">
0N/A Optional extra parameters for specific test cases
3847N/A </
function-
arg-
description>
3847N/A <
function-
arg-
property name="type" value="string"/>
3847N/A <
function-
arg-
def name="expectedRC" type="optional" default="0">
3847N/A Expected return code value. Default value is 0
0N/A Wildcard 'noCheck' to not check the RC
3847N/A </
function-
arg-
description>
3847N/A <
function-
arg-
property name="type" value="integer"/>
3847N/A <
function-
arg-
def name="verbose" type="optional" default="True">
0N/A </
function-
arg-
description>
3847N/A <
function-
arg-
property name="type" value="integer"/>
3847N/A <
function-
arg-
def name="knownIssue" type="optional" default="None">
3847N/A Known issue. Corresponds to an issue number.
3847N/A </
function-
arg-
description>
0N/A <
function-
arg-
def name="dsBaseDN" type="optional">
0N/A <
function-
arg-
description>
3847N/A The baseDN for the search operation
0N/A </
function-
arg-
description>
3847N/A <
function-
arg-
property name="type" value="dn"/>
0N/A <!-- Local variables --> 0N/A <!-- Build the Command --> 0N/A STAFCmdParamsList=[]
0N/A dsBinPath='%s/%s' % (dsPath,fileFolder)
3847N/A <!-- Set common ldap arguments --> 0N/A <
call function="'_ldapCommonArgs'" />
0N/A STAFCmdParams=' '.join(STAFCmdParamsList)
3847N/A <
call function="'runCommand'">
0N/A { 'command' : STAFCmd,
0N/A 'arguments' : STAFCmdParams,
0N/A 'location' : mylocation,
0N/A 'name' : 'searchrate',
0N/A 'expectedRC' : expectedRC,
0N/A for line in STAXResult[0][1].split('\n'):
0N/A This function runs ldap modrate tool from OpenDJ SDK
0N/A <
function-
arg-
def name="location" type="optional" default="STAF_REMOTE_HOSTNAME">
0N/A <
function-
arg-
description>
0N/A </
function-
arg-
description>
0N/A <
function-
arg-
property name="type" value="hostname"/>
0N/A <
function-
arg-
def name="sdkBinPath" type="optional" default="'%s' % SDK_BIN">
0N/A Pathname to installation of sdk binaries
3847N/A </
function-
arg-
description>
3847N/A <
function-
arg-
property name="type" value="filepath"/>
0N/A <
function-
arg-
def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)">
0N/A <
function-
arg-
description>
0N/A Pathname to installation root
3847N/A </
function-
arg-
description>
0N/A <
function-
arg-
property name="type" value="filepath"/>
0N/A <
function-
arg-
def name="dsInstanceHost" type="optional">
0N/A Directory server hostname or IP address
0N/A </
function-
arg-
description>
3847N/A <
function-
arg-
property name="type" value="hostname"/>
0N/A <
function-
arg-
def name="dsInstancePort" type="optional">
0N/A <
function-
arg-
description>
3847N/A Directory server port number
3847N/A </
function-
arg-
description>
0N/A <
function-
arg-
property name="type" value="Port number"/>
3847N/A <
function-
arg-
def name="dsInstanceDn" type="optional">
0N/A </
function-
arg-
description>
0N/A <
function-
arg-
property name="type" value="DN"/>
0N/A <
function-
arg-
def name="dsInstancePswd" type="optional">
0N/A </
function-
arg-
description>
0N/A <
function-
arg-
property name="type" value="string"/>
3847N/A <
function-
arg-
def name="extraParams" type="optional">
0N/A <
function-
arg-
description>
0N/A Optional extra parameters for specific test cases
3847N/A </
function-
arg-
description>
3847N/A <
function-
arg-
property name="type" value="string"/>
0N/A <
function-
arg-
def name="expectedRC" type="optional" default="0">
3847N/A Expected return code value. Default value is 0
0N/A Wildcard 'noCheck' to not check the RC
0N/A </
function-
arg-
description>
0N/A <
function-
arg-
property name="type" value="integer"/>
0N/A <
function-
arg-
def name="verbose" type="optional" default="True">
0N/A <
function-
arg-
description>
0N/A Display (or not) output.
0N/A </
function-
arg-
description>
0N/A <
function-
arg-
property name="type" value="integer"/>
0N/A <
function-
arg-
def name="knownIssue" type="optional" default="None">
0N/A <
function-
arg-
description>
0N/A Known issue. Corresponds to an issue number.
0N/A </
function-
arg-
description>
0N/A <
function-
arg-
def name="dsBaseDN" type="optional">
0N/A <
function-
arg-
description>
0N/A The baseDN for the operation
3847N/A </
function-
arg-
description>
3847N/A <
function-
arg-
property name="type" value="dn"/>
0N/A <
function-
arg-
def name="attribute" type="optional">
0N/A The attribute to be modified
0N/A </
function-
arg-
description>
0N/A <
function-
arg-
property name="type" value="string"/>
3847N/A <
function-
arg-
def name="formatString" type="optional">
0N/A The attribute value to be modified
0N/A </
function-
arg-
description>
0N/A <
function-
arg-
property name="type" value="string"/>
0N/A </
function-
map-
args>
0N/A <!-- Local variables --> 0N/A <!-- Build the Command --> 0N/A STAFCmdParamsList=[]
3847N/A dsBinPath='%s/%s' % (dsPath,fileFolder)
0N/A <!-- Set common ldap arguments --> 3847N/A <
call function="'_ldapCommonArgs'" />
STAFCmdParams=' '.join(STAFCmdParamsList)
<
call function="'runCommand'">
'arguments' : STAFCmdParams,
'expectedRC' : expectedRC,
'knownIssue' : knownIssue
for line in STAXResult[0][1].split('\n'):