This function adds an entry to the Directory Server from an ldif file
Location of target host
Pathname to installation root
Directory server hostname or IP address
Directory server port number
Bind DN
Bind password
Entry to be added to Directory Server in ldif format
Optional extra parameters for specific test cases
Expected return code value. Default value is 0
'%s %s' % (STAFCmd, STAFCmdParams)
'%s' % mylocation
'%s' % STAFCmd
'%s' % STAFCmdParams
'%s' % dsBinPath
['PATH=/bin:/usr/bin:%s' % dsBinPath, 'JAVA_HOME=%s' % JAVA_HOME]
{ 'returncode' : STAXCode ,
'result' : STAXReason,
'expected' : expectedRC }
STAXReason
This function performs an ldapmodify using the script
Location of target host
Pathname to installation root
Continue processing even if there are errors
Use the LDAP assertion control with the provided filter
Continue processing even if there are errors
Use the authorization identity control
Specifies the LDIF file containing the changes to apply
Display this usage information
Use the specified character set for command-line input
Bind password file
Use a request control with the provided information
Certificate keystore path
Certificate keystore PIN file
Certificate keystore PIN
Show what would be done but do not perform any operation
SASL bind options
Certificate trust store path
Certificate trust store PIN
Certificate trust store PIN file
Use StartTLS to secure communication with the server
Use the SASL EXTERNAL authentication mechanism
Use SSL for secure communication with the server
Trust all server SSL certificates
Display Directory Server version information
Nickname of certificate for SSL client authentication
Use the proxied authorization control with the given authorization ID
Use the LDAP ReadEntry pre-read control
Use the LDAP ReadEntry post-read control
LDAP protocol version number
Use verbose mode
Directory Server Host Name
Directory Server Port Number
Directory Server Manager DN
Directory Server Manager Password
Expected return code value. Default value is 0
'%s %s' % (STAFCmd, STAFCmdParams)
'%s' % location
'%s' % STAFCmd
'%s' % STAFCmdParams
'%s' % dsBinPath
['PATH=/bin:/usr/bin:%s' % dsBinPath, 'JAVA_HOME=%s' % JAVA_HOME]
{ 'returncode' : STAXCode ,
'result' : STAXReason,
'expected' : expectedRC }
STAXReason
This function modifies an entry in the Directory Server
Location of target host
Pathname to installation root
Directory server hostname or IP address
Directory server port number
Bind DN
Bind password
Entry to be modified in the Directory Server in ldif format
Optional extra parameters for specific test cases
Expected return code value. Default value is 0
'%s %s' % (STAFCmd, STAFCmdParams)
'%s' % location
'%s' % STAFCmd
'%s' % STAFCmdParams
'%s' % dsBinPath
['PATH=/bin:/usr/bin:%s' % dsBinPath, 'JAVA_HOME=%s' % JAVA_HOME]
{ 'returncode' : STAXCode ,
'result' : STAXReason,
'expected' : expectedRC }
STAXReason
This function performs an ldapsearch using the script
Location of target host
Pathname to installation root
Specifies dereference alias policy
Specifies to only include attribute type names
Use the LDAP assertion control with the provided filter
Continue processing even if there are errors
Use the persistent search control
Count the number of entries returned by the server
Use the authorization identity control
File containing a list of search filter strings
Display this usage information
Use the specified character set for command-line input
Bind password file
Use a request control with the provided information
Certificate keystore path
Certificate keystore PIN file
Certificate keystore PIN
Maximum length of time in seconds to allow for the search
Use the LDAP matched values control with the provided filter
Show what would be done but do not perform any operation
SASL bind options
Certificate trust store path
Certificate trust store PIN
Certificate trust store PIN file
Use StartTLS to secure communication with the server
Use the SASL EXTERNAL authentication mechanism
Use SSL for secure communication with the server
Trust all server SSL certificates
Nickname of certificate for SSL client authentication
Use the proxied authorization control with the given authorization ID
Use the password policy request control
Use the simple paged results control with the given page size
Sort the results using the provided sort order
Use the virtual list view control to retrieve the specified results page
Use geteffectiverights control with the provided authzid
Specifies geteffectiverights control specific attribute list
LDAP protocol version number
Maximum number of entries to return from the search
Do not wrap long lines
Use verbose mode
Directory Server Host Name
Directory Server Port Number
Directory Server Manager DN
Directory Server Manager Password
The scope of the search operation
The baseDN for the search operation
The filter for the search operation
Only return these attributes
Output file containing the search result in ldif format.
Expected return code value. Default value is 0
'%s %s' % (STAFCmd, STAFCmdParams)
'%s' % location
'%s' % STAFCmd
'%s' % STAFCmdParams
'%s' % dsBinPath
['PATH=/bin:/usr/bin:%s' % dsBinPath, 'JAVA_HOME=%s' % JAVA_HOME]
'%s/../%s' % (dsPath,outputFile)
{ 'returncode' : STAXCode ,
'result' : STAXReason,
'expected' : expectedRC }
STAXReason
This function searches the Directory Server with optional arguments possible
Location of target host
Pathname to installation root
Directory Server Host Name
Directory Server Port Number
Directory Server Manager DN
Directory Server Manager Password
Directory Server Proxy DN
The scope of the search operation
The baseDN for the search operation
The filter for the search operation
Optional extra parameters for specific test cases
Optional Attributes to return
Expected return code value. Default value is 0. Wildcard 'noCheck' to not check the RC
'%s %s' % (STAFCmd, STAFCmdParams)
'%s' % location
'%s' % STAFCmd
'%s' % STAFCmdParams
'%s' % dsBinPath
['PATH=/bin:/usr/bin:%s' % dsBinPath, 'JAVA_HOME=%s' % JAVA_HOME]
{ 'returncode' : STAXCode ,
'result' : STAXReason ,
'expected' : expectedRC }
STAXReason
This function searches the Directory Server with optional arguments possible
Location of target host
Pathname to installation root
Directory Server Host Name
Directory Server Port Number
Directory Server Manager DN
The baseDN for the search operation
The filter for the search operation
Optional extra parameters for specific test cases
expected value. Default is 0
'ldapsearch%s -h %s -p %s -D "%s" %s -b "%s" "%s"' % (fileExt,dsInstanceHost,dsInstancePort,dsInstanceDn,extraParams,dsBaseDN,dsFilter)
'%s' % location
'%s/ldapsearch%s' % (dsBinPath,fileExt)
'-h %s -p %s -D "%s" %s -b "%s" "%s"' % (dsInstanceHost,dsInstancePort,dsInstanceDn,extraParams,dsBaseDN,dsFilter)
'%s' % dsBinPath
['PATH=/bin:/usr/bin:%s' % dsBinPath, 'JAVA_HOME=%s' % JAVA_HOME]
{ 'returncode' : STAXCode ,
'result' : STAXReason,
'expected' : expectedRC }
STAXReason
This function searches the Directory Server anonymously with optional arguments possible
Location of target host
Pathname to installation root
Directory Server Host Name
Directory Server Port Number
The baseDN for the search operation
The filter for the search operation
Optional extra parameters for specific test cases
Expected return code value. Default value is 0
'ldapsearch%s -h %s -p %s %s -b "%s" "%s"' % (fileExt,dsInstanceHost,dsInstancePort,extraParams,dsBaseDN,dsFilter)
'%s' % location
'%s/ldapsearch%s' % (dsBinPath,fileExt)
'-h %s -p %s %s -b "%s" "%s"' % (dsInstanceHost,dsInstancePort,extraParams,dsBaseDN,dsFilter)
'%s' % dsBinPath
['PATH=/bin:/usr/bin:%s' % dsBinPath, 'JAVA_HOME=%s' % JAVA_HOME]
{ 'returncode' : STAXCode ,
'result' : STAXReason,
'expected' : expectedRC }
STAXReason
This function performs an ldapdelete using the script
Location of target host
Pathname to installation root
Continue processing even if there are errors
Specifies the LDIF file containing the changes to apply
Display this usage information
Use the specified character set for command-line input
Bind password file
Use a request control with the provided information
Certificate keystore path
Certificate keystore PIN file
Certificate keystore PIN
Show what would be done but do not perform any operation
SASL bind options
Certificate trust store path
Certificate trust store PIN
Certificate trust store PIN file
Use StartTLS to secure communication with the server
Use the SASL EXTERNAL authentication mechanism
Use SSL for secure communication with the server
Trust all server SSL certificates
Display Directory Server version information
Nickname of certificate for SSL client authentication
LDAP protocol version number
Use verbose mode
Delete the specified entry and all entries below it
Directory Server Host Name
Directory Server Port Number
Directory Server Manager DN
Directory Server Manager Password
DNs of the entries to delete
Expected return code value. Default value is 0
'%s %s' % (STAFCmd, STAFCmdParams)
'%s' % location
'%s' % STAFCmd
'%s' % STAFCmdParams
'%s' % dsBinPath
['PATH=/bin:/usr/bin:%s' % dsBinPath, 'JAVA_HOME=%s' % JAVA_HOME]
{ 'returncode' : STAXCode ,
'result' : STAXReason,
'expected' : expectedRC }
STAXReason
This function an entry in the Directory Server
Location of target host
Pathname to installation root
Directory server hostname or IP address
Directory server port number
Bind DN
Bind password
Entry to be deleted in the Directory Server
Optional extra parameters for specific test cases
Expected return code value. Default value is 0
'%s %s' % (STAFCmd, STAFCmdParams)
'%s' % location
'%s' % STAFCmd
'%s' % STAFCmdParams
'%s' % dsBinPath
['PATH=/bin:/usr/bin:%s' % dsBinPath, 'JAVA_HOME=%s' % JAVA_HOME]
{ 'returncode' : STAXCode ,
'result' : STAXReason,
'expected' : expectedRC }
STAXReason
This function performs an ldapcompare using the script
Location of target host
Pathname to installation root
Use the LDAP assertion control with the provided filter
Continue processing even if there are errors
Specifies the LDIF file containing the changes to apply
Display this usage information
Use the specified character set for command-line input
Bind password file
Use a request control with the provided information
Certificate keystore path
Certificate keystore PIN file
Certificate keystore PIN
Show what would be done but do not perform any operation
SASL bind options
Certificate trust store path
Certificate trust store PIN
Certificate trust store PIN file
Use StartTLS to secure communication with the server
Use the SASL EXTERNAL authentication mechanism
Use SSL for secure communication with the server
Trust all server SSL certificates
Display Directory Server version information
Nickname of certificate for SSL client authentication
LDAP protocol version number
Use verbose mode
Directory Server Host Name
Directory Server Port Number
Directory Server Manager DN
Directory Server Manager Password
Attribute:value assertion argument
DNs of the entries for with to perform the compare operations
Expected return code value. Default value is 0
'%s %s' % (STAFCmd, STAFCmdParams)
'%s' % location
'%s' % STAFCmd
'%s' % STAFCmdParams
'%s' % dsBinPath
['PATH=/bin:/usr/bin:%s' % dsBinPath, 'JAVA_HOME=%s' % JAVA_HOME]
{ 'returncode' : STAXCode ,
'result' : STAXReason,
'expected' : expectedRC }
STAXReason
This function compares the attribute and value an entry to the Directory Server
Location of target host
Pathname to installation root
Directory server hostname or IP address
Directory server port number
Bind DN
Bind password
Attribute to be compared in Directory Server
Entry to be compared in Directory Server
Optional extra parameters for specific test cases
Expected return code value. Default value is 0
'%s %s' % (STAFCmd, STAFCmdParams)
'%s' % location
'%s' % STAFCmd
'%s' % STAFCmdParams
'%s' % dsBinPath
['PATH=/bin:/usr/bin:%s' % dsBinPath, 'JAVA_HOME=%s' % JAVA_HOME]
{ 'returncode' : STAXCode ,
'result' : STAXReason,
'expected' : expectedRC }
STAXReason
This function resolves common ldap arguments
This function performs an ldappasswordmodify using the script
Location of target host
Pathname to installation root
Display this usage information
Bind password file
Certificate keystore path
Certificate keystore PIN file
Certificate keystore PIN
Certificate trust store path
Certificate trust store PIN
Certificate trust store PIN file
Use StartTLS to secure communication with the server
Use SSL for secure communication with the server
Trust all server SSL certificates
Specifies the authorization ID for the user entry whose password should be changed
Indicates that the bind DN should be used as the authorization ID for the password modify operation
Specifies the current password for the target user
Specifies the path to a file containing the current password for the target user
Specifies the new password for the target user
Specifies the path to a file containing the new password for the target user
Display Directory Server version information
Directory Server Host Name
Directory Server Port Number
Directory Server Manager DN
Directory Server Manager Password
Expected return code value. Default value is 0
'%s %s' % (STAFCmd, STAFCmdParams)
'%s' % location
'%s' % STAFCmd
'%s' % STAFCmdParams
'%s' % dsBinPath
['PATH=/bin:/usr/bin:%s' % dsBinPath, 'JAVA_HOME=%s' % JAVA_HOME]
{ 'returncode' : STAXCode ,
'result' : STAXReason,
'expected' : expectedRC }
STAXReason
This function modifies an entry in the Directory Server
Location of target host
Pathname to installation root
Directory server hostname or IP address
Directory server port number
Bind DN
Bind password
DN to modify
Attribute to modify
New Attribute Value
List of attributes name and value to modify. The format is name:value
Type of modification, can be delete, add, replace
Expected return code value. Default value is 0
'%s' % location
'java'
'%s' % TESTS_JAVA_DIR
'%s %s' % (STAFCmd,STAFCmdParams)
['PATH=/bin:/usr/bin:%s/bin' % dsPath, 'JAVA_HOME=%s' % JAVA_HOME,'CLASSPATH=%s' % TESTS_JAVA_DIR]
{ 'returncode' : STAXCode ,
'result' : STAXReason,
'expected' : expectedRC }
STAXReason
This function modifies an entry in the Directory Server
Location of target host
Pathname to installation root
Directory server hostname or IP address
Directory server port number
Bind DN
Bind password
DN to add
Attributes to add
expected value. Default is 0
'%s' % location
'java'
'%s' % TESTS_JAVA_DIR
'%s %s' % (STAFCmd,STAFCmdParams)
['PATH=/bin:/usr/bin:%s/bin' % dsPath, 'JAVA_HOME=%s' % JAVA_HOME,'CLASSPATH=%s' % TESTS_JAVA_DIR]
{ 'returncode' : STAXCode ,
'result' : STAXReason,
'expected' : expectedRC }
STAXReason
This function rename the rdn
Location of target host
Pathname to installation root
Directory server hostname or IP address
Directory server port number
Bind DN
Bind password
DN to modify
new rdn name : ie uid=jdoe_bis
1 : delete old rdn, 0 do not delete old rdn, default value is 1
Expected return code value. Default value is 0
'%s' % location
'java'
'%s' % TESTS_JAVA_DIR
'%s %s' % (STAFCmd,STAFCmdParams)
['PATH=/bin:/usr/bin:%s/bin' % dsPath, 'JAVA_HOME=%s' % JAVA_HOME,'CLASSPATH=%s' % TESTS_JAVA_DIR]
{ 'returncode' : STAXCode ,
'result' : STAXReason,
'expected' : expectedRC }
STAXReason