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