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 Wildcard 'noCheck' to not check the RC Display (or not) output. Known issue. Corresponds to an issue number. { 'command' : STAFCmd, 'arguments' : STAFCmdParams, 'location' : mylocation, 'name' : 'Add Entry From LDIF', 'expectedRC' : expectedRC, 'knownIssue' : knownIssue } STAXResult This function performs an ldapmodify using the script Location of target host Pathname to installation root Add the entries 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 Wildcard 'noCheck' to not check the RC Known issue. Corresponds to an issue number. '%s %s' % (STAFCmd, STAFCmdParams) { 'name' : 'LDAP Modify Script', 'command' : STAFCmd, 'arguments' : STAFCmdParams, 'location' : location, 'expectedRC': expectedRC, 'knownIssue': knownIssue } STAXResult 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 Wildcard 'noCheck' to not check the RC Known issue. Corresponds to an issue number. '%s %s' % (STAFCmd, STAFCmdParams) { 'location' : location, 'command' : STAFCmd, 'arguments' : STAFCmdParams, 'name' : 'Modify Entry from ldif file', 'expectedRC': expectedRC, 'knownIssue': knownIssue } STAXResult 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 Optional extra parameters for specific test cases The filter for the search operation Only return these attributes Output file containing the search result in ldif format Path containing the outputFile Expected return code value. Default value is 0 Wildcard 'noCheck' to not check the RC If true, stderr for the command is redirect to stdout. This argument can only have boolean values Known issue. Corresponds to an issue number. { 'name' : 'LDAP Search Script', 'command' : STAFCmd, 'arguments' : STAFCmdParams, 'location' : location, 'outputFile': '%s/%s' % (outputPath, outputFile) , 'expectedRC': expectedRC , 'logStderr' : logStderr, 'knownIssue': knownIssue } { 'name' : 'LDAP Search Script', 'command' : STAFCmd, 'arguments' : STAFCmdParams, 'location' : location, 'expectedRC': expectedRC , 'logStderr' : logStderr, 'knownIssue': knownIssue } STAXResult 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 Known issue. Corresponds to an issue number. '%s %s' % (STAFCmd, STAFCmdParams) { 'command' : STAFCmd, 'arguments' : STAFCmdParams, 'location' : location, 'name' : 'ldapsearch', 'expectedRC': expectedRC, 'knownIssue': knownIssue } STAXResult 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 return code value. Default value is 0 Wildcard 'noCheck' to not check the RC Known issue. Corresponds to an issue number. { 'name' : 'Search Base Object No Password', 'command' : '%s/ldapsearch%s' % (dsBinPath,fileExt), 'arguments' : '-h %s -p %s -D "%s" %s -b "%s" "%s"' % (dsInstanceHost,dsInstancePort,dsInstanceDn,extraParams,dsBaseDN,dsFilter), 'location' : location, 'expectedRC': expectedRC, 'knownIssue': knownIssue } STAXResult 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 Wildcard 'noCheck' to not check the RC Known issue. Corresponds to an issue number. { 'name' : 'Anonymous Search Base Object', 'location' : location, 'command' : '%s/ldapsearch%s' % (dsBinPath,fileExt), 'arguments' : '-h %s -p %s %s -b "%s" "%s"' % (dsInstanceHost,dsInstancePort,extraParams,dsBaseDN,dsFilter), 'expectedRC': expectedRC, 'knownIssue': knownIssue } STAXResult 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 Wildcard 'noCheck' to not check the RC Known issue. Corresponds to an issue number. '%s %s' % (STAFCmd, STAFCmdParams) { 'name' : 'LDAP Delete Script', 'command' : STAFCmd, 'arguments' : STAFCmdParams, 'location' : location, 'expectedRC': expectedRC, 'knownIssue': knownIssue } STAXResult 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 Wildcard 'noCheck' to not check the RC Known issue. Corresponds to an issue number. '%s %s' % (STAFCmd, STAFCmdParams) { 'name' : 'Delete Object', 'command' : STAFCmd, 'arguments' : STAFCmdParams, 'location' : location, 'expectedRC': expectedRC, 'knownIssue': knownIssue } STAXResult 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 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 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 Wildcard 'noCheck' to not check the RC Known issue. Corresponds to an issue number. { 'name' : 'LDAP Compare Script', 'command' : STAFCmd, 'arguments' : STAFCmdParams, 'location' : location, 'expectedRC': expectedRC, 'knownIssue': knownIssue } STAXResult 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 Wildcard 'noCheck' to not check the RC Known issue. Corresponds to an issue number. { 'name' : 'Compare Object', 'command' : STAFCmd, 'arguments' : STAFCmdParams, 'location' : location, 'expectedRC': expectedRC, 'knownIssue': knownIssue } STAXResult 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 SASL bind options Directory Server Port Number Directory Server Manager DN Directory Server Manager Password Expected return code value. Default value is 0 Wildcard 'noCheck' to not check the RC Known issue. Corresponds to an issue number. { 'name' : 'LDAP Password Modify Script', 'command' : STAFCmd, 'arguments' : STAFCmdParams, 'location' : location, 'expectedRC': expectedRC, 'knownIssue': knownIssue } STAXResult 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 Supress the call to checkTestRC Expected return code value. Default value is 0 Wildcard 'noCheck' to not check the RC Known issue. Corresponds to an issue number. { 'name' : 'Modify An Attribute value', 'command' : '%s/bin/java' % JAVA_HOME, 'arguments' : '%s %s' % (STAFCmd,STAFCmdParams), 'location' : location, 'envCmd' : ['CLASSPATH=%s/../%s/ldapjndi' % (dsPath,remote.reljavadir)], 'path' : '%s/../%s/ldapjndi' % (dsPath,remote.reljavadir), 'expectedRC': expectedRC, 'knownIssue': knownIssue } [RC,STAXResult] This function creates a load of modifies against Directory. It is only for entries with uid=user.xxx. Location of target host Pathname to installation root Directory server hostname or IP address Directory server port number Bind DN Bind password partial DN to modify, all but the uid=user.xxxx 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 Number of entries to modify ID for the client doing the modify Expected return code value. Default value is 0 Wildcard 'noCheck' to not check the RC '****From client, %s, Modifying %s' % (clientID,curr_dn) { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , 'dsPath' : dsPath , 'DNToModify' : curr_dn , 'attributeName' : 'description' , 'newAttributeValue' : 'New description for %s' % curr_dn , 'changetype' : 'replace' , 'suppressTestStatus' : '1' } [STAXCode,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 return code value. Default value is 0 Wildcard 'noCheck' to not check the RC Known issue. Corresponds to an issue number. { 'name' : 'Add New Entry', 'command' : '%s/bin/java' % JAVA_HOME, 'arguments' : '%s %s' % (STAFCmd,STAFCmdParams), 'location' : location, 'envCmd' : ['CLASSPATH=%s/../%s/ldapjndi' % (dsPath,remote.reljavadir)], 'path' : '%s/../%s/ldapjndi' % (dsPath,remote.reljavadir), 'expectedRC': expectedRC, 'knownIssue': knownIssue } STAXResult This function renames an entry, either by a modRDN or by a modDN 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. If not passed, the newRDN will be the same old rdn 1 : delete old rdn, 0 do not delete old rdn, default value is 1 New parent entry for the entry Expected return code value. Default value is 0 Wildcard 'noCheck' to not check the RC Known issue. Corresponds to an issue number. { 'name' : 'Modify DN', 'command' : '%s/bin/java' % JAVA_HOME, 'arguments' : '%s %s' % (STAFCmd,STAFCmdParams), 'location' : location, 'envCmd' : ['CLASSPATH=%s/../%s/ldapjndi' % (dsPath,remote.reljavadir)], 'path' : '%s/../%s/ldapjndi' % (dsPath,remote.reljavadir), 'expectedRC': expectedRC, 'knownIssue': knownIssue } STAXResult This function searches the Directory Server using SASL authentication Location of target host Pathname to installation root Directory server hostname or IP address Directory server port number Search scope Search base dn Search filter SASL mechanism Authentication ID Authentication password Authorization ID Attribute to modify Quality of protection (auth / auth-int / auth-conf) Cipher strength (low / medium / high) Maximum receive buffer size. Supress the call to checkTestRC Expected return code value. Default value is 0 Wildcard 'noCheck' to not check the RC Known issue. Corresponds to an issue number. { 'name' : 'Modify An Attribute value', 'command' : '%s/bin/java' % JAVA_HOME, 'arguments' : '%s %s' % (STAFCmd,STAFCmdParams), 'location' : location, 'envCmd' : ['CLASSPATH=%s/../%s/ldapjndi' % (dsPath,remote.reljavadir)], 'path' : '%s/../%s/ldapjndi' % (dsPath,remote.reljavadir), 'expectedRC': expectedRC, 'knownIssue': knownIssue } STAXResult This function searches the external changelog Location of target host Pathname to installation root 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 Optional extra parameters for specific test cases Optional Attributes to return Changelog cookie of the last change retrieved. (OpenDS external changelog => non draft-compatible mode) Changenumber corresponding to the last change retrieved. (Changelog draft-compatible mode) Expected return code value. Default value is 0. Wildcard 'noCheck' to not check the RC Known issue. Corresponds to an issue number. '%s %s' % (STAFCmd, STAFCmdParams) 'LOOP number %s - %s %s' % (myCounter, STAFCmd, STAFCmdParams) { 'command' : STAFCmd, 'arguments' : STAFCmdParams, 'location' : location, 'name' : 'ldapsearch', 'expectedRC': expectedRC, 'knownIssue': knownIssue } STAFCmdResult STAXResult This function reads the ECL in a replicated server and replays the changes on a stand-alone server Location of target host Pathname to installation root Stand-alone directory server hostname or IP address Stand-alone directory server port number Replicated Directory server hostname or IP address Replicated Directory server port number Replicated Directory server hostname or IP address Replicated Directory server port number Bind DN Bind password ECL search mode: "draft" or "opends" Size of the queue where the read updates are stored for the writer to replay on the stand-alone server Whether information on missing changes should be displayed or not Standard output file name Expected return code value. Default value is 0 Wildcard 'noCheck' to not check the RC Known issue. Corresponds to an issue number. { 'name' : 'Read ECL and replay', 'command' : '%s/bin/java' % JAVA_HOME, 'arguments' : '%s %s' % (STAFCmd,STAFCmdParams), 'location' : location, 'envCmd' : ['CLASSPATH=%s/../%s/ldapjdk:%s/../%s/ldapjdk/ldapjdk.jar' \ % (dsPath,remote.reljavadir,dsPath,remote.reljavadir)], 'path' : '%s/../%s/ldapjdk' % (dsPath,remote.reljavadir), 'expectedRC': expectedRC, 'knownIssue': knownIssue } STAXResult