This function sets up a Directory Server using a script Location of target host Pathname to installation root Directory server port number Directory server secure port number Directory server JMX port number Base DN (only single base DN supported). Bind DN Bind password Bind password file Enable as a Windows Service Do not start server after setup Help option Enable startTLS, must use dsCertifiacte parameter certificate mode: generateSelfSigned output file descriptor { 'name' : 'SetUpOpenDSWithScript', 'location' : location, 'command' : STAFCmd, 'arguments' : STAFCmdParams, 'path' : dsPath, 'fileFd' : fileFd } STAXResult This function starts a Directory Server Location of target host instance object of the instance Pathname to installation root Directory server version Directory server system info Do not detach directory server from process Help option Directory server build information output file descriptor { 'name' : 'StartDs %s:%s' % \ (instance.getName(),instance.getLDAPPort()), 'location' : location, 'command' : STAFCmd, 'arguments' : STAFCmdParams, 'path' : dsBinPath, 'env' : env, 'fileFd' : fileFd } STAXResult This function starts a Directory Server using the script Location of target host Pathname to installation root Directory server hostname or IP address Directory server port number Use SSL for secure communication with the server Use StartTLS for secure communication with the server Bind DN Bind password Bind password file SASL bind options Use the proxied authorization control with the given authorization ID Reason the server is being stopped or restarted Attempt to automatically restart the server once it has stopped Time to begin the shutdown in YYYYMMDDhhmmss format (local time) Trust all server SSL certificates Certificate keystore path Certificate keystore PIN Certificate keystore PIN file Certificate trust store path Certificate trust store PIN Certificate trust store PIN file Help option Expected return code value. Default value is 0. Wildcard 'noCheck' to not check the RC file descriptor to write message in if needed { 'name' : 'StopDsWithScript', 'location' : location, 'command' : STAFCmd, 'arguments' : STAFCmdParams, 'path' : dsBinPath, 'expectedRC': expectedRC, 'fileFd' : fileFd } STAXResult This function uses make-ldif to generate ldif file Location of target host Pathname to installation root template ldif file ldif file to generate file descriptor to log information { 'name' : 'MakeLdif', 'location' : location, 'command' : STAFCmd, 'arguments' : STAFCmdParams, 'path' : dsBinPath, 'fileFd' : fileFd } STAXResult This function performs an offline import of an ldif file using the script Location of target host Pathname to installation root Path to the LDIF file to be imported Path to a MakeLDIF template to use to generate the import data Append to an existing database rather than overwriting it Replace existing entries when appending to the database Backend ID for the backend to import Base DN of a branch to include in the LDIF import Base DN of a branch to include in the LDIF import Base DN of a branch to exclude from the LDIF import Attribute to include in the LDIF import Attribute to exclude in the LDIF import Filter to identify entries to include in the LDIF import Filter to identify entries to exclude from the LDIF import Write rejected entries to the specified file Overwrite an existing rejects file rather than appending to it Seed for the MakeLDIF random number generator Skip schema validation during the LDIF import LDIF file is compressed LDIF file is encrypted Use quiet mode (no output) Display usage information output file descriptor { 'tagName' : 'ImportLdifWithScript', 'fileFd' : fileFd } { 'fileFd' : fileFd, 'content' : '%s %s' % (STAFCmd, STAFCmdParams) } '%s' % location '%s' % STAFCmd '%s' % STAFCmdParams '%s' % dsBinPath ['PATH=/bin:/usr/bin:%s' % dsBinPath] { 'returncode' : RC , 'result' : STAXResult, 'fileFd' : fileFd } { 'location' : location, 'fileName' : dsRejectFile } 'ERROR, %s' % msg { 'returncode' : 999, 'result' : msg, 'fileFd' : fileFd } {'fileFd' : fileFd}