388N/A<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2887N/A<!DOCTYPE stax SYSTEM "/shared/stax.dtd">
671N/A<!--
671N/A ! CDDL HEADER START
671N/A !
671N/A ! The contents of this file are subject to the terms of the
671N/A ! Common Development and Distribution License, Version 1.0 only
671N/A ! (the "License"). You may not use this file except in compliance
671N/A ! with the License.
671N/A !
671N/A ! You can obtain a copy of the license at
671N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE
671N/A ! or https://OpenDS.dev.java.net/OpenDS.LICENSE.
671N/A ! See the License for the specific language governing permissions
671N/A ! and limitations under the License.
671N/A !
671N/A ! When distributing Covered Code, include this CDDL HEADER in each
671N/A ! file and include the License file at
671N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
671N/A ! add the following below this CDDL HEADER, with the fields enclosed
873N/A ! by brackets "[]" replaced with your own identifying information:
671N/A ! Portions Copyright [yyyy] [name of copyright owner]
671N/A !
671N/A ! CDDL HEADER END
671N/A !
4618N/A ! Copyright 2006-2009 Sun Microsystems, Inc.
6321N/A ! Portions Copyright 2011-2013 ForgeRock AS
671N/A ! -->
388N/A<stax>
4618N/A <defaultcall function="main_security" />
388N/A <function name="main_security">
3816N/A <function-list-args>
3816N/A <function-required-arg name="STAXParentID"/>
3816N/A </function-list-args>
4618N/A
3403N/A <sequence>
4618N/A <try>
4618N/A <block name="'security'">
3403N/A <sequence>
4618N/A <!--- Load the job environment for the test group execution -->
3403N/A <import machine="STAF_LOCAL_HOSTNAME"
4618N/A file="'%s/environment.xml' % TESTS_FUNCTIONS_DIR" />
4618N/A <call function="'loadJobEnvironment'">
4618N/A { 'parent' : STAXParentID }
4618N/A </call>
4618N/A <script>
4618N/A CurrentTestPath['group']='security'
4618N/A _group=CurrentTestPath['group']
5367N/A
6321N/A import re
6321N/A if UPGRADE_OPENDJNAME != '' and re.search('2.4.*',UPGRADE_OPENDJNAME) is not None:
6321N/A # UPGRADE MODE
6321N/A # Only for upgrade from 2.4.x
6321N/A GLOBAL_ACI_SEARCH="(targetattr!=\"userPassword||authPassword||changes||changeNumber||changeType||changeTime||targetDN||newRDN||newSuperior||deleteOldRDN||targetEntryUUID||targetUniqueID||changeInitiatorsName||changeLogCookie\")(version 3.0; acl \"Anonymous read access\"; allow (read,search,compare) userdn=\"ldap:///anyone\";)"
6321N/A else:
6321N/A # NORMAL MODE
6321N/A GLOBAL_ACI_SEARCH="(targetattr!=\"userPassword||authPassword||changes||changeNumber||changeType||changeTime||targetDN||newRDN||newSuperior||deleteOldRDN||targetEntryUUID||changeInitiatorsName||changeLogCookie||includedAttributes\")(version 3.0; acl \"Anonymous read access\"; allow (read,search,compare) userdn=\"ldap:///anyone\";)"
4618N/A </script>
6321N/A
4618N/A <call function="'testGroup_Preamble'" />
4618N/A <script>
4618N/A suiteList = []
4618N/A suiteList.append(['client_auth','client_auth'])
4618N/A suiteList.append(['jks','security_jks'])
4618N/A suiteList.append(['pkcs12','security_pkcs12'])
4618N/A suiteList.append(['startTLS','security_startTLS'])
4618N/A suiteList.append(['sasl','security_sasl'])
4618N/A suiteList.append(['auth_pwd_syntax','security_auth_pwd_syntax'])
4618N/A suiteList.append(['pwd_validator','security_pwd_validator'])
4618N/A suiteList.append(['pwd_storage','security_pwd_storage'])
4618N/A suiteList.append(['bind_no_pwd','security_bind_no_pwd'])
4618N/A suiteList.append(['account_activation','security_account_activation'])
4618N/A </script>
4618N/A
4618N/A <!-- Run the test suites -->
4618N/A <iterate var="_suite" in="suiteList">
4618N/A <sequence>
4618N/A <try>
4618N/A <sequence>
4618N/A <import machine="STAF_LOCAL_HOSTNAME"
4618N/A file="'%s/testcases/%s/%s/%s.xml' % (TESTS_DIR,_group,_suite[0],_suite[1])"/>
4618N/A <call function="'%s' % _suite[1]" />
4618N/A </sequence>
4618N/A <catch exception="'STAFException.TestSuite.SetupException'">
4618N/A <sequence>
4618N/A <message log="1" level="'fatal'">'Setup of test suite %s failed.' % _suite[0]</message>
4618N/A </sequence>
4618N/A </catch>
4618N/A <catch exception="'STAFException.TestSuite.MainException'">
4618N/A <sequence>
4618N/A <message log="1" level="'fatal'">'Main part of test suite %s failed.' % _suite[0]</message>
4618N/A </sequence>
4618N/A </catch>
4618N/A <catch exception="'STAFException.TestSuite.CleanupException'">
4618N/A <sequence>
4618N/A <message log="1" level="'fatal'">'Cleanup of test suite %s failed.' % _suite[0]</message>
4618N/A </sequence>
4618N/A </catch>
4618N/A </try>
4618N/A </sequence>
4618N/A </iterate>
4618N/A
3403N/A </sequence>
4618N/A </block>
4618N/A <catch exception="'STAXException.TestGroupException'">
4618N/A <sequence>
4618N/A <message log="1" level="'fatal'">'Execution of Test Group Failed'</message>
4618N/A </sequence>
4618N/A </catch>
4618N/A <finally>
4618N/A <!-- Test Group postamble -->
4618N/A <call function="'testGroup_Postamble'"/>
4618N/A </finally>
4618N/A </try>
4618N/A </sequence>
388N/A </function>
5838N/A</stax>