dsconfig.xml revision 0e02964d4df506f9337c34f743e3d6c685633aa6
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd ! CDDL HEADER START
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd ! The contents of this file are subject to the terms of the
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd ! Common Development and Distribution License, Version 1.0 only
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd ! (the "License"). You may not use this file except in compliance
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd ! with the License.
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen ! You can obtain a copy of the license at
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen ! See the License for the specific language governing permissions
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd ! and limitations under the License.
af33a4994ae2ff15bc67d19ff1a7feb906745bf8rbowen ! When distributing Covered Code, include this CDDL HEADER in each
3f08db06526d6901aa08c110b5bc7dde6bc39905nd ! file and include the License file at
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd ! trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd ! add the following below this CDDL HEADER, with the fields enclosed
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd ! by brackets "[]" replaced with your own identifying information:
3f08db06526d6901aa08c110b5bc7dde6bc39905nd ! Portions Copyright [yyyy] [name of copyright owner]
f086b4b402fa9a2fefc7dda85de2a3cc1cd0a654rjung ! CDDL HEADER END
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd ! Copyright 2007-2008 Sun Microsystems, Inc.
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd This function resolves common dsconfig arguments
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd if dsInstanceHost:
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd STAFCmdParamsList.append('-h %s' % dsInstanceHost)
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd if dsInstancePort:
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd STAFCmdParamsList.append('-p %s' % dsInstancePort)
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd if dsInstanceDn:
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd STAFCmdParamsList.append('-D "%s"' % dsInstanceDn)
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd if dsInstancePswd:
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd STAFCmdParamsList.append('-w "%s"' % dsInstancePswd)
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd </function>
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd <!-- Set property value using dsconfig -->
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd This function modifies a property value using dsconfig
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd type="optional"
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd default="STAF_REMOTE_HOSTNAME">
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Location of target host
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd <function-arg-def name="dsPath" type="optional" default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)">
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Pathname to installation root
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd <function-arg-def name="dsInstanceHost" type="optional" default="STAF_REMOTE_HOSTNAME">
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Directory server hostname or IP address
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Directory server port number
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd <function-arg-property name="type" value="Port number" />
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Bind password
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Object to modify, e.g. password validator
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd <function-arg-def name="propertyType" type="optional" default="''">
30471a4650391f57975f60bbb6e4a90be7b284bfhumbedooh Property type to modify, e.g. validator
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd <function-arg-def name="propertyName" type="optional" default="''">
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Property to modify, e.g. enabled
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Attribute to modify, e.g. min-password-length
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd <function-arg-def name="attributeValue" type="optional" default="'none'">
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd New attribute value
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd <function-arg-def name="modifyType" type="optional" default="'set'">
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd The modify type. Default value is set.
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd <function-arg-def name="expectedRC" type="optional" default="0">
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Expected return code value. Default value is 0.
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Wildcard 'noCheck' to not check the RC
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd <sequence>
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd <!-- Local variables -->
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd mylocation=location
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd STAFCmdParams=''
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd STAFCmd=''
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd if dsPath:
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd dsBinPath='%s/%s' % (dsPath,fileFolder)
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd STAFCmd='%s/%s%s' % (dsBinPath,DSCONFIG,fileExt)
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd STAFCmdParamsList=[]
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd STAFCmdParamsList.append('set-%s-prop ' % (objectName))
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd if propertyType:
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd STAFCmdParamsList.append('--%s-name "%s" ' % (propertyType,propertyName))
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd if modifyType == 'reset':
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd STAFCmdParamsList.append('--%s %s' % (modifyType,attributeName))
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd STAFCmdParamsList.append('--%s "%s:%s"' % (modifyType,attributeName,attributeValue))
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd STAFCmdParams=' '.join(STAFCmdParamsList)
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd '%s %s' % (STAFCmd, STAFCmdParams)
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd </message>
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd { 'name' : 'Modify dsconfig object',
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'location' : location,
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'command' : STAFCmd,
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'arguments' : STAFCmdParams,
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'expectedRC': expectedRC
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd STAXResult
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd </sequence>
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd </function>
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd <!-- Get property value using dsconfig -->
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd This function get a property value using dsconfig
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd type="optional"
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd default="STAF_REMOTE_HOSTNAME">
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Location of target host
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd type="optional"
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)">
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Pathname to installation root
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd type="optional"
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd default="STAF_REMOTE_HOSTNAME">
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Directory server hostname or IP address
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Directory server port number
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Bind password
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Object to get, e.g. password validator. it's used to make the subcommand name get-...-prop
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Property type to get, e.g. backend. it's used to make the property type: --backend-name
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Property to get, e.g. userroot
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Attribute to get, e.g. min-password-length
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Optional extra parameters for specific test cases. ie -m
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd <function-arg-def name="expectedAttributeValue" type="optional" default="'none'">
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd expected attribute value
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd <function-arg-def name="expectedRC" type="optional" default="0">
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Expected return code value. Default value is 0.
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Wildcard 'noCheck' to not check the RC
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd <sequence>
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd <!-- Local variables -->
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd mylocation=location
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd STAFCmdParams=''
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd STAFCmd=''
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd if dsPath:
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd dsBinPath='%s/%s' % (dsPath,fileFolder)
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd STAFCmd='%s/%s%s' % (dsBinPath,DSCONFIG,fileExt)
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd STAFCmdParamsList=[]
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd STAFCmdParamsList.append('get-%s-prop ' % (objectName))
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd STAFCmdParamsList.append('--%s-name "%s" -s' % (propertyType,propertyName))
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd STAFCmdParamsList.append('--property "%s"' % (attributeName))
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd if extraParams:
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd STAFCmdParams=' '.join(STAFCmdParamsList)
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd '%s %s' % (STAFCmd, STAFCmdParams)
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd </message>
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd { 'name' : 'Get dsconfig object',
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'location' : location,
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'command' : STAFCmd,
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'arguments' : STAFCmdParams,
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'expectedRC': expectedRC
4d7b22263c8d5b35d2664a3b329247f6651b842fnd STAXCode=RC
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd STAXReason=STAXResult[0][1]
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd { 'expectedString' : expectedAttributeValue,
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'returnString' : STAXReason
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd STAXReason
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd </sequence>
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd </function>
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd <!-- generic wrapper on dsconfig -->
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd <!-- can be used to list, get or set a list of attribues -->
aaf7b7f4cc1be050310c3d7f48bce0ec67e174e4nd This function lists, get or set a list of attributes using dsconfig
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd type="optional"
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd default="STAF_REMOTE_HOSTNAME">
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Location of target host
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd type="optional"
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)">
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Pathname to installation root
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd <function-arg-def name="dsInstanceHost" type="optional" default="STAF_REMOTE_HOSTNAME">
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Directory server hostname or IP address
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Directory server port number
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd <function-arg-property name="type" value="Port number" />
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Bind password
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd dsconfig subcommand to execute
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Object type to modify, e.g. backend-name
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd object name to modify, e.g. userroot
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd String containing the dsconfig options. e.g. --set enabled:true --set key-store-pin:servercert
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd <function-arg-def name="expectedRC" type="optional" default="0">
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Expected return code value. Default value is 0.
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Wildcard 'noCheck' to not check the RC
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd <sequence>
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd <!-- Local variables -->
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd mylocation=location
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd STAFCmdParams=''
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd STAFCmd=''
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd if dsPath:
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd dsBinPath='%s/%s' % (dsPath,fileFolder)
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd STAFCmd='%s/%s%s' % (dsBinPath,DSCONFIG,fileExt)
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd STAFCmdParamsList=[]
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd if objectType:
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd STAFCmdParamsList.append('--%s "%s" ' % (objectType,objectName))
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd if optionsString:
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd STAFCmdParamsList.append(' %s' % optionsString)
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd STAFCmdParams=' '.join(STAFCmdParamsList)
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd { 'name' : 'execute dsconfig subcommand',
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'location' : location,
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'command' : STAFCmd,
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'arguments' : STAFCmdParams,
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'expectedRC': expectedRC
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd STAXResult
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd </sequence>
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd </function>
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd <!-- Modify password policy using dsconfig -->
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd This function modifies a password policy using dsconfig
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd type="optional"
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd default="STAF_REMOTE_HOSTNAME">
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Location of target host
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd type="optional"
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)">
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Pathname to installation root
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd type="optional"
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd default="STAF_REMOTE_HOSTNAME">
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Directory server hostname or IP address
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Directory server port number
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd <function-arg-property name="type" value="Port number" />
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Bind password
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Property to modify, e.g. enabled
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Attribute to modify, e.g. min-password-length
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd <function-arg-def name="attributeValue" type="optional" default="'none'">
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd New attribute value
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd <function-arg-def name="modifyType" type="optional" default="'set'">
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd The modify type. Default value is set.
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd <function-arg-def name="expectedRC" type="optional" default="0">
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Expected return code value. Default value is 0
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd <sequence>
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd { 'location' : location,
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'dsPath' : dsPath,
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'dsInstanceHost' : dsInstanceHost,
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'dsInstancePort' : dsInstancePort,
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'dsInstanceDn' : dsInstanceDn,
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'dsInstancePswd' : dsInstancePswd,
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'objectName' : 'password-policy',
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'propertyType' : 'policy',
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'propertyName' : propertyName,
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'attributeName' : attributeName,
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'attributeValue' : attributeValue,
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'modifyType' : modifyType,
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'expectedRC' : expectedRC
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd STAXResult
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd </sequence>
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd </function>
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd <!-- Modify password validator using dsconfig -->
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd This function modifies a password validator using dsconfig
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd type="optional"
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd default="STAF_REMOTE_HOSTNAME">
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Location of target host
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd type="optional"
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)">
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Pathname to installation root
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd type="optional"
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd default="STAF_REMOTE_HOSTNAME">
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Directory server hostname or IP address
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Directory server port number
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd <function-arg-property name="type" value="Port number" />
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Bind password
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Property to modify, e.g. enabled
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Attribute to modify, e.g. match-attribute
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd <function-arg-def name="attributeValue" type="optional" default="'none'">
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd New attribute value
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd <function-arg-def name="modifyType" type="optional" default="'set'">
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd The modify type. Default value is set.
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd <function-arg-def name="expectedRC" type="optional" default="0">
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Expected return code value. Default value is 0
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd <sequence>
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd { 'location' : location,
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'dsPath' : dsPath,
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'dsInstanceHost' : dsInstanceHost,
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'dsInstancePort' : dsInstancePort,
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'dsInstanceDn' : dsInstanceDn,
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'dsInstancePswd' : dsInstancePswd,
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'objectName' : 'password-validator',
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'propertyType' : 'validator',
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'propertyName' : propertyName,
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'attributeName' : attributeName,
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'attributeValue' : attributeValue,
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'modifyType' : modifyType,
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'expectedRC' : expectedRC
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd STAXResult
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd </sequence>
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd </function>
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd <!-- Modify password policy using dsconfig -->
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd This function modifies a global attribute value using dsconfig
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd type="optional"
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd default="STAF_REMOTE_HOSTNAME">
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Location of target host
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd type="optional"
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)">
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Pathname to installation root
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd type="optional"
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd default="STAF_REMOTE_HOSTNAME">
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Directory server hostname or IP address
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Directory server port number
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Bind password
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Attribute to modify, e.g. bind-with-dn-requires-password
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd New attribute value
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd <function-arg-def name="expectedRC" type="optional" default="0">
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Expected return code value. Default value is 0.
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Wildcard 'noCheck' to not check the RC
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd <sequence>
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd <!-- Local variables -->
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd mylocation=location
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd STAFCmdParams=''
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd STAFCmd=''
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd if dsPath:
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd dsBinPath='%s/%s' % (dsPath,fileFolder)
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd STAFCmd='%s/%s%s' % (dsBinPath,DSCONFIG,fileExt)
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd if attributeValue:
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd attributeValue=attributeValue.replace('"','QUOT')
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd STAFCmdParamsList=[]
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd STAFCmdParamsList.append('set-global-configuration-prop ')
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd STAFCmdParamsList.append('--set "%s:%s"' % (attributeName,attributeValue))
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd STAFCmdParams=' '.join(STAFCmdParamsList)
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd { 'name' : 'Modify dsconfig object',
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'location' : location,
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'command' : STAFCmd,
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'arguments' : STAFCmdParams,
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'expectedRC': expectedRC
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd STAXResult
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd </sequence>
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd </function>
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd <!-- Modify identity mapper using dsconfig -->
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd This function modifies an identity mapper using dsconfig
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd type="optional"
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd default="STAF_REMOTE_HOSTNAME">
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Location of target host
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd type="optional"
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)">
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Pathname to installation root
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd type="optional"
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd default="STAF_REMOTE_HOSTNAME">
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Directory server hostname or IP address
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Directory server port number
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Bind password
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Mapper to modify, e.g. Exact Match
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Attribute to modify, e.g. match-attribute
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd New attribute value
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd <function-arg-def name="modifyType" type="optional" default="'set'">
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd The modify type. Default value is set.
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd <function-arg-def name="expectedRC" type="optional" default="0">
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Expected return code value. Default value is 0
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd <sequence>
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd { 'location' : location,
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'dsPath' : dsPath,
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'dsInstanceHost' : dsInstanceHost,
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'dsInstancePort' : dsInstancePort,
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'dsInstanceDn' : dsInstanceDn,
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'dsInstancePswd' : dsInstancePswd,
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'objectName' : 'identity-mapper',
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'propertyType' : 'mapper',
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'propertyName' : mapperName,
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'attributeName' : attributeName,
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'attributeValue' : attributeValue,
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'modifyType' : modifyType,
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'expectedRC' : expectedRC
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd STAXResult
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd </sequence>
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd </function>
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd <!-- Modify password policy using dsconfig -->
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd This function modifies a global aci using dsconfig
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd type="optional"
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd default="STAF_REMOTE_HOSTNAME">
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Location of target host
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd type="optional"
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)">
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Pathname to installation root
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd type="optional"
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd default="STAF_REMOTE_HOSTNAME">
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Directory server hostname or IP address
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Directory server port number
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Bind password
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd New property value
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd <function-arg-def name="opType" type="optional" default="set">
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Operation type, one of set, add, and remove
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd <function-arg-def name="expectedRC" type="optional" default="0">
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Expected return code value. Default value is 0.
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Wildcard 'noCheck' to not check the RC
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd <sequence>
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd mylocation=location
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd STAFCmdParams=''
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd STAFCmd=''
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd if dsPath:
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd dsBinPath='%s/%s' % (dsPath,fileFolder)
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd STAFCmd='%s/%s%s' % (dsBinPath,DSCONFIG,fileExt)
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd if aciValue:
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd aciValue=aciValue.replace('"','\\"')
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd if is_windows_platform(mylocation):
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd aciValue=aciValue.replace(r'||',r'"||"')
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd STAFCmdParamsList=[]
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd STAFCmdParamsList.append('set-access-control-handler-prop ')
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd STAFCmdParamsList.append('--%s "global-aci:%s"' % (opType,aciValue))
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd STAFCmdParams=' '.join(STAFCmdParamsList)
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd { 'name' : 'Modify dsconfig object',
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'location' : location,
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'command' : STAFCmd,
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'arguments' : STAFCmdParams,
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'expectedRC': expectedRC
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd STAXResult
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd </sequence>
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd </function>
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd <!-- Modify password policy using dsconfig -->
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd This function modifies a sasl mechanism using dsconfig
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd type="optional"
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd default="STAF_REMOTE_HOSTNAME">
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Location of target host
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd type="optional"
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)">
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Pathname to installation root
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd type="optional"
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd default="STAF_REMOTE_HOSTNAME">
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Directory server hostname or IP address
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Directory server port number
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd <function-arg-property name="type" value="Port number" />
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Bind password
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Handle to modify, e.g. DIGEST-MD5
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Property to modify, e.g. realm
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd New property value
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd <function-arg-def name="modifyType" type="optional" default="'set'">
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd The modify type. Default value is set.
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd <function-arg-def name="expectedRC" type="optional" default="0">
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Expected return code value. Default value is 0
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd <sequence>
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd { 'location' : location,
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'dsPath' : dsPath,
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'dsInstanceHost' : dsInstanceHost,
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'dsInstancePort' : dsInstancePort,
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'dsInstanceDn' : dsInstanceDn,
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'dsInstancePswd' : dsInstancePswd,
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'objectName' : 'sasl-mechanism-handler',
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'propertyType' : 'handler',
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'propertyName' : handlerName,
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'attributeName' : propertyName,
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'attributeValue' : propertyValue,
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'modifyType' : modifyType,
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd 'expectedRC' : expectedRC
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd STAXResult
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd </sequence>
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd </function>
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd This function eases adding JEB DB indexes
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd type="optional"
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd default="STAF_REMOTE_HOSTNAME">
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Location of target host
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd type="optional"
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd default="'%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME)">
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Pathname to installation root
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd type="optional"
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd default="STAF_REMOTE_HOSTNAME">
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Directory server hostname or IP address
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd type="optional"
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd default="DIRECTORY_INSTANCE_PORT">
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Directory server port number
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd <function-arg-property name="type" value="Port number" />
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd type="optional"
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd default="DIRECTORY_INSTANCE_DN">
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd type="optional"
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd default="DIRECTORY_INSTANCE_PSWD">
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd Bind password
f086b4b402fa9a2fefc7dda85de2a3cc1cd0a654rjung default="DIRECTORY_INSTANCE_BE"
727872d18412fc021f03969b8641810d8896820bhumbedooh type="optional">
727872d18412fc021f03969b8641810d8896820bhumbedooh The Back-end ID on to which to add an index
727872d18412fc021f03969b8641810d8896820bhumbedooh <function-arg-def name="indexAttribute" type="required">
0d0ba3a410038e179b695446bb149cce6264e0abnd ldap attribute on to which to add indexing
ac082aefa89416cbdc9a1836eaf3bed9698201c8humbedooh <function-arg-property name="type" value="string" />
0d0ba3a410038e179b695446bb149cce6264e0abnd type of index to add
0d0ba3a410038e179b695446bb149cce6264e0abnd This has to be provided as a python array like
30471a4650391f57975f60bbb6e4a90be7b284bfhumbedooh [ 'presence', 'substring' ]
7fec19672a491661b2fe4b29f685bc7f4efa64d4nd This argument can only have one of those values
7fec19672a491661b2fe4b29f685bc7f4efa64d4nd <function-arg-property-data type="choice" value="'equality'" />
e9527d25af8ff3a40b1958aff04688d7df4e8e23nd <function-arg-property-data type="choice" value="'ordering'" />
dsconfigParams = 'create-local-db-index -n -h %s -p %s -D "%s" -w %s --backend-name %s --index-name %s --set index-type:%s' % (host,port,rootDN,rootPwd,backendID, indexAttribute, ' --set index-type:'.join(indexTypes))
dsconfigParams = 'set-local-db-index-prop -n -h %s -p %s -D "%s" -w %s --backend-name %s --index-name %s --%s %s' % ( host, port, rootDN, rootPwd, backendID, indexAttribute, operation, operationArguments )
dsconfigParams = 'delete-local-db-index -n -h %s -p %s -D "%s" -w %s --backend-name %s --index-name %s' % (host,port,rootDN,rootPwd,backendID, indexAttribute)
STAFCmdParamsList.append('create-synchronization-provider')
STAFCmdParamsList.append('--provider-name "%s"' % providerName)
STAFCmdParamsList.append('-t %s' % providerType)
STAFCmdParamsList.append('--set "enabled:true"')
STAFCmdParamsList.append('list-synchronization-providers')
STAFCmdParamsList.append('create-replication-server')
STAFCmdParamsList.append('--provider-name "%s"' % providerName)
STAFCmdParamsList.append('--set "replication-port:%s"' % replicationPort)
STAFCmdParamsList.append('--set "replication-server-id:%s"' % replicationServerId)
STAFCmdParamsList.append('--set "replication-server:%s"' % replServer)
STAFCmdParamsList.append('create-backend')
#STAFCmdParamsList.append('-n')
#STAFCmdParamsList.append('-h %s' % dsInstanceHost)
#STAFCmdParamsList.append('-D %s' % dsInstanceDn)
#STAFCmdParamsList.append('-w %s' % dsInstancePswd)
#STAFCmdParamsList.append('-p %s' % dsInstancePort)
STAFCmdParamsList.append('--backend-name %s' % dsBackendID)
STAFCmdParamsList.append('--type local-db')
STAFCmdParamsList.append(baseDNOption)
STAFCmdParamsList.append('--set enabled:true')
STAFCmdParamsList.append('--set writability-mode:enabled')
STAFCmdParamsList.append('--set import-temp-directory:%s' % dsImportTempDir)
STAFCmdParamsList.append('--set db-directory:%s' % dsLdapDB)
STAFCmdParamsList.append('create-multimaster-domain')
STAFCmdParamsList.append('--provider-name "%s"' % providerName)
STAFCmdParamsList.append('--domain-name "%s"' % domainName)
STAFCmdParamsList.append('--set "base-dn:%s"' % replicationDn)
STAFCmdParamsList.append('--set "server-id:%s"' % serverId)
STAFCmdParamsList.append('--set "replication-server:%s"' % replServer)
e.g. get-backend-prop
e.g. --backend-name userRoot --property base-dn
ldapServer = '%s:%s' % (server.getHostname(),
replicationServer = server.getChangelogServer()
replServer = '%s:%s' % (server.getHostname(),
{ 'location' : server.getHostname(),
'dsPath' : '%s/%s' % (server.getDir(),OPENDSNAME),
'dsInstanceHost' : server.getHostname(),
'dsInstancePort' : server.getPort(),
'dsInstanceDn' : server.getRootDn(),
'dsInstancePswd' : server.getRootPwd(),
ldapServer = '%s:%s' % (server.getHostname(),
replicationServer = server.getChangelogServer()
replServer = '%s:%s' % (server.getHostname(),
optionList.append('--set replication-server:%s' % replServer)
replServerList.append(replServer)
% (replServers, mainServer.getHostname(),
{ 'location' : mainServer.getHostname(),
% (mainServer.getDir(),OPENDSNAME),
'dsInstanceHost' : mainServer.getHostname(),
'dsInstancePort' : mainServer.getPort(),
'dsInstanceDn' : mainServer.getRootDn(),
'dsInstancePswd' : mainServer.getRootPwd(),