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 '%s %s' % (STAFCmd, STAFCmdParams) '%s' % mylocation '%s' % STAFCmd '%s' % STAFCmdParams '%s' % dsBinPath ['PATH=/bin:/usr/bin:%s' % dsBinPath, 'JAVA_HOME=%s' % JAVA_HOME] { 'returncode' : RC , 'result' : 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 '%s %s' % (STAFCmd, STAFCmdParams) '%s' % location '%s' % STAFCmd '%s' % STAFCmdParams '%s' % dsBinPath ['PATH=/bin:/usr/bin:%s' % dsBinPath, 'JAVA_HOME=%s' % JAVA_HOME] { 'returncode' : RC , 'result' : 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 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 '%s %s' % (STAFCmd, STAFCmdParams) '%s' % location '%s' % STAFCmd '%s' % STAFCmdParams '%s' % dsBinPath ['PATH=/bin:/usr/bin:%s' % dsBinPath, 'JAVA_HOME=%s' % JAVA_HOME] { 'returncode' : SearchRC , 'result' : SearchResult } SearchResult 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 '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] 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 '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' : SearchRC , 'result' : SearchResult } SearchResult 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 '%s %s' % (STAFCmd, STAFCmdParams) '%s' % location '%s' % STAFCmd '%s' % STAFCmdParams '%s' % dsBinPath ['PATH=/bin:/usr/bin:%s' % dsBinPath, 'JAVA_HOME=%s' % JAVA_HOME] { 'returncode' : RC , 'result' : 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 '%s %s' % (STAFCmd, STAFCmdParams) '%s' % location '%s' % STAFCmd '%s' % STAFCmdParams '%s' % dsBinPath ['PATH=/bin:/usr/bin:%s' % dsBinPath, 'JAVA_HOME=%s' % JAVA_HOME] { 'returncode' : SearchRC , 'result' : SearchResult } SearchResult This function resolves common ldap arguments