2454N/A<?
xml version="1.0" encoding="UTF-8" standalone="no"?>
2454N/A ! The contents of this file are subject to the terms of the 2454N/A ! Common Development and Distribution License, Version 1.0 only 2454N/A ! (the "License"). You may not use this file except in compliance 2454N/A ! You can obtain a copy of the license at 2454N/A ! See the License for the specific language governing permissions 2454N/A ! and limitations under the License. 2454N/A ! When distributing Covered Code, include this CDDL HEADER in each 2454N/A ! file and include the License file at 2454N/A ! add the following below this CDDL HEADER, with the fields enclosed 2454N/A ! by brackets "[]" replaced with your own identifying information: 2454N/A ! Portions Copyright [yyyy] [name of copyright owner] 4618N/A ! Copyright 2007-2008 Sun Microsystems, Inc. 2454N/A This function adds an entry to the Directory Server from an ldif file
4618N/A <
function-
arg-
def name="location" type="optional" default="STAF_REMOTE_HOSTNAME">
4618N/A </
function-
arg-
description>
2454N/A <
function-
arg-
property name="type" value="hostname"/>
4618N/A <
function-
arg-
def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)">
4618N/A Pathname to installation root
4618N/A </
function-
arg-
description>
4618N/A <
function-
arg-
property name="type" value="filepath"/>
2454N/A <
function-
arg-
def name="dsInstanceHost" type="optional">
4618N/A Directory server hostname or IP address
4618N/A </
function-
arg-
description>
4618N/A <
function-
arg-
property name="type" value="hostname"/>
4618N/A <
function-
arg-
def name="dsInstancePort" type="optional">
4618N/A Directory server port number
4618N/A </
function-
arg-
description>
4618N/A <
function-
arg-
property name="type" value="Port number"/>
4618N/A <
function-
arg-
def name="dsInstanceDn" type="optional">
4618N/A </
function-
arg-
description>
4618N/A <
function-
arg-
property name="type" value="DN"/>
4618N/A <
function-
arg-
def name="dsInstancePswd" type="optional">
4618N/A </
function-
arg-
description>
4618N/A <
function-
arg-
property name="type" value="string"/>
4618N/A <
function-
arg-
def name="entryToBeAdded" type="required">
4618N/A Entry to be added to Directory Server in ldif format
4618N/A </
function-
arg-
description>
4618N/A <
function-
arg-
property name="type" value="DN"/>
4618N/A <
function-
arg-
def name="extraParams" type="optional">
4618N/A Optional extra parameters for specific test cases
4618N/A </
function-
arg-
description>
4618N/A <
function-
arg-
property name="type" value="string"/>
4618N/A <
function-
arg-
def name="expectedRC" type="optional" default="0">
4618N/A Expected return code value. Default value is 0
4618N/A Wildcard 'noCheck' to not check the RC
4618N/A </
function-
arg-
description>
4618N/A <
function-
arg-
property name="type" value="integer"/>
4618N/A <
function-
arg-
def name="verbose" type="optional" default="True">
4618N/A </
function-
arg-
description>
4618N/A <
function-
arg-
property name="type" value="integer"/>
4618N/A <
function-
arg-
def name="knownIssue" type="optional" default="None">
4618N/A Known issue. Corresponds to an issue number.
4618N/A </
function-
arg-
description>
4618N/A <
function-
arg-
property name="type" value="string" />
4618N/A dsBinPath='%s/%s' % (dsPath,fileFolder)
4618N/A <!-- Set common ldap arguments --> 4618N/A <
call function="'_ldapCommonArgs'" />
4618N/A STAFCmdParams=' '.join(STAFCmdParamsList)
2454N/A <
call function="'runCommand'">
4618N/A 'arguments' : STAFCmdParams,
4618N/A 'name' : 'Add Entry From LDIF',
4618N/A <!-- ldapmodify Function With Script--> 4618N/A <
function name="ldapModifyWithScript">
4618N/A This function performs an ldapmodify using the script
4618N/A <
function-
arg-
def name="location" type="optional" default="STAF_REMOTE_HOSTNAME">
4618N/A </
function-
arg-
description>
4618N/A <
function-
arg-
property name="type" value="hostname"/>
4618N/A <
function-
arg-
def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME)">
4618N/A Pathname to installation root
4618N/A </
function-
arg-
description>
4618N/A <
function-
arg-
property name="type" value="hostname"/>
4618N/A <
function-
arg-
def name="dsAdd" type="optional">
4618N/A </
function-
arg-
description>
4618N/A <
function-
arg-
property name="type" value="option"/>
4618N/A <
function-
arg-
def name="dsAssertionFilter" type="optional">
4618N/A Use the LDAP assertion control with the provided filter
4618N/A </
function-
arg-
description>
4618N/A <
function-
arg-
property name="type" value="filter"/>
4618N/A <
function-
arg-
def name="dsContinueOnError" type="optional">
4618N/A Continue processing even if there are errors
4618N/A </
function-
arg-
description>
4618N/A <
function-
arg-
property name="type" value="option"/>
4618N/A <
function-
arg-
def name="dsReportAuthzID" type="optional">
4618N/A Use the authorization identity control
4618N/A </
function-
arg-
description>
4618N/A <
function-
arg-
property name="type" value="option"/>
4618N/A <
function-
arg-
def name="dsFilename" type="optional">
4618N/A Specifies the LDIF file containing the changes to apply
4618N/A </
function-
arg-
description>
4618N/A <
function-
arg-
property name="type" value="filename"/>
4618N/A <
function-
arg-
def name="dsHelp" type="optional">
4618N/A Display this usage information
4618N/A </
function-
arg-
description>
4618N/A <
function-
arg-
property name="type" value="option"/>
4618N/A <
function-
arg-
def name="dsEncoding" type="optional">
4618N/A Use the specified character set for command-line input
4618N/A </
function-
arg-
description>
4618N/A <
function-
arg-
property name="type" value="string"/>
4618N/A <
function-
arg-
def name="dsBindPasswordFile" type="optional">
4618N/A </
function-
arg-
description>
4618N/A <
function-
arg-
property name="type" value="filename"/>
4618N/A <
function-
arg-
def name="dsControl" type="optional">
4618N/A Use a request control with the provided information
4618N/A </
function-
arg-
description>
4618N/A <
function-
arg-
property name="type" value="string"/>
4618N/A <
function-
arg-
def name="dsKeyStorePath" type="optional">
4618N/A </
function-
arg-
description>
4618N/A <
function-
arg-
property name="type" value="filename"/>
4618N/A <
function-
arg-
def name="dsKeyStorePasswordFile" type="optional">
4618N/A Certificate keystore PIN file
4618N/A </
function-
arg-
description>
4618N/A <
function-
arg-
property name="type" value="filename"/>
4618N/A <
function-
arg-
def name="dsKeyStorePassword" type="optional">
4618N/A </
function-
arg-
description>
4618N/A <
function-
arg-
property name="type" value="string"/>
4618N/A <
function-
arg-
def name="dsDryRun" type="optional">
4618N/A Show what would be done but do not perform any operation
4618N/A </
function-
arg-
description>
4618N/A <
function-
arg-
property name="type" value="option"/>
4618N/A <
function-
arg-
def name="dsSaslOption" type="optional">
4618N/A </
function-
arg-
description>
4618N/A <
function-
arg-
property name="type" value="string"/>
4618N/A <
function-
arg-
def name="dsTrustStorePath" type="optional">
4618N/A Certificate trust store path
4618N/A </
function-
arg-
description>
4618N/A <
function-
arg-
property name="type" value="filename"/>
4618N/A <
function-
arg-
def name="dsTrustStorePassword" type="optional">
4618N/A Certificate trust store PIN
4618N/A </
function-
arg-
description>
4618N/A <
function-
arg-
property name="type" value="string"/>
4618N/A <
function-
arg-
def name="dsTrustStorePasswordFile" type="optional">
4618N/A Certificate trust store PIN file
4618N/A </
function-
arg-
description>
4618N/A <
function-
arg-
property name="type" value="filename"/>
4618N/A <
function-
arg-
def name="dsUseStartTLS" type="optional">
4618N/A Use StartTLS to secure communication with the server
4618N/A </
function-
arg-
description>
4618N/A <
function-
arg-
property name="type" value="option"/>
4618N/A <
function-
arg-
def name="dsUseSASLExternal" type="optional">
4618N/A Use the SASL EXTERNAL authentication mechanism
4618N/A </
function-
arg-
description>
4618N/A <
function-
arg-
property name="type" value="option"/>
4618N/A <
function-
arg-
def name="dsUseSSL" type="optional">
4618N/A Use SSL for secure communication with the server
4618N/A </
function-
arg-
description>
4618N/A <
function-
arg-
property name="type" value="option"/>
4618N/A <
function-
arg-
def name="dsTrustAll" type="optional">
4618N/A Trust all server SSL certificates
4618N/A </
function-
arg-
description>
4618N/A <
function-
arg-
property name="type" value="option"/>
4618N/A <
function-
arg-
def name="dsVersion" type="optional">
4618N/A Display Directory Server version information
4618N/A </
function-
arg-
description>
4618N/A <
function-
arg-
property name="type" value="option"/>
4618N/A <
function-
arg-
def name="dsCertNickname" type="optional">
4618N/A Nickname of certificate for SSL client authentication
4618N/A </
function-
arg-
description>
4618N/A <
function-
arg-
property name="type" value="string"/>
4618N/A <
function-
arg-
def name="dsProxyAs" type="optional">
4618N/A Use the proxied authorization control with the given authorization ID
4618N/A </
function-
arg-
description>
4618N/A <
function-
arg-
property name="type" value="string"/>
2454N/A <
function-
arg-
def name="dsPreReadAttributes" type="optional">
4618N/A Use the LDAP ReadEntry pre-read control
4618N/A </
function-
arg-
description>
2454N/A <
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="dsPostReadAttributes" type="optional">
<
function-
arg-
description>
Use the LDAP ReadEntry post-read control
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="dsLdapVersion" type="optional">
<
function-
arg-
description>
LDAP protocol version number
</
function-
arg-
description>
<
function-
arg-
property name="type" value="integer"/>
<
function-
arg-
def name="dsVerbose" type="optional">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="option"/>
<
function-
arg-
def name="dsInstanceHost" type="optional">
<
function-
arg-
description>
Directory Server Host Name
</
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="integer"/>
<
function-
arg-
def name="dsInstanceDn" type="optional">
<
function-
arg-
description>
Directory Server Manager DN
</
function-
arg-
description>
<
function-
arg-
property name="type" value="dn"/>
<
function-
arg-
def name="dsInstancePswd" type="optional">
<
function-
arg-
description>
Directory Server Manager Password
</
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="knownIssue" type="optional" default="None">
<
function-
arg-
description>
Known issue. Corresponds to an issue number.
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string" />
<!-- Build the Command --> dsBinPath='%s/%s' % (dsPath,fileFolder)
if dsTrustStorePasswordFile:
if dsKeyStorePasswordFile:
for attribute in dsPreReadAttributes:
for attribute in dsPostReadAttributes:
STAFCmdParams=' '.join(STAFCmdParamsList)
'%s %s' % (STAFCmd, STAFCmdParams)
<
call function="'runCommand'">
{ 'name' : 'LDAP Modify Script',
'arguments' : STAFCmdParams,
'expectedRC': expectedRC,
<
function name="modifyEntry">
This function modifies an entry in the Directory Server
<
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="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="entryToBeModified" type="required">
<
function-
arg-
description>
Entry to be modified in the Directory Server in ldif format
</
function-
arg-
description>
<
function-
arg-
property name="type" value="DN"/>
<
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="knownIssue" type="optional" default="None">
<
function-
arg-
description>
Known issue. Corresponds to an issue number.
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string" />
<!-- Build the Command --> dsBinPath='%s/%s' % (dsPath,fileFolder)
<!-- Set common ldap arguments --> <
call function="'_ldapCommonArgs'"/>
STAFCmdParams=' '.join(STAFCmdParamsList)
'%s %s' % (STAFCmd, STAFCmdParams)
<
call function="'runCommand'">
'arguments' : STAFCmdParams,
'name' : 'Modify Entry from ldif file',
'expectedRC': expectedRC,
<!-- ldapsearch Function With Script--> <
function name="ldapSearchWithScript">
This function performs an ldapsearch using the script
<
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="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="hostname"/>
<
function-
arg-
def name="dsDereferencePolicy" type="optional">
<
function-
arg-
description>
Specifies dereference alias policy
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="dsTypesOnly" type="optional">
<
function-
arg-
description>
Specifies to only include attribute type names
</
function-
arg-
description>
<
function-
arg-
property name="type" value="option"/>
<
function-
arg-
def name="dsAssertionFilter" type="optional">
<
function-
arg-
description>
Use the LDAP assertion control with the provided filter
</
function-
arg-
description>
<
function-
arg-
property name="type" value="filter"/>
<
function-
arg-
def name="dsContinueOnError" type="optional">
<
function-
arg-
description>
Continue processing even if there are errors
</
function-
arg-
description>
<
function-
arg-
property name="type" value="option"/>
<
function-
arg-
def name="dsPersistentSearch" type="optional">
<
function-
arg-
description>
Use the persistent search control
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="dsCountEntries" type="optional">
<
function-
arg-
description>
Count the number of entries returned by the server
</
function-
arg-
description>
<
function-
arg-
property name="type" value="option"/>
<
function-
arg-
def name="dsReportAuthzID" type="optional">
<
function-
arg-
description>
Use the authorization identity control
</
function-
arg-
description>
<
function-
arg-
property name="type" value="option"/>
<
function-
arg-
def name="dsFilename" type="optional">
<
function-
arg-
description>
File containing a list of search filter strings
</
function-
arg-
description>
<
function-
arg-
property name="type" value="filename"/>
<
function-
arg-
def name="dsHelp" type="optional">
<
function-
arg-
description>
Display this usage information
</
function-
arg-
description>
<
function-
arg-
property name="type" value="option"/>
<
function-
arg-
def name="dsEncoding" type="optional">
<
function-
arg-
description>
Use the specified character set for command-line input
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="dsBindPasswordFile" type="optional">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="filename"/>
<
function-
arg-
def name="dsControl" type="optional">
<
function-
arg-
description>
Use a request control with the provided information
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="dsKeyStorePath" type="optional">
<
function-
arg-
description>
Certificate keystore path
</
function-
arg-
description>
<
function-
arg-
property name="type" value="filename"/>
<
function-
arg-
def name="dsKeyStorePasswordFile" type="optional">
<
function-
arg-
description>
Certificate keystore PIN file
</
function-
arg-
description>
<
function-
arg-
property name="type" value="filename"/>
<
function-
arg-
def name="dsKeyStorePassword" type="optional">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="dsTimeLimit" type="optional">
<
function-
arg-
description>
Maximum length of time in seconds to allow for the search
</
function-
arg-
description>
<
function-
arg-
property name="type" value="integer"/>
<
function-
arg-
def name="dsMatchedValuesFilter" type="optional">
<
function-
arg-
description>
Use the LDAP matched values control with the provided filter
</
function-
arg-
description>
<
function-
arg-
property name="type" value="filter"/>
<
function-
arg-
def name="dsDryRun" type="optional">
<
function-
arg-
description>
Show what would be done but do not perform any operation
</
function-
arg-
description>
<
function-
arg-
property name="type" value="option"/>
<
function-
arg-
def name="dsSaslOption" type="optional">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="dsTrustStorePath" type="optional">
<
function-
arg-
description>
Certificate trust store path
</
function-
arg-
description>
<
function-
arg-
property name="type" value="filename"/>
<
function-
arg-
def name="dsTrustStorePassword" type="optional">
<
function-
arg-
description>
Certificate trust store PIN
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="dsTrustStorePasswordFile" type="optional">
<
function-
arg-
description>
Certificate trust store PIN file
</
function-
arg-
description>
<
function-
arg-
property name="type" value="filename"/>
<
function-
arg-
def name="dsUseStartTLS" type="optional">
<
function-
arg-
description>
Use StartTLS to secure communication with the server
</
function-
arg-
description>
<
function-
arg-
property name="type" value="option"/>
<
function-
arg-
def name="dsUseSASLExternal" type="optional">
<
function-
arg-
description>
Use the SASL EXTERNAL authentication mechanism
</
function-
arg-
description>
<
function-
arg-
property name="type" value="option"/>
<
function-
arg-
def name="dsUseSSL" type="optional">
<
function-
arg-
description>
Use SSL for secure communication with the server
</
function-
arg-
description>
<
function-
arg-
property name="type" value="option"/>
<
function-
arg-
def name="dsTrustAll" type="optional">
<
function-
arg-
description>
Trust all server SSL certificates
</
function-
arg-
description>
<
function-
arg-
property name="type" value="option"/>
<
function-
arg-
def name="dsCertNickname" type="optional">
<
function-
arg-
description>
Nickname of certificate for SSL client authentication
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="dsProxyAs" type="optional">
<
function-
arg-
description>
Use the proxied authorization control with the given authorization ID
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="dsUsePasswordPolicyControl" type="optional">
<
function-
arg-
description>
Use the password policy request control
</
function-
arg-
description>
<
function-
arg-
property name="type" value="option"/>
<
function-
arg-
def name="dsSimplePageSize" type="optional">
<
function-
arg-
description>
Use the simple paged results control with the given page size
</
function-
arg-
description>
<
function-
arg-
property name="type" value="integer"/>
<
function-
arg-
def name="dsSortOrder" type="optional">
<
function-
arg-
description>
Sort the results using the provided sort order
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="dsVirtualListView" type="optional">
<
function-
arg-
description>
Use the virtual list view control to retrieve the specified results page
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="dsGetEffectiveRightsAuthzid" type="optional">
<
function-
arg-
description>
Use geteffectiverights control with the provided authzid
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="dsGetEffectiveRightsAttribute" type="optional">
<
function-
arg-
description>
Specifies geteffectiverights control specific attribute list
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="dsVersion" type="optional">
<
function-
arg-
description>
LDAP protocol version number
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="dsSizeLimit" type="optional">
<
function-
arg-
description>
Maximum number of entries to return from the search
</
function-
arg-
description>
<
function-
arg-
property name="type" value="integer"/>
<
function-
arg-
def name="dsDontWrap" type="optional">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="option"/>
<
function-
arg-
def name="dsVerbose" type="optional">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="option"/>
<
function-
arg-
def name="dsInstanceHost" type="optional">
<
function-
arg-
description>
Directory Server Host Name
</
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="integer"/>
<
function-
arg-
def name="dsInstanceDn" type="optional">
<
function-
arg-
description>
Directory Server Manager DN
</
function-
arg-
description>
<
function-
arg-
property name="type" value="dn"/>
<
function-
arg-
def name="dsInstancePswd" type="optional">
<
function-
arg-
description>
Directory Server Manager Password
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="dsScope" type="optional">
<
function-
arg-
description>
The scope of the search operation
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
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="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="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 search result in ldif format
</
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"/>
<
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="logStderr" type="optional" default="True">
<
function-
arg-
description>
If true, stderr for the command is redirect to stdout.
</
function-
arg-
description>
<
function-
arg-
property name="type" value="enum">
<
function-
arg-
property-
description>
This argument can only have boolean values
</
function-
arg-
property-
description>
<
function-
arg-
property-
data type="choice" value="True"/>
<
function-
arg-
property-
data type="choice" value="False"/>
<
function-
arg-
def name="knownIssue" type="optional" default="None">
<
function-
arg-
description>
Known issue. Corresponds to an issue number.
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string" />
<!-- Build the Command --> dsBinPath='%s/%s' % (dsPath,fileFolder)
if dsGetEffectiveRightsAttribute:
for attribute in dsGetEffectiveRightsAttribute:
if dsGetEffectiveRightsAuthzid:
if dsMatchedValuesFilter:
if dsTrustStorePasswordFile:
if dsKeyStorePasswordFile:
if dsUsePasswordPolicyControl:
outputPath = '%s/..' % (dsPath)
STAFCmdParams=' '.join(STAFCmdParamsList)
<
if expr="outputFile != 'None'">
<
call function="'runCommand'" >
{ 'name' : 'LDAP Search Script',
'arguments' : STAFCmdParams,
'outputFile': '%s/%s' % (outputPath, outputFile) ,
'expectedRC': expectedRC ,
<
call function="'runCommand'" >
{ 'name' : 'LDAP Search Script',
'arguments' : STAFCmdParams,
'expectedRC': expectedRC ,
<
function name="SearchObject">
This function searches the Directory Server with optional arguments possible
<
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="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="pathname"/>
<
function-
arg-
def name="dsInstanceHost" type="optional">
<
function-
arg-
description>
Directory Server Host Name
</
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="integer"/>
<
function-
arg-
def name="dsInstanceDn" type="optional">
<
function-
arg-
description>
Directory Server Manager DN
</
function-
arg-
description>
<
function-
arg-
property name="type" value="dn"/>
<
function-
arg-
def name="dsInstancePswd" type="optional">
<
function-
arg-
description>
Directory Server Manager Password
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="dsProxyDN" type="optional">
<
function-
arg-
description>
Directory Server Proxy DN
</
function-
arg-
description>
<
function-
arg-
property name="type" value="dn"/>
<
function-
arg-
def name="dsScope" type="optional">
<
function-
arg-
description>
The scope of the search operation
</
function-
arg-
description>
<
function-
arg-
property name="type" value="dn"/>
<
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="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="extraParams" type="optional">
<
function-
arg-
description>
Optional extra parameters for specific test cases
</
function-
arg-
description>
<
function-
arg-
property name="type" value="filter"/>
<
function-
arg-
def name="attributes" type="optional">
<
function-
arg-
description>
Optional Attributes to return
</
function-
arg-
description>
<
function-
arg-
property name="type" value="attributes"/>
<
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>
<
function-
arg-
property name="type" value="string" />
<!-- Build the Command --> dsBinPath='%s/%s' % (dsPath,fileFolder)
<!-- Set common ldap arguments --> <
call function="'_ldapCommonArgs'"/>
STAFCmdParams=' '.join(STAFCmdParamsList)
'%s %s' % (STAFCmd, STAFCmdParams)
<
call function="'runCommand'">
'arguments' : STAFCmdParams,
'expectedRC': expectedRC,
<
function name="SearchObjectNoPwd">
This function searches the Directory Server with optional arguments possible
<
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="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="pathname"/>
<
function-
arg-
def name="dsInstanceHost" type="optional">
<
function-
arg-
description>
Directory Server Host Name
</
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="integer"/>
<
function-
arg-
def name="dsInstanceDn" type="optional">
<
function-
arg-
description>
Directory Server Manager DN
</
function-
arg-
description>
<
function-
arg-
property name="type" value="dn"/>
<
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="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="extraParams" type="optional">
<
function-
arg-
description>
Optional extra parameters for specific test cases
</
function-
arg-
description>
<
function-
arg-
property name="type" value="filter"/>
<
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-
def name="knownIssue" type="optional" default="None">
<
function-
arg-
description>
Known issue. Corresponds to an issue number.
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string" />
<
call function="'runCommand'" >
{ 'name' : 'Search Base Object No Password',
'arguments' : '-h %s -p %s -D "%s" %s -b "%s" "%s"' % (dsInstanceHost,dsInstancePort,dsInstanceDn,extraParams,dsBaseDN,dsFilter),
'expectedRC': expectedRC,
<
function name="AnonSearchObject">
This function searches the Directory Server anonymously with optional arguments possible
<
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="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="pathname"/>
<
function-
arg-
def name="dsInstanceHost" type="optional">
<
function-
arg-
description>
Directory Server Host Name
</
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="integer"/>
<
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="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="extraParams" type="optional">
<
function-
arg-
description>
Optional extra parameters for specific test cases
</
function-
arg-
description>
<
function-
arg-
property name="type" value="filter"/>
<
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>
<
function-
arg-
property name="type" value="string" />
<
call function="'runCommand'" >
{ 'name' : 'Anonymous Search Base Object',
'arguments' : '-h %s -p %s %s -b "%s" "%s"' % (dsInstanceHost,dsInstancePort,extraParams,dsBaseDN,dsFilter),
'expectedRC': expectedRC,
<!-- ldapdelete Function With Script--> <
function name="ldapDeleteWithScript">
This function performs an ldapdelete using the script
<
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="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="hostname"/>
<
function-
arg-
def name="dsContinueOnError" type="optional">
<
function-
arg-
description>
Continue processing even if there are errors
</
function-
arg-
description>
<
function-
arg-
property name="type" value="option"/>
<
function-
arg-
def name="dsFilename" type="optional">
<
function-
arg-
description>
Specifies the LDIF file containing the changes to apply
</
function-
arg-
description>
<
function-
arg-
property name="type" value="filename"/>
<
function-
arg-
def name="dsHelp" type="optional">
<
function-
arg-
description>
Display this usage information
</
function-
arg-
description>
<
function-
arg-
property name="type" value="option"/>
<
function-
arg-
def name="dsEncoding" type="optional">
<
function-
arg-
description>
Use the specified character set for command-line input
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="dsBindPasswordFile" type="optional">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="filename"/>
<
function-
arg-
def name="dsControl" type="optional">
<
function-
arg-
description>
Use a request control with the provided information
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="dsKeyStorePath" type="optional">
<
function-
arg-
description>
Certificate keystore path
</
function-
arg-
description>
<
function-
arg-
property name="type" value="filename"/>
<
function-
arg-
def name="dsKeyStorePasswordFile" type="optional">
<
function-
arg-
description>
Certificate keystore PIN file
</
function-
arg-
description>
<
function-
arg-
property name="type" value="filename"/>
<
function-
arg-
def name="dsKeyStorePassword" type="optional">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="dsDryRun" type="optional">
<
function-
arg-
description>
Show what would be done but do not perform any operation
</
function-
arg-
description>
<
function-
arg-
property name="type" value="option"/>
<
function-
arg-
def name="dsSaslOption" type="optional">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="dsTrustStorePath" type="optional">
<
function-
arg-
description>
Certificate trust store path
</
function-
arg-
description>
<
function-
arg-
property name="type" value="filename"/>
<
function-
arg-
def name="dsTrustStorePassword" type="optional">
<
function-
arg-
description>
Certificate trust store PIN
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="dsTrustStorePasswordFile" type="optional">
<
function-
arg-
description>
Certificate trust store PIN file
</
function-
arg-
description>
<
function-
arg-
property name="type" value="filename"/>
<
function-
arg-
def name="dsUseStartTLS" type="optional">
<
function-
arg-
description>
Use StartTLS to secure communication with the server
</
function-
arg-
description>
<
function-
arg-
property name="type" value="option"/>
<
function-
arg-
def name="dsUseSASLExternal" type="optional">
<
function-
arg-
description>
Use the SASL EXTERNAL authentication mechanism
</
function-
arg-
description>
<
function-
arg-
property name="type" value="option"/>
<
function-
arg-
def name="dsUseSSL" type="optional">
<
function-
arg-
description>
Use SSL for secure communication with the server
</
function-
arg-
description>
<
function-
arg-
property name="type" value="option"/>
<
function-
arg-
def name="dsTrustAll" type="optional">
<
function-
arg-
description>
Trust all server SSL certificates
</
function-
arg-
description>
<
function-
arg-
property name="type" value="option"/>
<
function-
arg-
def name="dsVersion" type="optional">
<
function-
arg-
description>
Display Directory Server version information
</
function-
arg-
description>
<
function-
arg-
property name="type" value="option"/>
<
function-
arg-
def name="dsCertNickname" type="optional">
<
function-
arg-
description>
Nickname of certificate for SSL client authentication
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="dsLdapVersion" type="optional">
<
function-
arg-
description>
LDAP protocol version number
</
function-
arg-
description>
<
function-
arg-
property name="type" value="integer"/>
<
function-
arg-
def name="dsVerbose" type="optional">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="option"/>
<
function-
arg-
def name="dsDeleteSubtree" type="optional">
<
function-
arg-
description>
Delete the specified entry and all entries below it
</
function-
arg-
description>
<
function-
arg-
property name="type" value="option"/>
<
function-
arg-
def name="dsInstanceHost" type="optional">
<
function-
arg-
description>
Directory Server Host Name
</
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="integer"/>
<
function-
arg-
def name="dsInstanceDn" type="optional">
<
function-
arg-
description>
Directory Server Manager DN
</
function-
arg-
description>
<
function-
arg-
property name="type" value="dn"/>
<
function-
arg-
def name="dsInstancePswd" type="optional">
<
function-
arg-
description>
Directory Server Manager Password
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="dsDn" type="optional">
<
function-
arg-
description>
DNs of the entries to delete
</
function-
arg-
description>
<
function-
arg-
property name="type" value="dn"/>
<
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>
<
function-
arg-
property name="type" value="string" />
<!-- Build the Command --> dsBinPath='%s/%s' % (dsPath,fileFolder)
if dsTrustStorePasswordFile:
if dsKeyStorePasswordFile:
STAFCmdParams=' '.join(STAFCmdParamsList)
'%s %s' % (STAFCmd, STAFCmdParams)
<
call function="'runCommand'">
{ 'name' : 'LDAP Delete Script',
'arguments' : STAFCmdParams,
'expectedRC': expectedRC,
<
function name="DeleteEntry">
This function an entry in the Directory Server
<
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="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="dsBaseDN" type="required">
<
function-
arg-
description>
Entry to be deleted in the Directory Server
</
function-
arg-
description>
<
function-
arg-
property name="type" value="DN"/>
<
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="knownIssue" type="optional" default="None">
<
function-
arg-
description>
Known issue. Corresponds to an issue number.
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string" />
<!-- Build the Command --> dsBinPath='%s/%s' % (dsPath,fileFolder)
<!-- Set common ldap arguments --> <
call function="'_ldapCommonArgs'"/>
STAFCmdParams=' '.join(STAFCmdParamsList)
'%s %s' % (STAFCmd, STAFCmdParams)
<
call function="'runCommand'">
{ 'name' : 'Delete Object',
'arguments' : STAFCmdParams,
'expectedRC': expectedRC,
<!-- ldapcompare Function With Script--> <
function name="ldapCompareWithScript">
This function performs an ldapcompare using the script
<
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="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="hostname"/>
<
function-
arg-
def name="dsAssertionFilter" type="optional">
<
function-
arg-
description>
Use the LDAP assertion control with the provided filter
</
function-
arg-
description>
<
function-
arg-
property name="type" value="filter"/>
<
function-
arg-
def name="dsContinueOnError" type="optional">
<
function-
arg-
description>
Continue processing even if there are errors
</
function-
arg-
description>
<
function-
arg-
property name="type" value="option"/>
<
function-
arg-
def name="dsReportAuthzID" type="optional">
<
function-
arg-
description>
Use the authorization identity control
</
function-
arg-
description>
<
function-
arg-
property name="type" value="option"/>
<
function-
arg-
def name="dsFilename" type="optional">
<
function-
arg-
description>
Specifies the LDIF file containing the changes to apply
</
function-
arg-
description>
<
function-
arg-
property name="type" value="filename"/>
<
function-
arg-
def name="dsHelp" type="optional">
<
function-
arg-
description>
Display this usage information
</
function-
arg-
description>
<
function-
arg-
property name="type" value="option"/>
<
function-
arg-
def name="dsEncoding" type="optional">
<
function-
arg-
description>
Use the specified character set for command-line input
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="dsBindPasswordFile" type="optional">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="filename"/>
<
function-
arg-
def name="dsControl" type="optional">
<
function-
arg-
description>
Use a request control with the provided information
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="dsKeyStorePath" type="optional">
<
function-
arg-
description>
Certificate keystore path
</
function-
arg-
description>
<
function-
arg-
property name="type" value="filename"/>
<
function-
arg-
def name="dsKeyStorePasswordFile" type="optional">
<
function-
arg-
description>
Certificate keystore PIN file
</
function-
arg-
description>
<
function-
arg-
property name="type" value="filename"/>
<
function-
arg-
def name="dsKeyStorePassword" type="optional">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="dsDryRun" type="optional">
<
function-
arg-
description>
Show what would be done but do not perform any operation
</
function-
arg-
description>
<
function-
arg-
property name="type" value="option"/>
<
function-
arg-
def name="dsSaslOption" type="optional">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="dsTrustStorePath" type="optional">
<
function-
arg-
description>
Certificate trust store path
</
function-
arg-
description>
<
function-
arg-
property name="type" value="filename"/>
<
function-
arg-
def name="dsTrustStorePassword" type="optional">
<
function-
arg-
description>
Certificate trust store PIN
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="dsTrustStorePasswordFile" type="optional">
<
function-
arg-
description>
Certificate trust store PIN file
</
function-
arg-
description>
<
function-
arg-
property name="type" value="filename"/>
<
function-
arg-
def name="dsUseStartTLS" type="optional">
<
function-
arg-
description>
Use StartTLS to secure communication with the server
</
function-
arg-
description>
<
function-
arg-
property name="type" value="option"/>
<
function-
arg-
def name="dsUseSASLExternal" type="optional">
<
function-
arg-
description>
Use the SASL EXTERNAL authentication mechanism
</
function-
arg-
description>
<
function-
arg-
property name="type" value="option"/>
<
function-
arg-
def name="dsUseSSL" type="optional">
<
function-
arg-
description>
Use SSL for secure communication with the server
</
function-
arg-
description>
<
function-
arg-
property name="type" value="option"/>
<
function-
arg-
def name="dsTrustAll" type="optional">
<
function-
arg-
description>
Trust all server SSL certificates
</
function-
arg-
description>
<
function-
arg-
property name="type" value="option"/>
<
function-
arg-
def name="dsVersion" type="optional">
<
function-
arg-
description>
Display Directory Server version information
</
function-
arg-
description>
<
function-
arg-
property name="type" value="option"/>
<
function-
arg-
def name="dsCertNickname" type="optional">
<
function-
arg-
description>
Nickname of certificate for SSL client authentication
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="dsLdapVersion" type="optional">
<
function-
arg-
description>
LDAP protocol version number
</
function-
arg-
description>
<
function-
arg-
property name="type" value="integer"/>
<
function-
arg-
def name="dsVerbose" type="optional">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="option"/>
<
function-
arg-
def name="dsInstanceHost" type="optional">
<
function-
arg-
description>
Directory Server Host Name
</
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="integer"/>
<
function-
arg-
def name="dsInstanceDn" type="optional">
<
function-
arg-
description>
Directory Server Manager DN
</
function-
arg-
description>
<
function-
arg-
property name="type" value="dn"/>
<
function-
arg-
def name="dsInstancePswd" type="optional">
<
function-
arg-
description>
Directory Server Manager Password
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="dsAttributeValue" type="optional">
<
function-
arg-
description>
Attribute:value assertion argument
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="dsDn" type="optional">
<
function-
arg-
description>
DNs of the entries for with to perform the compare operations
</
function-
arg-
description>
<
function-
arg-
property name="type" value="dn"/>
<
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>
<
function-
arg-
property name="type" value="string" />
<!-- Build the Command --> dsBinPath='%s/%s' % (dsPath,fileFolder)
if dsTrustStorePasswordFile:
if dsKeyStorePasswordFile:
STAFCmdParams=' '.join(STAFCmdParamsList)
<
call function="'runCommand'" >
{ 'name' : 'LDAP Compare Script',
'arguments' : STAFCmdParams,
'expectedRC': expectedRC,
<
function name="compareEntry">
This function compares the attribute and value an entry to the Directory Server
<
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="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="attrToBeCompared" type="required">
<
function-
arg-
description>
Attribute to be compared in Directory Server
</
function-
arg-
description>
<
function-
arg-
property name="type" value="attribute"/>
<
function-
arg-
def name="entryToBeCompared" type="required">
<
function-
arg-
description>
Entry to be compared in Directory Server
</
function-
arg-
description>
<
function-
arg-
property name="type" value="DN"/>
<
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="knownIssue" type="optional" default="None">
<
function-
arg-
description>
Known issue. Corresponds to an issue number.
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string" />
<!-- Build the Command --> dsBinPath='%s/%s' % (dsPath,fileFolder)
<!-- Set common ldap arguments --> <
call function="'_ldapCommonArgs'"/>
STAFCmdParams=' '.join(STAFCmdParamsList)
<
call function="'runCommand'" >
{ 'name' : 'Compare Object',
'arguments' : STAFCmdParams,
'expectedRC': expectedRC,
<
function name="_ldapCommonArgs">
This function resolves common ldap arguments
<!-- ldappasswordmodify Function With Script--> <
function name="ldapPasswordModifyWithScript">
This function performs an ldappasswordmodify using the script
<
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="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="hostname"/>
<
function-
arg-
def name="dsHelp" type="optional">
<
function-
arg-
description>
Display this usage information
</
function-
arg-
description>
<
function-
arg-
property name="type" value="option"/>
<
function-
arg-
def name="dsBindPasswordFile" type="optional">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="filename"/>
<
function-
arg-
def name="dsKeyStorePath" type="optional">
<
function-
arg-
description>
Certificate keystore path
</
function-
arg-
description>
<
function-
arg-
property name="type" value="filename"/>
<
function-
arg-
def name="dsKeyStorePasswordFile" type="optional">
<
function-
arg-
description>
Certificate keystore PIN file
</
function-
arg-
description>
<
function-
arg-
property name="type" value="filename"/>
<
function-
arg-
def name="dsKeyStorePassword" type="optional">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="dsTrustStorePath" type="optional">
<
function-
arg-
description>
Certificate trust store path
</
function-
arg-
description>
<
function-
arg-
property name="type" value="filename"/>
<
function-
arg-
def name="dsTrustStorePassword" type="optional">
<
function-
arg-
description>
Certificate trust store PIN
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="dsTrustStorePasswordFile" type="optional">
<
function-
arg-
description>
Certificate trust store PIN file
</
function-
arg-
description>
<
function-
arg-
property name="type" value="filename"/>
<
function-
arg-
def name="dsUseStartTLS" type="optional">
<
function-
arg-
description>
Use StartTLS to secure communication with the server
</
function-
arg-
description>
<
function-
arg-
property name="type" value="option"/>
<
function-
arg-
def name="dsUseSSL" type="optional">
<
function-
arg-
description>
Use SSL for secure communication with the server
</
function-
arg-
description>
<
function-
arg-
property name="type" value="option"/>
<
function-
arg-
def name="dsTrustAll" type="optional">
<
function-
arg-
description>
Trust all server SSL certificates
</
function-
arg-
description>
<
function-
arg-
property name="type" value="option"/>
<
function-
arg-
def name="dsAuthzID" type="optional">
<
function-
arg-
description>
Specifies the authorization ID for the user entry whose password should be changed
</
function-
arg-
description>
<
function-
arg-
property name="type" value="dn"/>
<
function-
arg-
def name="dsProvideDNForAuthzID" type="optional">
<
function-
arg-
description>
Indicates that the bind DN should be used as the authorization ID for the password modify operation
</
function-
arg-
description>
<
function-
arg-
property name="type" value="dn"/>
<
function-
arg-
def name="dsCurrentPassword" type="optional">
<
function-
arg-
description>
Specifies the current password for the target user
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="dsCurrentPasswordFile" type="optional">
<
function-
arg-
description>
Specifies the path to a file containing the current password for the target user
</
function-
arg-
description>
<
function-
arg-
property name="type" value="filename"/>
<
function-
arg-
def name="dsNewPassword" type="optional">
<
function-
arg-
description>
Specifies the new password for the target user
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="dsNewPasswordFile" type="optional">
<
function-
arg-
description>
Specifies the path to a file containing the new password for the target user
</
function-
arg-
description>
<
function-
arg-
property name="type" value="filename"/>
<
function-
arg-
def name="dsVersion" type="optional">
<
function-
arg-
description>
Display Directory Server version information
</
function-
arg-
description>
<
function-
arg-
property name="type" value="option"/>
<
function-
arg-
def name="dsInstanceHost" type="optional">
<
function-
arg-
description>
Directory Server Host Name
</
function-
arg-
description>
<
function-
arg-
property name="type" value="hostname"/>
<
function-
arg-
def name="dsSaslOption" type="optional">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="dsInstancePort" type="optional">
<
function-
arg-
description>
Directory Server Port Number
</
function-
arg-
description>
<
function-
arg-
property name="type" value="integer"/>
<
function-
arg-
def name="dsInstanceDn" type="optional">
<
function-
arg-
description>
Directory Server Manager DN
</
function-
arg-
description>
<
function-
arg-
property name="type" value="dn"/>
<
function-
arg-
def name="dsInstancePswd" type="optional">
<
function-
arg-
description>
Directory Server Manager Password
</
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="knownIssue" type="optional" default="None">
<
function-
arg-
description>
Known issue. Corresponds to an issue number.
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string" />
<!-- Build the Command --> dsBinPath='%s/%s' % (dsPath,fileFolder)
if dsProvideDNForAuthzID:
if dsCurrentPasswordFile:
if dsTrustStorePasswordFile:
if dsKeyStorePasswordFile:
STAFCmdParams=' '.join(STAFCmdParamsList)
<
call function="'runCommand'" >
{ 'name' : 'LDAP Password Modify Script',
'arguments' : STAFCmdParams,
'expectedRC': expectedRC,
<!-- Modify an attribute --> <
function name="modifyAnAttribute">
This function modifies an entry in the Directory Server
<
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="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,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" default="STAF_REMOTE_HOSTNAME">
<
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="required">
<
function-
arg-
description>
Directory server port number
</
function-
arg-
description>
<
function-
arg-
property name="type" value="Port number"/>
<
function-
arg-
def name="dsInstanceDn" type="required">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="DN"/>
<
function-
arg-
def name="dsInstancePswd" type="required">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="DNToModify" type="required">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="DN"/>
<
function-
arg-
def name="attributeName" type="optional">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="newAttributeValue" type="optional">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="listAttributes" type="optional" default="' '">
<
function-
arg-
description>
List of attributes name and value to modify. The format is name:value
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="changetype" type="required">
<
function-
arg-
description>
Type of modification, can be delete, add, replace
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="suppressTestStatus" type="optional" default="0">
<
function-
arg-
description>
Supress the call to checkTestRC
</
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="string"/>
<
function-
arg-
def name="knownIssue" type="optional" default="None">
<
function-
arg-
description>
Known issue. Corresponds to an issue number.
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string" />
<!-- Build the Command --> <!-- Set common ldap arguments --> <
call function="'_ldapCommonArgs'"/>
<
if expr="listAttributes != ' '">
<
iterate var="anAttributeToModify" in="listAttributes">
STAFCmdParams=' '.join(STAFCmdParamsList)
STAFCmd='modifyAnAttribute'
<
if expr="suppressTestStatus == '1'">
<
call function="'runCommand'" >
{ 'name' : 'Modify An Attribute value',
'arguments' : '%s %s' % (STAFCmd,STAFCmdParams),
'expectedRC': expectedRC,
<!-- Create a load on Directory with modifies --> <
function name="loadOfModifies">
This function creates a load of modifies against Directory. It is only for entries with uid=
user.xxx. <
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="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" default="STAF_REMOTE_HOSTNAME">
<
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="required">
<
function-
arg-
description>
Directory server port number
</
function-
arg-
description>
<
function-
arg-
property name="type" value="Port number"/>
<
function-
arg-
def name="dsInstanceDn" type="required">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="DN"/>
<
function-
arg-
def name="dsInstancePswd" type="required">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="partialDNToModify" type="required">
<
function-
arg-
description>
partial DN to modify, all but the uid=
user.xxxx </
function-
arg-
description>
<
function-
arg-
property name="type" value="DN"/>
<
function-
arg-
def name="attributeName" type="optional">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="newAttributeValue" type="optional">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="listAttributes" type="optional" default="' '">
<
function-
arg-
description>
List of attributes name and value to modify. The format is name:value
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="changetype" type="required">
<
function-
arg-
description>
Type of modification, can be delete, add, replace
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="numEntries" type="required">
<
function-
arg-
description>
Number of entries to modify
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="clientID" type="optional">
<
function-
arg-
description>
ID for the client doing the modify
</
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="string"/>
curr_dn="uid=user.%s,%s" % (curr_rdn_num, partialDNToModify)
'****From client, %s, Modifying %s' % (clientID,curr_dn)
<
call function="'modifyAnAttribute'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
'attributeName' : 'description' ,
'newAttributeValue' : 'New description for %s' % curr_dn ,
'changetype' : 'replace' ,
'suppressTestStatus' : '1' }
<
function name="addAnEntry">
This function modifies an entry in the Directory Server
<
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="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,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" default="STAF_REMOTE_HOSTNAME">
<
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="required">
<
function-
arg-
description>
Directory server port number
</
function-
arg-
description>
<
function-
arg-
property name="type" value="Port number"/>
<
function-
arg-
def name="dsInstanceDn" type="required">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="DN"/>
<
function-
arg-
def name="dsInstancePswd" type="required">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="DNToAdd" type="required">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="DN"/>
<
function-
arg-
def name="listAttributes" type="required">
<
function-
arg-
description>
</
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-
def name="knownIssue" type="optional" default="None">
<
function-
arg-
description>
Known issue. Corresponds to an issue number.
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string" />
<!-- Set common ldap arguments --> <
call function="'_ldapCommonArgs'"/>
<
iterate var="anAttributeToAdd" in="listAttributes">
STAFCmdParams=' '.join(STAFCmdParamsList)
<
call function="'runCommand'" >
{ 'name' : 'Add New Entry',
'arguments' : '%s %s' % (STAFCmd,STAFCmdParams),
'expectedRC': expectedRC,
<
function name="modifyDn">
This function renames an entry, either by a modRDN or by a modDN
<
function-
arg-
def name="location" default="STAF_REMOTE_HOSTNAME">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="hostname"/>
<
function-
arg-
def name="dsPath" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)">
<
function-
arg-
description>
Pathname to installation root
</
function-
arg-
description>
<
function-
arg-
property name="type" value="filepath"/>
<
function-
arg-
def name="dsInstanceHost" default="STAF_REMOTE_HOSTNAME">
<
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="required">
<
function-
arg-
description>
Directory server port number
</
function-
arg-
description>
<
function-
arg-
property name="type" value="Port number"/>
<
function-
arg-
def name="dsInstanceDn" type="required">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="DN"/>
<
function-
arg-
def name="dsInstancePswd" type="required">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="DNToModify" type="required">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="DN"/>
<
function-
arg-
def name="newRDN" <
function-
arg-
description>
New rdn name : ie uid=jdoe_bis. If not passed, the newRDN will be the
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="deleteOldRDN" <
function-
arg-
description>
1 : delete old rdn, 0 do not delete old rdn, default value is 1
</
function-
arg-
description>
<
function-
arg-
property name="type" value="integer"/>
<
function-
arg-
def name="newSuperior" <
function-
arg-
description>
New parent entry for the entry
</
function-
arg-
description>
<
function-
arg-
property name="type" value="DN"/>
<
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>
<
function-
arg-
property name="type" value="string" />
<!-- Set common ldap arguments --> <
call function="'_ldapCommonArgs'" />
STAFCmdParams=' '.join(STAFCmdParamsList)
<
call function="'runCommand'" >
'arguments' : '%s %s' % (STAFCmd,STAFCmdParams),
'expectedRC': expectedRC,
<!-- Modify an attribute --> <
function name="saslSearch">
This function searches the Directory Server using SASL authentication
<
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="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,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" default="STAF_REMOTE_HOSTNAME">
<
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="required">
<
function-
arg-
description>
Directory server port number
</
function-
arg-
description>
<
function-
arg-
property name="type" value="Port number"/>
<
function-
arg-
def name="dsScope" type="optional">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="dsBaseDN" type="required">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="DN"/>
<
function-
arg-
def name="dsFilter" type="required">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="mechanism" type="required">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="authenticationId" type="required">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="DN"/>
<
function-
arg-
def name="password" type="required">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="authorizationId" type="optional">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="DN"/>
<
function-
arg-
def name="realm" type="optional">
<
function-
arg-
description>
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="protection" type="optional">
<
function-
arg-
description>
Quality of protection (auth / auth-int / auth-conf)
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="strength" type="optional">
<
function-
arg-
description>
Cipher strength (low / medium / high)
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="maxbuffersize" type="optional">
<
function-
arg-
description>
Maximum receive buffer size.
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="suppressTestStatus" type="optional" default="0">
<
function-
arg-
description>
Supress the call to checkTestRC
</
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="string"/>
<
function-
arg-
def name="knownIssue" type="optional" default="None">
<
function-
arg-
description>
Known issue. Corresponds to an issue number.
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string" />
<!-- Build the Command --> <!-- Set common ldap arguments --> <
call function="'_ldapCommonArgs'"/>
STAFCmdParams=' '.join(STAFCmdParamsList)
STAFCmd='saslSearchClient'
<
if expr="suppressTestStatus == '1'">
<
call function="'runCommand'" >
{ 'name' : 'Modify An Attribute value',
'arguments' : '%s %s' % (STAFCmd,STAFCmdParams),
'expectedRC': expectedRC,
<
function name="SearchExternalChangelog">
This function searches the external changelog
<
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="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="pathname"/>
<
function-
arg-
def name="dsInstanceHost" type="optional">
<
function-
arg-
description>
Directory Server Host Name
</
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="integer"/>
<
function-
arg-
def name="dsInstanceDn" type="optional">
<
function-
arg-
description>
Directory Server Manager DN
</
function-
arg-
description>
<
function-
arg-
property name="type" value="dn"/>
<
function-
arg-
def name="dsInstancePswd" type="optional">
<
function-
arg-
description>
Directory Server Manager Password
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="dsScope" type="optional">
<
function-
arg-
description>
The scope of the search operation
</
function-
arg-
description>
<
function-
arg-
property name="type" value="dn"/>
<
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="dsFilter" type="required">
<
function-
arg-
description>
The filter for the search operation
</
function-
arg-
description>
<
function-
arg-
property name="type" value="filter"/>
<
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="attributes" type="optional">
<
function-
arg-
description>
Optional Attributes to return
</
function-
arg-
description>
<
function-
arg-
property name="type" value="attributes"/>
<
function-
arg-
def name="changelogCookie" <
function-
arg-
description>
Changelog cookie of the last change retrieved.
(OpenDS external changelog => non draft-compatible mode)
</
function-
arg-
description>
<
function-
arg-
property name="type" value="string"/>
<
function-
arg-
def name="changeNumberFilter" <
function-
arg-
description>
Changenumber corresponding to the last change retrieved.
(Changelog draft-compatible mode)
</
function-
arg-
description>
<
function-
arg-
property name="type" value="filter"/>
<
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>
<
function-
arg-
property name="type" value="string" />
<!-- Build the Command --> dsBinPath='%s/%s' % (dsPath,fileFolder)
<!-- Set common ldap arguments --> <
call function="'_ldapCommonArgs'"/>
control = '1.3.6.1.4.1.26027.1.5.4:false:%s' % changelogCookie
searchFilter = '&%s%s' % (changeNumberFilter, dsFilter)
STAFCmdParams=' '.join(STAFCmdParamsList)
'%s %s' % (STAFCmd, STAFCmdParams)
<
call function="'runCommand'">
'arguments' : STAFCmdParams,
'expectedRC': expectedRC,