| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="propertyType" type="required"> |
| | | <function-arg-description> |
| | | Property type to modify, e.g. validator |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="propertyName" type="required"> |
| | | <function-arg-description> |
| | | Property to modify, e.g. enabled |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="attributeName" type="required"> |
| | | <function-arg-description> |
| | | Attribute to modify, e.g. minimum-password-length |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="attributeValue" type="optional" default="'none'"> |
| | | <function-arg-description> |
| | | New attribute value |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="modifyType" type="optional" default="'set'"> |
| | | <function-arg-description> |
| | | The modify type. Default value is set. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="expectedRC" type="optional" default="0"> |
| | | <function-arg-description> |
| | | Expected return code value. Default value is 0 |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="propertyType" type="required"> |
| | | <function-arg-description> |
| | | Property type to get, e.g. backend. it's used to make the property type: --backend-name |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="propertyName" type="required"> |
| | | <function-arg-description> |
| | | Property to get, e.g. userroot |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="attributeName" type="required"> |
| | | <function-arg-description> |
| | | Attribute to get, e.g. minimum-password-length |
| | |
| | | STAXCode=RC |
| | | STAXReason=STAXResult[0][1] |
| | | </script> |
| | | <if expr="expectedAttributeValue == 'none'"> |
| | | <if expr="expectedAttributeValue == 'none'"> |
| | | <call function="'checktestRC'"> |
| | | { 'returncode' : STAXCode, |
| | | 'result' : STAXReason, |
| | |
| | | </call> |
| | | <else> |
| | | <call function="'checktestString'"> |
| | | { 'expectedString' : expectedAttributeValue, |
| | | 'returnString' : STAXReason |
| | | { 'expectedString' : expectedAttributeValue, |
| | | 'returnString' : STAXReason |
| | | } |
| | | </call> |
| | | </else> |
| | |
| | | |
| | | <!-- generic wrapper on dsconfig --> |
| | | <!-- can be used to list, get or set a list of attribues --> |
| | | |
| | | |
| | | <function name="dsconfig"> |
| | | <function-prolog> |
| | | This function lists, get or set a list of attributes using dsconfig |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="objectType" type="optional"> |
| | | <function-arg-description> |
| | | Object type to modify, e.g. backend-name |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="objectName" type="optional"> |
| | | <function-arg-description> |
| | | object name to modify, e.g. userroot |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="optionsString" type="optional"> |
| | | <function-arg-description> |
| | | String containing the dsconfig options. e.g. --set enabled:true --set key-store-pin:servercert |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="expectedRC" type="optional" default="0"> |
| | | <function-arg-description> |
| | | Expected return code value. Default value is 0 |
| | |
| | | STAFCmdParamsList=[] |
| | | STAFCmdParamsList.append(subcommand) |
| | | if objectType: |
| | | STAFCmdParamsList.append('--%s "%s" ' % (objectType,objectName)) |
| | | STAFCmdParamsList.append('--%s "%s" ' % (objectType,objectName)) |
| | | if optionsString: |
| | | STAFCmdParamsList.append(' %s' % optionsString) |
| | | </script> |
| | |
| | | STAXReason |
| | | </return> |
| | | </sequence> |
| | | </function> |
| | | |
| | | </function> |
| | | |
| | | <!-- Modify password policy using dsconfig --> |
| | | <function name="modifyPwdPolicy"> |
| | | <function-prolog> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="Port number" /> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="dsInstanceDn" type="required"> |
| | | <function-arg-description> |
| | | Bind DN |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="attributeName" type="required"> |
| | | <function-arg-description> |
| | | Attribute to modify, e.g. minimum-password-length |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="attributeValue" type="optional" default="'none'"> |
| | | <function-arg-description> |
| | | New attribute value |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="modifyType" type="optional" default="'set'"> |
| | | <function-arg-description> |
| | | The modify type. Default value is set. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="expectedRC" type="optional" default="0"> |
| | | <function-arg-description> |
| | | Expected return code value. Default value is 0 |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="attributeName" type="required"> |
| | | <function-arg-description> |
| | | Attribute to modify, e.g. match-attribute |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="attributeValue" type="optional" default="'none'"> |
| | | <function-arg-description> |
| | | New attribute value |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="modifyType" type="optional" default="'set'"> |
| | | <function-arg-description> |
| | | The modify type. Default value is set. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="expectedRC" type="optional" default="0"> |
| | | <function-arg-description> |
| | | Expected return code value. Default value is 0 |
| | |
| | | <function-arg-def name="dsInstancePort" type="required"> |
| | | <function-arg-description> |
| | | Directory server port number |
| | | </function-arg-description> |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="integer" /> |
| | | </function-arg-def> |
| | | |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="attributeValue" type="required"> |
| | | <function-arg-description> |
| | | New attribute value |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="expectedRC" type="optional" default="0"> |
| | | <function-arg-description> |
| | | Expected return code value. Default value is 0 |
| | |
| | | <!-- Local variables --> |
| | | <script> |
| | | mylocation=location |
| | | STAFCmdParams='' |
| | | STAFCmdParams='' |
| | | STAFCmd='' |
| | | |
| | | if dsPath: |
| | |
| | | <function-arg-def name="dsInstancePort" type="required"> |
| | | <function-arg-description> |
| | | Directory server port number |
| | | </function-arg-description> |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="integer" /> |
| | | </function-arg-def> |
| | | |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="attributeName" type="required"> |
| | | <function-arg-description> |
| | | Attribute to modify, e.g. match-attribute |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="attributeValue" type="required"> |
| | | <function-arg-description> |
| | | New attribute value |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="modifyType" type="optional" default="'set'"> |
| | | <function-arg-description> |
| | | The modify type. Default value is set. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="expectedRC" type="optional" default="0"> |
| | | <function-arg-description> |
| | | Expected return code value. Default value is 0 |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="opType" type="optional" default="set"> |
| | | <function-arg-description> |
| | | Operation type, one of set, add, and remove |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="expectedRC" type="optional" default="0"> |
| | | <function-arg-description> |
| | | Expected return code value. Default value is 0 |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="propertyName" type="required"> |
| | | <function-arg-description> |
| | | Property to modify, e.g. realm |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="propertyValue" type="required"> |
| | | <function-arg-description> |
| | | New property value |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="modifyType" type="optional" default="'set'"> |
| | | <function-arg-description> |
| | | The modify type. Default value is set. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="expectedRC" type="optional" default="0"> |
| | | <function-arg-description> |
| | | Expected return code value. Default value is 0 |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="hostname" /> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="dsPath" |
| | | type="optional" |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="filepath" /> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="host" |
| | | type="optional" |
| | | default="STAF_REMOTE_HOSTNAME"> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="hostname" /> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="port" |
| | | type="optional" |
| | | default="DIRECTORY_INSTANCE_PORT"> |
| | | <function-arg-description> |
| | | Directory server port number |
| | | </function-arg-description> |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="Port number" /> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="rootDN" |
| | | type="optional" |
| | | default="DIRECTORY_INSTANCE_DN"> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="DN" /> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="rootPwd" |
| | | type="optional" |
| | | default="DIRECTORY_INSTANCE_PSWD"> |
| | |
| | | The Back-end ID on to which to add an index |
| | | </function-arg-description> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="indexAttribute" type="required"> |
| | | <function-arg-description> |
| | | ldap attribute on to which to add indexing |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="indexTypes" type="required"> |
| | | <function-arg-description> |
| | | type of index to add |
| | |
| | | <sequence> |
| | | <!-- Local variables --> |
| | | <script> |
| | | dsconfigParams='' |
| | | dsconfigParams='' |
| | | dsconfigCmd='' |
| | | dsBinPath='%s/%s' % (dsPath,fileFolder) |
| | | dsconfigCmd='%s/%s%s' % (dsBinPath,DSCONFIG,fileExt) |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="hostname" /> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="dsPath" |
| | | type="optional" |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="filepath" /> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="host" |
| | | type="optional" |
| | | default="STAF_REMOTE_HOSTNAME"> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="hostname" /> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="port" |
| | | type="optional" |
| | | default="DIRECTORY_INSTANCE_PORT"> |
| | | <function-arg-description> |
| | | Directory server port number |
| | | </function-arg-description> |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="Port number" /> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="rootDN" |
| | | type="optional" |
| | | default="DIRECTORY_INSTANCE_DN"> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="DN" /> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="rootPwd" |
| | | type="optional" |
| | | default="DIRECTORY_INSTANCE_PSWD"> |
| | |
| | | The Back-end ID on to which to add an index |
| | | </function-arg-description> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="indexAttribute" type="required"> |
| | | <function-arg-description> |
| | | ldap attribute on to which add indexing |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="operation"> |
| | | <function-arg-description> |
| | | This parameters defines the operation to be performed. |
| | |
| | | <sequence> |
| | | <!-- Local variables --> |
| | | <script> |
| | | dsconfigParams='' |
| | | dsconfigParams='' |
| | | dsconfigCmd='' |
| | | dsBinPath='%s/%s' % (dsPath,fileFolder) |
| | | dsconfigCmd='%s/%s%s' % (dsBinPath,DSCONFIG,fileExt) |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="hostname" /> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="dsPath" |
| | | type="optional" |
| | | default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)"> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="filepath" /> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="host" |
| | | type="optional" |
| | | default="STAF_REMOTE_HOSTNAME"> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="hostname" /> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="port" |
| | | type="optional" |
| | | default="DIRECTORY_INSTANCE_PORT"> |
| | | <function-arg-description> |
| | | Directory server port number |
| | | </function-arg-description> |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="Port number" /> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="rootDN" |
| | | type="optional" |
| | | default="DIRECTORY_INSTANCE_DN"> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="DN" /> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="rootPwd" |
| | | type="optional" |
| | | default="DIRECTORY_INSTANCE_PSWD"> |
| | |
| | | <sequence> |
| | | <!-- Local variables --> |
| | | <script> |
| | | dsconfigParams='' |
| | | dsconfigParams='' |
| | | dsconfigCmd='' |
| | | dsBinPath='%s/%s' % (dsPath,fileFolder) |
| | | dsconfigCmd='%s/%s%s' % (dsBinPath,DSCONFIG,fileExt) |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="providerType" |
| | | type="optional" |
| | | default="MultimasterType"> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="expectedRC" type="optional" default="0"> |
| | | <function-arg-description> |
| | | Expected return code value. Default value is 0 |
| | | Expected return code value. Default value is 0 |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="replicationPort" type="required"> |
| | | <function-arg-description> |
| | | Replication port number |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="list" /> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="expectedRC" type="optional" default="0"> |
| | | <function-arg-description> |
| | | Expected return code value. Default value is 0 |
| | | Expected return code value. Default value is 0 |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="list" /> |
| | | </function-arg-def> |
| | | |
| | | |
| | | <function-arg-def name="expectedRC" type="optional" default="0"> |
| | | <function-arg-description> |
| | | Expected return code value. Default value is 0 |
| | | Expected return code value. Default value is 0 |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | |
| | | <!-- Local variables --> |
| | | <script> |
| | | mylocation=location |
| | | STAFCmdParams='' |
| | | STAFCmdParams='' |
| | | STAFCmd='' |
| | | |
| | | if dsPath: |