mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

andrug
07.10.2008 c314821b9896039cd13231479655251476b60305
update ssl configuration
4 files modified
32 ■■■■■ changed files
opends/tests/system-tests/phases/installation/installation_opends.xml 2 ●●● patch | view | raw | blame | history
opends/tests/system-tests/phases/parser/parser.py 14 ●●●● patch | view | raw | blame | history
opends/tests/system-tests/phases/shared/functions/opendsadm.xml 11 ●●●● patch | view | raw | blame | history
opends/tests/system-tests/scenario/conf.dtd 5 ●●●●● patch | view | raw | blame | history
opends/tests/system-tests/phases/installation/installation_opends.xml
@@ -267,7 +267,7 @@
      
      
      <!--== Setup product ==-->
      <if expr="instance.isSecurityEnabled() == 'false'">
      <if expr="instance.isSslEnabled() == 'false'">
        <call function="'SetUpDsWithScript'">
          { 
            'location'         : instance.getHost(), 
opends/tests/system-tests/phases/parser/parser.py
@@ -274,7 +274,7 @@
  "Describes an opends Instance"
  def __init__(self, iid, name, product, role, host, installDir, tarball, \
               portLDAP, portLDAPS, portJMX, portREPL, \
               securityEnabled, certificate, startTlsEnabled):
               sslEnabled, certificate, startTlsEnabled):
    # from instance object
    self.iid             = iid
    self.name            = name
@@ -289,7 +289,7 @@
    self.portJMX         = portJMX
    self.portREPL        = portREPL
    self.javaVersion     = NOT_DEFINED
    self.securityEnabled = securityEnabled
    self.sslEnabled      = sslEnabled
    self.certificate     = certificate
    self.startTlsEnabled = startTlsEnabled
    
@@ -308,8 +308,8 @@
  def setJavaVersion(self,javaVersion):
    self.javaVersion = javaVersion
    
  def isSecurityEnabled(self):
    return self.securityEnabled
  def isSslEnabled(self):
    return self.sslEnabled
    
  def getCertificate(self):
    return self.certificate
@@ -589,7 +589,7 @@
  cPortLDAPS       = '1636'
  cPortJMX         = '1390'
  cPortREPL        = '1391'
  cSecurityEnabled = 'false'
  cSslEnabled      = 'false'
  cCertificate     = NOT_DEFINED
  cStartTlsEnabled = 'false'
  
@@ -644,7 +644,7 @@
      elif (thisSubChild.getNodeType() == Node.ELEMENT_NODE and
          thisSubChild.getNodeName() == 'security'):
      
        cSecurityEnabled = _getAttributeNode(thisSubChild,'enabled')
        cSslEnabled      = _getAttributeNode(thisSubChild,'sslEnabled')
        cCertificate     = _getAttributeNode(thisSubChild,'certificate')
        cStartTlsEnabled = _getAttributeNode(thisSubChild,'startTlsEnabled')
        
@@ -670,7 +670,7 @@
  return [msg,OpendsInstance(cId,cName,cProduct,cRole,cHost,cInstallDir,\
                             opendsZip,\
                             cPortLDAP,cPortLDAPS,cPortJMX,cPortREPL,\
                             cSecurityEnabled,cCertificate,cStartTlsEnabled)]
                             cSslEnabled,cCertificate,cStartTlsEnabled)]
#============================================================================
opends/tests/system-tests/phases/shared/functions/opendsadm.xml
@@ -113,8 +113,7 @@
      </function-arg-def>
      <function-arg-def name="dsCertificate" type="optional">
        <function-arg-description>
          certificate mode: selfsigned,Pkcs11keyStore,Pkcs12keyStore,
                            JavakeyStore,
          certificate mode: generateSelfSigned
        </function-arg-description>
        <function-arg-property name="type" value="string"/>
      </function-arg-def>
@@ -175,14 +174,8 @@
          
        if dsCertificate:
          dsCertificate = dsCertificate.lower()
          if dsCertificate == 'selfsigned':
          if dsCertificate == 'generateSelfSigned':
            STAFCmdParamsList.append('--generateSelfSignedCertificate')
          elif dsCertificate == 'pkcs11keystore':
            STAFCmdParamsList.append('--usePkcs11Keystore')
          elif dsCertificate == 'pkcs12keystore':
            STAFCmdParamsList.append('--usePkcs12keyStore')
          elif dsCertificate == 'javakeystore':
            STAFCmdParamsList.append('--useJavaKeystore')
          
        STAFCmdParams=' '.join(STAFCmdParamsList)
      </script>
opends/tests/system-tests/scenario/conf.dtd
@@ -55,9 +55,8 @@
    <!ELEMENT replicationServer (#PCDATA)>
  <!ELEMENT security EMPTY>
  <!ATTLIST security 
      enabled ( true | false ) "true"
      certificate ( selfSigned | Pkcs11keyStore | Pkcs12keyStore
                    | JavakeyStore ) "selfSigned"
      sslEnabled ( true | false ) "true"
      certificate ( generateSelfSigned ) "generateSelfSigned"
      startTlsEnabled ( true | false) "false">