5841N/A<?xml version="1.0" encoding="UTF-8" standalone="no"?>
5841N/A<!DOCTYPE stax SYSTEM "/shared/stax.dtd">
5841N/A<!--
5841N/A ! CDDL HEADER START
5841N/A !
5841N/A ! The contents of this file are subject to the terms of the
5841N/A ! Common Development and Distribution License, Version 1.0 only
5841N/A ! (the "License"). You may not use this file except in compliance
5841N/A ! with the License.
5841N/A !
6982N/A ! You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
6982N/A ! or http://forgerock.org/license/CDDLv1.0.html.
5841N/A ! See the License for the specific language governing permissions
5841N/A ! and limitations under the License.
5841N/A !
5841N/A ! When distributing Covered Code, include this CDDL HEADER in each
6982N/A ! file and include the License file at legal-notices/CDDLv1_0.txt.
6982N/A ! If applicable, add the following below this CDDL HEADER, with the
6982N/A ! fields enclosed by brackets "[]" replaced with your own identifying
6982N/A ! information:
5841N/A ! Portions Copyright [yyyy] [name of copyright owner]
5841N/A !
5841N/A ! CDDL HEADER END
5841N/A !
5841N/A ! Copyright 2008-2010 Sun Microsystems, Inc.
6211N/A ! Portions Copyright 2011-2013 ForgeRock AS.
5841N/A ! -->
5841N/A<stax>
5841N/A
5841N/A <!---
5841N/A Place test-specific test information here.
5841N/A The tag, TestMarker, must be the same as the tag, TestSuiteName.
5841N/A #@TestMarker ACI Target Tests
5841N/A #@TestName Preamble
6211N/A #@TestIssue none
5841N/A #@TestPurpose Test default aci settings
5841N/A #@TestPreamble none
5841N/A #@TestStep Client searches entry with a branch dn.
5841N/A #@TestStep Client searches entry with another branch dn.
5841N/A #@TestPostamble none
5841N/A #@TestResult Success if OpenDS returns 0
5841N/A and no entries are returned
5841N/A for all operations.
5841N/A -->
5841N/A <function name="aci_target_001" scope="local">
5841N/A <testcase name="getTestCaseName('Target Preamble')">
5841N/A <sequence>
5841N/A <try>
5841N/A <sequence>
5841N/A
5841N/A <call function="'testCase_Preamble'"/>
5841N/A
5841N/A <message>
5841N/A 'Test Name = %s' % STAXCurrentTestcase
5841N/A </message>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Preamble - Removing Search Global ACI'
5841N/A </message>
5841N/A
5841N/A <call function="'modifyGlobalAci'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'aciValue' : GLOBAL_ACI_SEARCH ,
5841N/A 'opType' : 'remove' }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Preamble - existing branch, user searching entry that will be targeted in future tests'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'attributes' : 'cn sn uid'}
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' ,
5841N/A 'expectedResult' : '0' }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Preamble - existing branch, user searching entry that will be non-targeted in future tests'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=non-aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'attributes' : 'cn sn uid'}
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'checktestStringNotPresent'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=non-aci branch,o=ACI Tests' }
5841N/A </call>
5841N/A
5841N/A </sequence>
5841N/A
5841N/A <catch exception="'STAXException'" typevar="eType" var="eInfo">
5841N/A <message log="1" level="'fatal'">
5841N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
5841N/A </message>
5841N/A </catch>
5841N/A <finally>
5841N/A <sequence>
5841N/A <call function="'testCase_Postamble'"/>
5841N/A </sequence>
5841N/A </finally>
5841N/A </try>
5841N/A </sequence>
5841N/A </testcase>
5841N/A </function>
5841N/A
5841N/A
5841N/A <!---
5841N/A Place test-specific test information here.
5841N/A The tag, TestMarker, must be the same as the tag, TestSuiteName.
5841N/A #@TestMarker ACI Target Tests
5841N/A #@TestName Target equals dn
6211N/A #@TestIssue none
5841N/A #@TestPurpose Test with the target set equal to a dn
5841N/A #@TestPreamble Admin adds an aci with the target equal to the dn of one existing branch.
5841N/A #@TestStep Client searches entry with the targeted branch dn.
5841N/A #@TestStep Client searches entry that is not with the targeted branch dn.
5841N/A #@TestStep Remove aci.
5841N/A #@TestStep Client searches entry with the previously targeted branch dn.
5841N/A #@TestPostamble none
5841N/A #@TestResult Success if OpenDS returns 0
5841N/A for all ldap operations, and
5841N/A and entry is returned only for step 1.
5841N/A -->
5841N/A <function name="aci_target_002" scope="local">
5841N/A <testcase name="getTestCaseName('Target Equals DN')">
5841N/A <sequence>
5841N/A <try>
5841N/A <sequence>
5841N/A
5841N/A <call function="'testCase_Preamble'"/>
5841N/A
5841N/A <message>
5841N/A 'Test Name = %s' % STAXCurrentTestcase
5841N/A </message>
5841N/A
5841N/A <script>
5841N/A curr_aci_ldif_file = 'add_aci1.ldif'
5841N/A curr_aci=retrieve_aci('%s/aci/aci_target/%s' % (local.data,curr_aci_ldif_file));
5841N/A </script>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN, preamble adding aci,\n %s' % curr_aci
5841N/A </message>
5841N/A
5841N/A <call function="'modifyEntry'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'entryToBeModified' : '%s/aci/aci_target/%s' % (remote.data,curr_aci_ldif_file) }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN, user searching targeted entry'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'attributes' : 'cn sn uid'}
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' ,
5841N/A 'expectedResult' : '1' }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN, user searching non-targeted entry'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=non-aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'attributes' : 'cn sn uid'}
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' ,
5841N/A 'expectedResult' : '0' }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN, admin deleting aci'
5841N/A </message>
5841N/A
5841N/A <call function="'modifyEntry'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'entryToBeModified' : '%s/aci/aci_target/del_aci.ldif' % remote.data }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN, user searching previously targeted entry'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'attributes' : 'cn sn uid'}
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'checktestStringNotPresent'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' }
5841N/A </call>
5841N/A
5841N/A </sequence>
5841N/A
5841N/A <catch exception="'STAXException'" typevar="eType" var="eInfo">
5841N/A <message log="1" level="'fatal'">
5841N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
5841N/A </message>
5841N/A </catch>
5841N/A <finally>
5841N/A <sequence>
5841N/A <call function="'testCase_Postamble'"/>
5841N/A </sequence>
5841N/A </finally>
5841N/A </try>
5841N/A </sequence>
5841N/A </testcase>
5841N/A </function>
5841N/A
5841N/A <!---
5841N/A Place test-specific test information here.
5841N/A The tag, TestMarker, must be the same as the tag, TestSuiteName.
5841N/A #@TestMarker ACI Target Tests
5841N/A #@TestName Target equals dn - new branch
6211N/A #@TestIssue none
5841N/A #@TestPurpose Test with the target set equal to a dn - new branch
5841N/A #@TestPreamble Admin adds entries under two branches, one with an aci with the target equal to the dn of one branch.
5841N/A #@TestStep Client searches entry with the targeted branch dn.
5841N/A #@TestStep Client searches entry that is not with the targeted branch dn.
5841N/A #@TestStep Remove aci.
5841N/A #@TestStep Client searches entry with the previously targeted branch dn.
5841N/A #@TestPostamble Admin removes branches.
5841N/A #@TestResult Success if OpenDS returns 0
5841N/A for all ldap operations, and
5841N/A and entry is returned only for step 1.
5841N/A -->
5841N/A <function name="aci_target_003" scope="local">
5841N/A <testcase name="getTestCaseName('Target Equals DN - new branch')">
5841N/A <sequence>
5841N/A <try>
5841N/A <sequence>
5841N/A
5841N/A <call function="'testCase_Preamble'"/>
5841N/A
5841N/A <message>
5841N/A 'Test Name = %s' % STAXCurrentTestcase
5841N/A </message>
5841N/A
5841N/A <script>
5841N/A curr_aci_ldif_file = 'add_entries1.ldif'
5841N/A curr_aci=retrieve_aci('%s/aci/aci_target/%s' % (local.data,curr_aci_ldif_file));
5841N/A </script>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN - new branch, preamble adding entries,\n %s' % curr_aci
5841N/A </message>
5841N/A
5841N/A <call function="'addEntry'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'entryToBeAdded' : '%s/aci/aci_target/%s' % (remote.data,curr_aci_ldif_file) }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN - new branch, user searching targeted entry'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=new aci branch,o=More Branches,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' }
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=new aci branch,o=More Branches,o=ACI Tests' ,
5841N/A 'expectedResult' : '1' }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN - new branch, user searching non-targeted entry'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=new non-aci branch,o=More Branches,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' }
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=new non-aci branch,o=More Branches,o=ACI Tests' ,
5841N/A 'expectedResult' : '0' }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN - new branch, admin deleting aci'
5841N/A </message>
5841N/A
5841N/A <call function="'modifyEntry'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'entryToBeModified' : '%s/aci/aci_target/del_aci_from_entries.ldif' % remote.data }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN - new branch, user searching previously targeted entry'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=new aci branch,o=More Branches,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' }
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=new aci branch,o=More Branches,o=ACI Tests' ,
5841N/A 'expectedResult' : '0' }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN - new branch, postamble admin deleting new entries'
5841N/A </message>
5841N/A
5841N/A <call function="'DeleteEntry'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'dsBaseDN' : 'o=More Branches,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'extraParams' : '-x'}
5841N/A </call>
5841N/A
5841N/A </sequence>
5841N/A
5841N/A <catch exception="'STAXException'" typevar="eType" var="eInfo">
5841N/A <message log="1" level="'fatal'">
5841N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
5841N/A </message>
5841N/A </catch>
5841N/A <finally>
5841N/A <sequence>
5841N/A <call function="'testCase_Postamble'"/>
5841N/A </sequence>
5841N/A </finally>
5841N/A </try>
5841N/A </sequence>
5841N/A </testcase>
5841N/A </function>
5841N/A
5841N/A <!---
5841N/A Place test-specific test information here.
5841N/A The tag, TestMarker, must be the same as the tag, TestSuiteName.
5841N/A #@TestMarker ACI Target Tests
5841N/A #@TestName Target equals dn with trailing wildcard
6211N/A #@TestIssue none
5841N/A #@TestPurpose Test with the target set equal to a dn with a trailing wildcard
5841N/A #@TestPreamble Admin adds an aci with the target equal to the dn with a trailing wildcard.
5841N/A #@TestStep Client searches entry with the targeted branch dn.
5841N/A #@TestStep Client searches entry that is not with the targeted branch dn.
5841N/A #@TestStep Remove aci.
5841N/A #@TestStep Client searches entry with the previously targeted branch dn.
5841N/A #@TestPostamble none
5841N/A #@TestResult Success if OpenDS returns 0
5841N/A for all ldap operations, and
5841N/A and entry is returned only for step 1.
5841N/A -->
5841N/A <function name="aci_target_004" scope="local">
5841N/A <testcase name="getTestCaseName('Target Equals DN With Trailing Wildcard')">
5841N/A <sequence>
5841N/A <try>
5841N/A <sequence>
5841N/A
5841N/A <call function="'testCase_Preamble'"/>
5841N/A
5841N/A <message>
5841N/A 'Test Name = %s' % STAXCurrentTestcase
5841N/A </message>
5841N/A
5841N/A <script>
5841N/A curr_aci_ldif_file = 'add_aci3.ldif'
5841N/A curr_aci=retrieve_aci('%s/aci/aci_target/%s' % (local.data,curr_aci_ldif_file));
5841N/A </script>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with trailing wildcard, preamble adding aci,\n %s' % curr_aci
5841N/A </message>
5841N/A
5841N/A <call function="'modifyEntry'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'entryToBeModified' : '%s/aci/aci_target/%s' % (remote.data,curr_aci_ldif_file) }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with trailing wildcard, user searching targeted entry'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'attributes' : 'cn sn uid'}
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' ,
5841N/A 'expectedResult' : '1' }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with trailing wildcard, user searching non-targeted entry'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=non-aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'attributes' : 'cn sn uid'}
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' ,
5841N/A 'expectedResult' : '0' }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with trailing wildcard, admin deleting aci'
5841N/A </message>
5841N/A
5841N/A <call function="'modifyEntry'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'entryToBeModified' : '%s/aci/aci_target/del_aci.ldif' % remote.data }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with trailing wildcard, user searching previously targeted entry'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'attributes' : 'cn sn uid'}
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'checktestStringNotPresent'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' }
5841N/A </call>
5841N/A
5841N/A </sequence>
5841N/A
5841N/A <catch exception="'STAXException'" typevar="eType" var="eInfo">
5841N/A <message log="1" level="'fatal'">
5841N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
5841N/A </message>
5841N/A </catch>
5841N/A <finally>
5841N/A <sequence>
5841N/A <call function="'testCase_Postamble'"/>
5841N/A </sequence>
5841N/A </finally>
5841N/A </try>
5841N/A </sequence>
5841N/A </testcase>
5841N/A </function>
5841N/A
5841N/A <!---
5841N/A Place test-specific test information here.
5841N/A The tag, TestMarker, must be the same as the tag, TestSuiteName.
5841N/A #@TestMarker ACI Target Tests
5841N/A #@TestName Target equals dn with leading wildcard
6211N/A #@TestIssue none
5841N/A #@TestPurpose Test with the target set equal to a dn with leading wildcard
5841N/A #@TestPreamble Admin adds an aci with the target equal to the dn with a leading wildcard.
5841N/A #@TestStep Client searches entry with the targeted branch dn.
5841N/A #@TestStep Client searches entry that is not with the targeted branch dn.
5841N/A #@TestStep Remove aci.
5841N/A #@TestStep Client searches entry with the previously targeted branch dn.
5841N/A #@TestPostamble none
5841N/A #@TestResult Success if OpenDS returns 0
5841N/A for all ldap operations, and
5841N/A and entry is returned only for step 1.
5841N/A-->
5841N/A <function name="aci_target_005" scope="local">
5841N/A <testcase name="getTestCaseName('Target Equals DN With Leading Wildcard')">
5841N/A <sequence>
5841N/A <try>
5841N/A <sequence>
5841N/A
5841N/A <call function="'testCase_Preamble'"/>
5841N/A
5841N/A <message>
5841N/A 'Test Name = %s' % STAXCurrentTestcase
5841N/A </message>
5841N/A
5841N/A <script>
5841N/A curr_aci_ldif_file = 'add_aci4.ldif'
5841N/A curr_aci=retrieve_aci('%s/aci/aci_target/%s' % (local.data,curr_aci_ldif_file));
5841N/A </script>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with leading wildcard, preamble adding aci,\n %s' % curr_aci
5841N/A </message>
5841N/A
5841N/A <call function="'modifyEntry'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'entryToBeModified' : '%s/aci/aci_target/%s' % (remote.data,curr_aci_ldif_file) }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with leading wildcard, user searching targeted entry'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'attributes' : 'cn sn uid'}
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' ,
5841N/A 'expectedResult' : '1' }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with leading wildcard, user searching non-targeted entry'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=non-aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'attributes' : 'cn sn uid'}
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' ,
5841N/A 'expectedResult' : '0' }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with leading wildcard, admin deleting aci'
5841N/A </message>
5841N/A
5841N/A <call function="'modifyEntry'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'entryToBeModified' : '%s/aci/aci_target/del_aci.ldif' % remote.data }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with leading wildcard, user searching previously targeted entry'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'attributes' : 'cn sn uid'}
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'checktestStringNotPresent'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' }
5841N/A </call>
5841N/A
5841N/A </sequence>
5841N/A
5841N/A <catch exception="'STAXException'" typevar="eType" var="eInfo">
5841N/A <message log="1" level="'fatal'">
5841N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
5841N/A </message>
5841N/A </catch>
5841N/A <finally>
5841N/A <sequence>
5841N/A <call function="'testCase_Postamble'"/>
5841N/A </sequence>
5841N/A </finally>
5841N/A </try>
5841N/A </sequence>
5841N/A </testcase>
5841N/A </function>
5841N/A
5841N/A <!---
5841N/A Place test-specific test information here.
5841N/A The tag, TestMarker, must be the same as the tag, TestSuiteName.
5841N/A #@TestMarker ACI Target Tests
5841N/A #@TestName Target equals dn with internal wildcard
6211N/A #@TestIssue none
5841N/A #@TestPurpose Test with the target set equal to a dn with an internal wildcard
5841N/A #@TestPreamble Admin adds an aci with the target equal to the dn with an internal wildcard.
5841N/A #@TestStep Client searches entry with the targeted branch dn.
5841N/A #@TestStep Client searches entry that is not with the targeted branch dn.
5841N/A #@TestStep Remove aci.
5841N/A #@TestStep Client searches entry with the previously targeted branch dn.
5841N/A #@TestPostamble none
5841N/A #@TestResult Success if OpenDS returns 0
5841N/A for all ldap operations, and
5841N/A and entry is returned only for step 1.
5841N/A -->
5841N/A <function name="aci_target_006" scope="local">
5841N/A <testcase name="getTestCaseName('Target Equals DN With Internal Wildcard')">
5841N/A <sequence>
5841N/A <try>
5841N/A <sequence>
5841N/A
5841N/A <call function="'testCase_Preamble'"/>
5841N/A
5841N/A <message>
5841N/A 'Test Name = %s' % STAXCurrentTestcase
5841N/A </message>
5841N/A
5841N/A <script>
5841N/A curr_aci_ldif_file = 'add_aci5.ldif'
5841N/A curr_aci=retrieve_aci('%s/aci/aci_target/%s' % (local.data,curr_aci_ldif_file));
5841N/A </script>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with internal wildcard, preamble adding aci,\n %s' % curr_aci
5841N/A </message>
5841N/A
5841N/A <call function="'modifyEntry'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'entryToBeModified' : '%s/aci/aci_target/%s' % (remote.data,curr_aci_ldif_file) }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with internal wildcard, user searching targeted entry'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'attributes' : 'cn sn uid'}
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' ,
5841N/A 'expectedResult' : '1' }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with internal wildcard, user searching non-targeted entry'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=non-aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'attributes' : 'cn sn uid'}
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' ,
5841N/A 'expectedResult' : '0' }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with internal wildcard, admin deleting aci'
5841N/A </message>
5841N/A
5841N/A <call function="'modifyEntry'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'entryToBeModified' : '%s/aci/aci_target/del_aci.ldif' % remote.data }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with internal wildcard, user searching previously targeted entry'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'attributes' : 'cn sn uid'}
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'checktestStringNotPresent'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' }
5841N/A </call>
5841N/A
5841N/A </sequence>
5841N/A
5841N/A <catch exception="'STAXException'" typevar="eType" var="eInfo">
5841N/A <message log="1" level="'fatal'">
5841N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
5841N/A </message>
5841N/A </catch>
5841N/A <finally>
5841N/A <sequence>
5841N/A <call function="'testCase_Postamble'"/>
5841N/A </sequence>
5841N/A </finally>
5841N/A </try>
5841N/A </sequence>
5841N/A </testcase>
5841N/A </function>
5841N/A
5841N/A <!---
5841N/A Place test-specific test information here.
5841N/A The tag, TestMarker, must be the same as the tag, TestSuiteName.
5841N/A #@TestMarker ACI Target Tests
5841N/A #@TestName Target equals dn with multiple wildcards
6211N/A #@TestIssue none
5841N/A #@TestPurpose Test with the target set equal to a dn with multiple wildcards
5841N/A #@TestPreamble Admin adds an aci with the target equal to the dn with multiple wildcards.
5841N/A #@TestStep Client searches entry with the targeted branch dn.
5841N/A #@TestStep Client searches entry that is not with the targeted branch dn.
5841N/A #@TestStep Remove aci.
5841N/A #@TestStep Client searches entry with the previously targeted branch dn.
5841N/A #@TestPostamble none
5841N/A #@TestResult Success if OpenDS returns 0
5841N/A for all ldap operations, and
5841N/A and entry is returned only for step 1.
5841N/A -->
5841N/A <function name="aci_target_007" scope="local">
5841N/A <testcase name="getTestCaseName('Target Equals DN With Multiple Wildcards')">
5841N/A <sequence>
5841N/A <try>
5841N/A <sequence>
5841N/A
5841N/A <call function="'testCase_Preamble'"/>
5841N/A
5841N/A <message>
5841N/A 'Test Name = %s' % STAXCurrentTestcase
5841N/A </message>
5841N/A
5841N/A <script>
5841N/A curr_aci_ldif_file = 'add_aci6.ldif'
5841N/A curr_aci=retrieve_aci('%s/aci/aci_target/%s' % (local.data,curr_aci_ldif_file));
5841N/A </script>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with multiple wildcards, preamble adding aci,\n %s' % curr_aci
5841N/A </message>
5841N/A
5841N/A <call function="'modifyEntry'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'entryToBeModified' : '%s/aci/aci_target/%s' % (remote.data,curr_aci_ldif_file) }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with multiple wildcards, user searching targeted entry'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'attributes' : 'cn sn uid'}
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' ,
5841N/A 'expectedResult' : '1' }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with multiple wildcards, user searching non-targeted entry'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=non-aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'attributes' : 'cn sn uid'}
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' ,
5841N/A 'expectedResult' : '0' }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with multiple wildcards, admin deleting aci'
5841N/A </message>
5841N/A
5841N/A <call function="'modifyEntry'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'entryToBeModified' : '%s/aci/aci_target/del_aci.ldif' % remote.data }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with multiple wildcards, user searching previously targeted entry'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'attributes' : 'cn sn uid'}
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'checktestStringNotPresent'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' }
5841N/A </call>
5841N/A
5841N/A </sequence>
5841N/A
5841N/A <catch exception="'STAXException'" typevar="eType" var="eInfo">
5841N/A <message log="1" level="'fatal'">
5841N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
5841N/A </message>
5841N/A </catch>
5841N/A <finally>
5841N/A <sequence>
5841N/A <call function="'testCase_Postamble'"/>
5841N/A </sequence>
5841N/A </finally>
5841N/A </try>
5841N/A </sequence>
5841N/A </testcase>
5841N/A </function>
5841N/A
5841N/A <!---
5841N/A Place test-specific test information here.
5841N/A The tag, TestMarker, must be the same as the tag, TestSuiteName.
5841N/A #@TestMarker ACI Target Tests
5841N/A #@TestName Target contains keyword self
6211N/A #@TestIssue none
5841N/A #@TestPurpose Test if target can contain the keyword self
5841N/A #@TestPreamble none
5841N/A #@TestStep Admin adds an aci that contains the keyword
5841N/A self to an existing entry
5841N/A #@TestStep Admin checks if aci was added.
5841N/A #@TestPostamble none
5841N/A #@TestResult Success if OpenDS returns 21,
5841N/A and the aci has not been added.
5841N/A -->
5841N/A <function name="aci_target_008" scope="local">
5841N/A <testcase name="getTestCaseName('Target Equals DN With Keyword self')">
5841N/A <sequence>
5841N/A <try>
5841N/A <sequence>
5841N/A
5841N/A <call function="'testCase_Preamble'"/>
5841N/A
5841N/A <message>
5841N/A 'Test Name = %s' % STAXCurrentTestcase
5841N/A </message>
5841N/A
5841N/A <script>
5841N/A curr_aci_ldif_file = 'add_aci8.ldif'
5841N/A curr_aci=retrieve_aci('%s/aci/aci_target/%s' % (local.data,curr_aci_ldif_file));
5841N/A </script>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN With Keyword self - add aci,\n %s' % curr_aci
5841N/A </message>
5841N/A
5841N/A <call function="'modifyEntry'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'entryToBeModified' : '%s/aci/aci_target/%s' % (remote.data,curr_aci_ldif_file) ,
5841N/A 'expectedRC' : 21
5841N/A }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN With Keyword self - check aci'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'dsBaseDN' : 'ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'extraParams' : '-s base' ,
5841N/A 'attributes' : 'aci' }
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'checktestStringNotPresent'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'aci:' }
5841N/A </call>
5841N/A
5841N/A </sequence>
5841N/A
5841N/A <catch exception="'STAXException'" typevar="eType" var="eInfo">
5841N/A <message log="1" level="'fatal'">
5841N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
5841N/A </message>
5841N/A </catch>
5841N/A <finally>
5841N/A <sequence>
5841N/A <call function="'testCase_Postamble'"/>
5841N/A </sequence>
5841N/A </finally>
5841N/A </try>
5841N/A </sequence>
5841N/A </testcase>
5841N/A </function>
5841N/A
5841N/A <!---
5841N/A Place test-specific test information here.
5841N/A The tag, TestMarker, must be the same as the tag, TestSuiteName.
5841N/A #@TestMarker ACI Target Tests
5841N/A #@TestName Target set to a dn above the entry
6211N/A #@TestIssue none
5841N/A #@TestPurpose Test if the target can contain a DN above the
5841N/A level of the entry
5841N/A #@TestPreamble none
5841N/A #@TestStep Client adds an aci to its entry
5841N/A that has a DN above the entry's level.
5841N/A #@TestStep Admin checks if aci was added.
5841N/A #@TestPostamble none
5841N/A #@TestResult Success if OpenDS returns 50,
5841N/A and the aci has not been added.
5841N/A -->
5841N/A <function name="aci_target_009" scope="local">
5841N/A <testcase name="getTestCaseName('Target Equals DN Above Entry')">
5841N/A <sequence>
5841N/A <try>
5841N/A <sequence>
5841N/A
5841N/A <call function="'testCase_Preamble'"/>
5841N/A
5841N/A <message>
5841N/A 'Test Name = %s' % STAXCurrentTestcase
5841N/A </message>
5841N/A
5841N/A <script>
5841N/A curr_aci_ldif_file = 'add_aci9.ldif'
5841N/A curr_aci=retrieve_aci('%s/aci/aci_target/%s' % (local.data,curr_aci_ldif_file));
5841N/A </script>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN Above Entry - add aci,\n %s' % curr_aci
5841N/A </message>
5841N/A
5841N/A <call function="'modifyEntry'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'entryToBeModified' : '%s/aci/aci_target/%s' % (remote.data,curr_aci_ldif_file) ,
5841N/A 'expectedRC' : 21
5841N/A }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN Above Entry - check aci'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'dsBaseDN' : 'ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'extraParams' : '-s base' ,
5841N/A 'attributes' : 'aci' }
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'checktestStringNotPresent'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'aci:' }
5841N/A </call>
5841N/A
5841N/A </sequence>
5841N/A
5841N/A <catch exception="'STAXException'" typevar="eType" var="eInfo">
5841N/A <message log="1" level="'fatal'">
5841N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
5841N/A </message>
5841N/A </catch>
5841N/A <finally>
5841N/A <sequence>
5841N/A <call function="'testCase_Postamble'"/>
5841N/A </sequence>
5841N/A </finally>
5841N/A </try>
5841N/A </sequence>
5841N/A </testcase>
5841N/A </function>
5841N/A
5841N/A <!---
5841N/A Place test-specific test information here.
5841N/A The tag, TestMarker, must be the same as the tag, TestSuiteName.
5841N/A #@TestMarker ACI Target Tests
5841N/A #@TestName Target set to a dn below the entry
6211N/A #@TestIssue none
5841N/A #@TestPurpose Test if the target can contain a DN below the
5841N/A level of the entry
5841N/A #@TestPreamble none
5841N/A #@TestStep Client adds an aci to its entry
5841N/A that has a DN below the entry's level.
5841N/A #@TestStep Admin checks if aci was added.
5841N/A #@TestPostamble none
5841N/A #@TestResult Success if OpenDS returns 0
5841N/A for all ldap operations, and
5841N/A and entry is returned only for step 1.
5841N/A -->
5841N/A <function name="aci_target_010" scope="local">
5841N/A <testcase name="getTestCaseName('Target Equals DN Below Entry')">
5841N/A <sequence>
5841N/A <try>
5841N/A <sequence>
5841N/A
5841N/A <call function="'testCase_Preamble'"/>
5841N/A
5841N/A <message>
5841N/A 'Test Name = %s' % STAXCurrentTestcase
5841N/A </message>
5841N/A
5841N/A <script>
5841N/A curr_aci_ldif_file = 'add_aci9a.ldif'
5841N/A curr_aci=retrieve_aci('%s/aci/aci_target/%s' % (local.data,curr_aci_ldif_file));
5841N/A </script>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN Below Entry - add aci,\n %s' % curr_aci
5841N/A </message>
5841N/A
5841N/A <call function="'modifyEntry'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'entryToBeModified' : '%s/aci/aci_target/%s' % (remote.data,curr_aci_ldif_file) }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN Below Entry, user searching targeted entry'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'attributes' : 'cn sn uid' }
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' ,
5841N/A 'expectedResult' : '1' }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN Below Entry, user searching non-targeted entry'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=non-aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'attributes' : 'cn sn uid' }
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' ,
5841N/A 'expectedResult' : '0' }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN Below Entry, admin deleting aci'
5841N/A </message>
5841N/A
5841N/A <call function="'modifyEntry'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'entryToBeModified' : '%s/aci/aci_target/del_aci.ldif' % remote.data }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN Below Entry, user searching previously targeted entry'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'attributes' : 'cn sn uid'}
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'checktestStringNotPresent'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' }
5841N/A </call>
5841N/A
5841N/A </sequence>
5841N/A
5841N/A <catch exception="'STAXException'" typevar="eType" var="eInfo">
5841N/A <message log="1" level="'fatal'">
5841N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
5841N/A </message>
5841N/A </catch>
5841N/A <finally>
5841N/A <sequence>
5841N/A <call function="'testCase_Postamble'"/>
5841N/A </sequence>
5841N/A </finally>
5841N/A </try>
5841N/A </sequence>
5841N/A </testcase>
5841N/A </function>
5841N/A
5841N/A <!---
5841N/A Place test-specific test information here.
5841N/A The tag, TestMarker, must be the same as the tag, TestSuiteName.
5841N/A #@TestMarker ACI Target Tests
5841N/A #@TestName Multiple targets
6211N/A #@TestIssue none
5841N/A #@TestPurpose Test if an aci is allowed to contain multiple targets
5841N/A #@TestPreamble none
5841N/A #@TestStep Admin adds an aci to an existing entry
5841N/A that has multiple targets
5841N/A #@TestStep Admin checks if aci was added.
5841N/A #@TestStep Client searches entry with the targeted dn.
5841N/A #@TestStep Client searches entry with a non-targeted dn.
5841N/A #@TestPostamble none
5841N/A #@TestResult Success if OpenDS returns 21,
5841N/A and the aci has not been added.
5841N/A -->
5841N/A <function name="aci_target_011" scope="local">
5841N/A <testcase name="getTestCaseName('Multiple Targets')">
5841N/A <sequence>
5841N/A <try>
5841N/A <sequence>
5841N/A
5841N/A <call function="'testCase_Preamble'"/>
5841N/A
5841N/A <message>
5841N/A 'Test Name = %s' % STAXCurrentTestcase
5841N/A </message>
5841N/A
5841N/A <script>
5841N/A curr_aci_ldif_file = 'add_aci10.ldif'
5841N/A curr_aci=retrieve_aci('%s/aci/aci_target/%s' % (local.data,curr_aci_ldif_file));
5841N/A </script>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Multiple Targets - add aci,\n %s' % curr_aci
5841N/A </message>
5841N/A
5841N/A <call function="'modifyEntry'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'entryToBeModified' : '%s/aci/aci_target/%s' % (remote.data,curr_aci_ldif_file) ,
5841N/A 'expectedRC' : 21
5841N/A }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Multiple Targets - check aci'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'dsBaseDN' : 'ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'extraParams' : '-s base' ,
5841N/A 'attributes' : 'aci' }
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'checktestStringNotPresent'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'aci:' }
5841N/A </call>
5841N/A
5841N/A </sequence>
5841N/A
5841N/A <catch exception="'STAXException'" typevar="eType" var="eInfo">
5841N/A <message log="1" level="'fatal'">
5841N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
5841N/A </message>
5841N/A </catch>
5841N/A <finally>
5841N/A <sequence>
5841N/A <call function="'testCase_Postamble'"/>
5841N/A </sequence>
5841N/A </finally>
5841N/A </try>
5841N/A </sequence>
5841N/A </testcase>
5841N/A </function>
5841N/A
5841N/A <!---
5841N/A Place test-specific test information here.
5841N/A The tag, TestMarker, must be the same as the tag, TestSuiteName.
5841N/A #@TestMarker ACI Target Tests
5841N/A #@TestName Target with mispelled keyword target
6211N/A #@TestIssue none
5841N/A #@TestPurpose Test if an aci is allowed that contains the keyword target misspelled
5841N/A #@TestPreamble none
5841N/A #@TestStep Admin adds an aci to an existing entry
5841N/A that has the keyword target misspelled
5841N/A #@TestStep Admin checks if aci was added.
5841N/A #@TestStep Client searches entry with the targeted dn.
5841N/A #@TestStep Client searches entry with a non-targeted dn.
5841N/A #@TestPostamble none
5841N/A #@TestResult Success if OpenDS returns 21,
5841N/A and the aci has not been added.
5841N/A -->
5841N/A <function name="aci_target_012" scope="local">
5841N/A <testcase name="getTestCaseName('Keyword Target Misspelled')">
5841N/A <sequence>
5841N/A <try>
5841N/A <sequence>
5841N/A
5841N/A <call function="'testCase_Preamble'"/>
5841N/A
5841N/A <message>
5841N/A 'Test Name = %s' % STAXCurrentTestcase
5841N/A </message>
5841N/A
5841N/A <script>
5841N/A curr_aci_ldif_file = 'add_aci11.ldif'
5841N/A curr_aci=retrieve_aci('%s/aci/aci_target/%s' % (local.data,curr_aci_ldif_file));
5841N/A </script>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Keyword Target Misspelled - add aci,\n %s' % curr_aci
5841N/A </message>
5841N/A
5841N/A <call function="'modifyEntry'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'entryToBeModified' : '%s/aci/aci_target/%s' % (remote.data,curr_aci_ldif_file) ,
5841N/A 'expectedRC' : 21
5841N/A }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Keyword Target Misspelled - check aci'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'dsBaseDN' : 'ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'extraParams' : '-s base' ,
5841N/A 'attributes' : 'aci' }
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'checktestStringNotPresent'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'aci:' }
5841N/A </call>
5841N/A
5841N/A </sequence>
5841N/A
5841N/A <catch exception="'STAXException'" typevar="eType" var="eInfo">
5841N/A <message log="1" level="'fatal'">
5841N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
5841N/A </message>
5841N/A </catch>
5841N/A <finally>
5841N/A <sequence>
5841N/A <call function="'testCase_Postamble'"/>
5841N/A </sequence>
5841N/A </finally>
5841N/A </try>
5841N/A </sequence>
5841N/A </testcase>
5841N/A </function>
5841N/A
5841N/A <!---
5841N/A Place test-specific test information here.
5841N/A The tag, TestMarker, must be the same as the tag, TestSuiteName.
5841N/A #@TestMarker ACI Target Tests
5841N/A #@TestName Target with missing leading ldap:
6211N/A #@TestIssue none
5841N/A #@TestPurpose Test if an aci is allowed that contains the keyword target misspelled
5841N/A #@TestPreamble none
5841N/A #@TestStep Admin adds an aci to an existing entry
5841N/A that has the keyword target misspelled
5841N/A #@TestStep Admin checks if aci was added.
5841N/A #@TestStep Client searches entry with the targeted dn.
5841N/A #@TestStep Client searches entry with a non-targeted dn.
5841N/A #@TestPostamble none
5841N/A #@TestResult Success if OpenDS returns 21,
5841N/A and the aci has not been added.
5841N/A -->
5841N/A <function name="aci_target_013" scope="local">
5841N/A <testcase name="getTestCaseName('Missing Leading ldap:')">
5841N/A <sequence>
5841N/A <try>
5841N/A <sequence>
5841N/A
5841N/A <call function="'testCase_Preamble'"/>
5841N/A
5841N/A <message>
5841N/A 'Test Name = %s' % STAXCurrentTestcase
5841N/A </message>
5841N/A
5841N/A <script>
5841N/A curr_aci_ldif_file = 'add_aci12.ldif'
5841N/A curr_aci=retrieve_aci('%s/aci/aci_target/%s' % (local.data,curr_aci_ldif_file));
5841N/A </script>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Missing leading ldap: - add aci,\n %s' % curr_aci
5841N/A </message>
5841N/A
5841N/A <call function="'modifyEntry'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'entryToBeModified' : '%s/aci/aci_target/%s' % (remote.data,curr_aci_ldif_file) ,
5841N/A 'expectedRC' : 21
5841N/A }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Missing leading ldap: - check aci'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'dsBaseDN' : 'ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'extraParams' : '-s base' ,
5841N/A 'attributes' : 'aci' }
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'checktestStringNotPresent'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'aci:' }
5841N/A </call>
5841N/A
5841N/A </sequence>
5841N/A
5841N/A <catch exception="'STAXException'" typevar="eType" var="eInfo">
5841N/A <message log="1" level="'fatal'">
5841N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
5841N/A </message>
5841N/A </catch>
5841N/A <finally>
5841N/A <sequence>
5841N/A <call function="'testCase_Postamble'"/>
5841N/A </sequence>
5841N/A </finally>
5841N/A </try>
5841N/A </sequence>
5841N/A </testcase>
5841N/A </function>
5841N/A
5841N/A <!---
5841N/A Place test-specific test information here.
5841N/A The tag, TestMarker, must be the same as the tag, TestSuiteName.
5841N/A #@TestMarker ACI Target Tests
5841N/A #@TestName Target with ldap:all
6211N/A #@TestIssue none
5841N/A #@TestPurpose Test if an aci is allowed that contains the keyword target with all
5841N/A #@TestPreamble none
5841N/A #@TestStep Admin adds an aci to an existing entry
5841N/A that has the keyword target misspelled
5841N/A #@TestStep Admin checks if aci was added.
5841N/A #@TestStep Client searches entry with the targeted dn.
5841N/A #@TestStep Client searches entry with a non-targeted dn.
5841N/A #@TestPostamble none
5841N/A #@TestResult Success if OpenDS returns 21,
5841N/A and the aci has not been added.
5841N/A -->
5841N/A <function name="aci_target_014" scope="local">
5841N/A <testcase name="getTestCaseName('With ldap:all')">
5841N/A <sequence>
5841N/A <try>
5841N/A <sequence>
5841N/A
5841N/A <call function="'testCase_Preamble'"/>
5841N/A
5841N/A <message>
5841N/A 'Test Name = %s' % STAXCurrentTestcase
5841N/A </message>
5841N/A
5841N/A <script>
5841N/A curr_aci_ldif_file = 'add_aci13.ldif'
5841N/A curr_aci=retrieve_aci('%s/aci/aci_target/%s' % (local.data,curr_aci_ldif_file));
5841N/A </script>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: With ldap:all - add aci,\n %s' % curr_aci
5841N/A </message>
5841N/A
5841N/A <call function="'modifyEntry'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'entryToBeModified' : '%s/aci/aci_target/%s' % (remote.data,curr_aci_ldif_file) ,
5841N/A 'expectedRC' : 21
5841N/A }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: With ldap:all - check aci'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'dsBaseDN' : 'ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'extraParams' : '-s base' ,
5841N/A 'attributes' : 'aci' }
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'checktestStringNotPresent'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'aci:' }
5841N/A </call>
5841N/A
5841N/A </sequence>
5841N/A
5841N/A <catch exception="'STAXException'" typevar="eType" var="eInfo">
5841N/A <message log="1" level="'fatal'">
5841N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
5841N/A </message>
5841N/A </catch>
5841N/A <finally>
5841N/A <sequence>
5841N/A <call function="'testCase_Postamble'"/>
5841N/A </sequence>
5841N/A </finally>
5841N/A </try>
5841N/A </sequence>
5841N/A </testcase>
5841N/A </function>
5841N/A
5841N/A <!---
5841N/A Place test-specific test information here.
5841N/A The tag, TestMarker, must be the same as the tag, TestSuiteName.
5841N/A #@TestMarker ACI Target Tests
5841N/A #@TestName Target ACI with mispelled version
6211N/A #@TestIssue none
5841N/A #@TestPurpose Test if an aci is allowed that contains version mispelled
5841N/A #@TestPreamble none
5841N/A #@TestStep Admin adds an aci to an existing entry
5841N/A that has the keyword version misspelled
5841N/A #@TestStep Admin checks if aci was added.
5841N/A #@TestPostamble none
5841N/A #@TestResult Success if OpenDS returns 21,
5841N/A and the aci has not been added.
5841N/A -->
5841N/A <function name="aci_target_015" scope="local">
5841N/A <testcase name="getTestCaseName('Keyword version mispelled')">
5841N/A <sequence>
5841N/A <try>
5841N/A <sequence>
5841N/A
5841N/A <call function="'testCase_Preamble'"/>
5841N/A
5841N/A <message>
5841N/A 'Test Name = %s' % STAXCurrentTestcase
5841N/A </message>
5841N/A
5841N/A <script>
5841N/A curr_aci="(targetattr=\"*\")(verison 3.0; acl \"add_aci14\"; allow (search,read) userdn=\"ldap:///all\";)"
5841N/A </script>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Keyword version mispelled - add aci,\n %s' % curr_aci
5841N/A </message>
5841N/A
5841N/A <call function="'modifyAnAttribute'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'DNToModify' : 'ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'attributeName' : 'aci' ,
5841N/A 'newAttributeValue' : curr_aci ,
5841N/A 'changetype' : 'add' ,
5841N/A 'expectedRC' : 21}
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Keyword version mispelled - check aci'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'dsBaseDN' : 'ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'extraParams' : '-s base' ,
5841N/A 'attributes' : 'aci' }
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'checktestStringNotPresent'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'aci:' }
5841N/A </call>
5841N/A
5841N/A </sequence>
5841N/A
5841N/A <catch exception="'STAXException'" typevar="eType" var="eInfo">
5841N/A <message log="1" level="'fatal'">
5841N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
5841N/A </message>
5841N/A </catch>
5841N/A <finally>
5841N/A <sequence>
5841N/A <call function="'testCase_Postamble'"/>
5841N/A </sequence>
5841N/A </finally>
5841N/A </try>
5841N/A </sequence>
5841N/A </testcase>
5841N/A </function>
5841N/A
5841N/A <!---
5841N/A Place test-specific test information here.
5841N/A The tag, TestMarker, must be the same as the tag, TestSuiteName.
5841N/A #@TestMarker ACI Target Tests
5841N/A #@TestName Enable and disable ACIs
6211N/A #@TestIssue none
5841N/A #@TestPurpose Enable and disable access control functionality
5841N/A #@TestPreamble Admin adds an aci with the target equal to the dn of one existing branch.
5841N/A #@TestStep Client searches entry with the targeted branch dn.
5841N/A #@TestStep Admin adds a deny ACI.
5841N/A #@TestStep Client searches entry with the targeted branch dn.
5841N/A #@TestStep Admin disables access control functionality.
5841N/A #@TestStep Client searches entry with the targeted branch dn.
5841N/A #@TestStep Admin enables access control functionality.
5841N/A #@TestStep Remove aci.
5841N/A #@TestStep Remove deny aci.
5841N/A #@TestStep Client searches entry with the previously targeted branch dn.
5841N/A #@TestPostamble none
5841N/A #@TestResult Success if OpenDS returns 0
5841N/A for all ldap operations, and
5841N/A and entry is returned only for steps 1 and 5.
5841N/A -->
5841N/A <function name="aci_target_016" scope="local">
5841N/A <testcase name="getTestCaseName('Enable and disable ACIs')">
5841N/A <sequence>
5841N/A <try>
5841N/A <sequence>
5841N/A
5841N/A <call function="'testCase_Preamble'"/>
5841N/A
5841N/A <message>
5841N/A 'Test Name = %s' % STAXCurrentTestcase
5841N/A </message>
5841N/A
5841N/A <script>
5841N/A curr_aci="(targetattr=\"*\")(version 3.0; acl \"add_aci15\"; allow (search,read) userdn=\"ldap:///all\";)"
5841N/A </script>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target enable and disable ACIs, preamble adding aci'
5841N/A </message>
5841N/A
5841N/A <call function="'modifyAnAttribute'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'DNToModify' : 'ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'attributeName' : 'aci' ,
5841N/A 'newAttributeValue' : curr_aci ,
5841N/A 'changetype' : 'add' }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: enable and disable ACIs, user searching targeted entry'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'attributes' : 'cn sn uid'}
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' ,
5841N/A 'expectedResult' : '1' }
5841N/A </call>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'uid: scarter' ,
5841N/A 'expectedResult' : '1' }
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A curr_aci2="(targetattr=\"*\")(version 3.0; acl \"add_aci15\"; deny (search,read) userdn=\"ldap:///all\";)"
5841N/A </script>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target enable and disable ACIs, adding deny aci'
5841N/A </message>
5841N/A
5841N/A <call function="'modifyAnAttribute'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'DNToModify' : 'ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'attributeName' : 'aci' ,
5841N/A 'newAttributeValue' : curr_aci2 ,
5841N/A 'changetype' : 'add' }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: enable and disable ACIs, user searching targeted entry'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'attributes' : 'cn sn uid'}
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' ,
5841N/A 'expectedResult' : '0' }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target enable and disable ACIs, disable ACIs'
5841N/A </message>
5841N/A
5841N/A <call function="'modifyAnAttribute'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'DNToModify' : 'cn=Access Control Handler,cn=config' ,
5841N/A 'attributeName' : 'ds-cfg-enabled' ,
5841N/A 'newAttributeValue' : 'false' ,
5841N/A 'changetype' : 'replace' }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: enable and disable ACIs, user searching targeted entry'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'attributes' : 'cn sn uid'}
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' ,
5841N/A 'expectedResult' : '1' }
5841N/A </call>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'uid: scarter' ,
5841N/A 'expectedResult' : '1' }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target enable and disable ACIs, enable ACIs'
5841N/A </message>
5841N/A
5841N/A <call function="'modifyAnAttribute'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'DNToModify' : 'cn=Access Control Handler,cn=config' ,
5841N/A 'attributeName' : 'ds-cfg-enabled' ,
5841N/A 'newAttributeValue' : 'true' ,
5841N/A 'changetype' : 'replace' }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: enable and disable ACIs, user searching targeted entry'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'attributes' : 'cn sn uid'}
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' ,
5841N/A 'expectedResult' : '0' }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: enable and disable ACIs, admin deleting aci'
5841N/A </message>
5841N/A
5841N/A <call function="'modifyAnAttribute'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'DNToModify' : 'ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'attributeName' : 'aci' ,
5841N/A 'newAttributeValue' : curr_aci ,
5841N/A 'changetype' : 'delete' }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: enable and disable ACIs, admin deleting deny aci'
5841N/A </message>
5841N/A
5841N/A <call function="'modifyAnAttribute'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'DNToModify' : 'ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'attributeName' : 'aci' ,
5841N/A 'newAttributeValue' : curr_aci2 ,
5841N/A 'changetype' : 'delete' }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: enable and disable ACIs, user searching previously targeted entry'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'attributes' : 'cn sn uid'}
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'checktestStringNotPresent'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' }
5841N/A </call>
5841N/A
5841N/A </sequence>
5841N/A
5841N/A <catch exception="'STAXException'" typevar="eType" var="eInfo">
5841N/A <message log="1" level="'fatal'">
5841N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
5841N/A </message>
5841N/A </catch>
5841N/A <finally>
5841N/A <sequence>
5841N/A <call function="'testCase_Postamble'"/>
5841N/A </sequence>
5841N/A </finally>
5841N/A </try>
5841N/A </sequence>
5841N/A </testcase>
5841N/A </function>
5841N/A
5841N/A <!---
5841N/A Place test-specific test information here.
5841N/A The tag, TestMarker, must be the same as the tag, TestSuiteName.
5841N/A #@TestMarker ACI Target Tests
5841N/A #@TestName Enable and disable global ACIs
6211N/A #@TestIssue none
5841N/A #@TestPurpose Enable and disable access control functionality
5841N/A #@TestPreamble none
5841N/A #@TestStep Client searches entry with the targeted branch dn.
5841N/A #@TestStep Admin disables access control functionality.
5841N/A #@TestStep Client searches entry with the targeted branch dn.
5841N/A #@TestStep Admin enables access control functionality.
5841N/A #@TestStep Client searches entry with the previously targeted branch dn.
5841N/A #@TestPostamble none
5841N/A #@TestResult Success if OpenDS returns 0
5841N/A for all ldap operations, and
5841N/A and entry is returned only for step 3.
5841N/A -->
5841N/A <function name="aci_target_017" scope="local">
5841N/A <testcase name="getTestCaseName('Enable and disable global ACIs')">
5841N/A <sequence>
5841N/A <try>
5841N/A <sequence>
5841N/A
5841N/A <call function="'testCase_Preamble'"/>
5841N/A
5841N/A <message>
5841N/A 'Test Name = %s' % STAXCurrentTestcase
5841N/A </message>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: enable and disable global ACIs, user searching targeted entry'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'attributes' : 'cn sn uid'}
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' ,
5841N/A 'expectedResult' : '0' }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target enable and disable global ACIs, disable ACIs'
5841N/A </message>
5841N/A
5841N/A <call function="'modifyAnAttribute'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'DNToModify' : 'cn=Access Control Handler,cn=config' ,
5841N/A 'attributeName' : 'ds-cfg-enabled' ,
5841N/A 'newAttributeValue' : 'false' ,
5841N/A 'changetype' : 'replace' }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: enable and disable global ACIs, user searching targeted entry'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'attributes' : 'cn sn uid'}
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' ,
5841N/A 'expectedResult' : '1' }
5841N/A </call>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'uid: scarter' ,
5841N/A 'expectedResult' : '1' }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target enable and disable global ACIs, enable ACIs'
5841N/A </message>
5841N/A
5841N/A <call function="'modifyAnAttribute'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'DNToModify' : 'cn=Access Control Handler,cn=config' ,
5841N/A 'attributeName' : 'ds-cfg-enabled' ,
5841N/A 'newAttributeValue' : 'true' ,
5841N/A 'changetype' : 'replace' }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: enable and disable global ACIs, user searching previously targeted entry'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'attributes' : 'cn sn uid'}
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'checktestStringNotPresent'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' }
5841N/A </call>
5841N/A
5841N/A </sequence>
5841N/A
5841N/A <catch exception="'STAXException'" typevar="eType" var="eInfo">
5841N/A <message log="1" level="'fatal'">
5841N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
5841N/A </message>
5841N/A </catch>
5841N/A <finally>
5841N/A <sequence>
5841N/A <call function="'testCase_Postamble'"/>
5841N/A </sequence>
5841N/A </finally>
5841N/A </try>
5841N/A </sequence>
5841N/A </testcase>
5841N/A </function>
5841N/A
5841N/A
5841N/A <!---
5841N/A Place test-specific test information here.
5841N/A The tag, TestMarker, must be the same as the tag, TestSuiteName.
5841N/A #@TestMarker ACI Target Tests
5841N/A #@TestName Target equals dn with userdn equal all
6211N/A none
5841N/A #@TestPurpose Test with the target set equal to a dn with userdn equal all
5841N/A #@TestPreamble Admin adds an aci with the target equal to the dn of one existing branch.
5841N/A #@TestStep Client searches entry with the targeted branch dn with authenticated user.
5841N/A #@TestStep Client searches entry with the targeted branch dn with anonymous user.
5841N/A #@TestStep Remove aci.
5841N/A #@TestStep Client searches entry with the previously targeted branch dn.
5841N/A #@TestPostamble none
5841N/A #@TestResult Success if OpenDS returns 0
5841N/A for all ldap operations, and
5841N/A and entry is returned only for step 1.
5841N/A -->
5841N/A <function name="aci_target_018" scope="local">
5841N/A <testcase name="getTestCaseName('Target Equals DN with userdn equals all')">
5841N/A <sequence>
5841N/A <try>
5841N/A <sequence>
5841N/A
5841N/A <call function="'testCase_Preamble'"/>
5841N/A
5841N/A <message>
5841N/A 'Test Name = %s' % STAXCurrentTestcase
5841N/A </message>
5841N/A
5841N/A <script>
5841N/A curr_aci_ldif_file = 'add_aci21.ldif'
5841N/A curr_aci=retrieve_aci('%s/aci/aci_target/%s' % (local.data,curr_aci_ldif_file));
5841N/A </script>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with userdn equals all, preamble adding aci,\n %s' % curr_aci
5841N/A </message>
5841N/A
5841N/A <call function="'modifyEntry'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'entryToBeModified' : '%s/aci/aci_target/%s' % (remote.data,curr_aci_ldif_file) }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with userdn equals all, user searching targeted entry as authenticated user'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'attributes' : 'cn sn uid'}
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' ,
5841N/A 'expectedResult' : '1' }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with userdn equals all, user searching targeted entry as anonymous user'
5841N/A </message>
5841N/A
5841N/A <call function="'AnonSearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'extraParams' : '-T' }
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' ,
5841N/A 'expectedResult' : '0' }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with userdn equals all, admin deleting aci'
5841N/A </message>
5841N/A
5841N/A <call function="'modifyEntry'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'entryToBeModified' : '%s/aci/aci_target/del_aci.ldif' % remote.data }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with userdn equals all, user searching previously targeted entry'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'attributes' : 'cn sn uid'}
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'checktestStringNotPresent'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' }
5841N/A </call>
5841N/A
5841N/A </sequence>
5841N/A
5841N/A <catch exception="'STAXException'" typevar="eType" var="eInfo">
5841N/A <message log="1" level="'fatal'">
5841N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
5841N/A </message>
5841N/A </catch>
5841N/A <finally>
5841N/A <sequence>
5841N/A <call function="'testCase_Postamble'"/>
5841N/A </sequence>
5841N/A </finally>
5841N/A </try>
5841N/A </sequence>
5841N/A </testcase>
5841N/A </function>
5841N/A
5841N/A <!---
5841N/A Place test-specific test information here.
5841N/A The tag, TestMarker, must be the same as the tag, TestSuiteName.
5841N/A #@TestMarker ACI Target Tests
5841N/A #@TestName Target equals dn with userdn equal anyone
6211N/A #@TestIssue none
5841N/A #@TestPurpose Test with the target set equal to a dn with userdn equal anyone
5841N/A #@TestPreamble Admin adds an aci with the target equal to the dn of one existing branch.
5841N/A #@TestStep Client searches entry with the targeted branch dn with authenticated user.
5841N/A #@TestStep Client searches entry with the targeted branch dn with anonoymous user
5841N/A #@TestStep Remove aci.
5841N/A #@TestStep Client searches entry with the previously targeted branch dn.
5841N/A #@TestPostamble none
5841N/A #@TestResult Success if OpenDS returns 0
5841N/A for all ldap operations, and
5841N/A and entry is returned only for steps 1 and 2.
5841N/A -->
5841N/A <function name="aci_target_019" scope="local">
5841N/A <testcase name="getTestCaseName('Target Equals DN with userdn equals anyone')">
5841N/A <sequence>
5841N/A <try>
5841N/A <sequence>
5841N/A
5841N/A <call function="'testCase_Preamble'"/>
5841N/A
5841N/A <message>
5841N/A 'Test Name = %s' % STAXCurrentTestcase
5841N/A </message>
5841N/A
5841N/A <script>
5841N/A curr_aci_ldif_file = 'add_aci22.ldif'
5841N/A curr_aci=retrieve_aci('%s/aci/aci_target/%s' % (local.data,curr_aci_ldif_file));
5841N/A </script>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with userdn equals anyone, preamble adding aci,\n %s' % curr_aci
5841N/A </message>
5841N/A
5841N/A <call function="'modifyEntry'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'entryToBeModified' : '%s/aci/aci_target/%s' % (remote.data,curr_aci_ldif_file) }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with userdn equals anyone, user searching targeted entry as authenticated user'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'attributes' : 'cn sn uid'}
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' ,
5841N/A 'expectedResult' : '1' }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with userdn equals anyone, user searching targeted entry as anonymous user'
5841N/A </message>
5841N/A
5841N/A <call function="'AnonSearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'extraParams' : '-T' }
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' ,
5841N/A 'expectedResult' : '1' }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with userdn equals anyone, admin deleting aci'
5841N/A </message>
5841N/A
5841N/A <call function="'modifyEntry'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'entryToBeModified' : '%s/aci/aci_target/del_aci.ldif' % remote.data }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with userdn equals anyone, user searching previously targeted entry'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'attributes' : 'cn sn uid'}
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'checktestStringNotPresent'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' }
5841N/A </call>
5841N/A
5841N/A </sequence>
5841N/A
5841N/A <catch exception="'STAXException'" typevar="eType" var="eInfo">
5841N/A <message log="1" level="'fatal'">
5841N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
5841N/A </message>
5841N/A </catch>
5841N/A <finally>
5841N/A <sequence>
5841N/A <call function="'testCase_Postamble'"/>
5841N/A </sequence>
5841N/A </finally>
5841N/A </try>
5841N/A </sequence>
5841N/A </testcase>
5841N/A </function>
5841N/A
5841N/A <!---
5841N/A Place test-specific test information here.
5841N/A The tag, TestMarker, must be the same as the tag, TestSuiteName.
5841N/A #@TestMarker ACI Target Tests
5841N/A #@TestName Target equals dn with userdn not equal all
6211N/A #@TestIssue none
5841N/A #@TestPurpose Test with the target set equal to a dn with userdn not equal all
5841N/A #@TestPreamble Admin adds an aci with the target equal to the dn of one existing branch.
5841N/A #@TestStep Client searches entry with the targeted branch dn with authenticated user.
5841N/A #@TestStep Client searches entry with the targeted branch dn with anonymous user.
5841N/A #@TestStep Remove aci.
5841N/A #@TestStep Client searches entry with the previously targeted branch dn.
5841N/A #@TestPostamble none
5841N/A #@TestResult Success if OpenDS returns 0
5841N/A for all ldap operations, and
5841N/A and entry is returned only for step 2.
5841N/A -->
5841N/A <function name="aci_target_020" scope="local">
5841N/A <testcase name="getTestCaseName('Target Equals DN with userdn not equals all')">
5841N/A <sequence>
5841N/A <try>
5841N/A <sequence>
5841N/A
5841N/A <call function="'testCase_Preamble'"/>
5841N/A
5841N/A <message>
5841N/A 'Test Name = %s' % STAXCurrentTestcase
5841N/A </message>
5841N/A
5841N/A <script>
5841N/A curr_aci_ldif_file = 'add_aci23.ldif'
5841N/A curr_aci=retrieve_aci('%s/aci/aci_target/%s' % (local.data,curr_aci_ldif_file));
5841N/A </script>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with userdn not equals all, preamble adding aci,\n %s' % curr_aci
5841N/A </message>
5841N/A
5841N/A <call function="'modifyEntry'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'entryToBeModified' : '%s/aci/aci_target/%s' % (remote.data,curr_aci_ldif_file) }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with userdn not equals all, user searching targeted entry as authenticated user'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'attributes' : 'cn sn uid'}
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' ,
5841N/A 'expectedResult' : '0' }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with userdn not equals all, user searching targeted entry as anonymous user'
5841N/A </message>
5841N/A
5841N/A <call function="'AnonSearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'extraParams' : '-T' }
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' ,
5841N/A 'expectedResult' : '1' }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with userdn not equals all, admin deleting aci'
5841N/A </message>
5841N/A
5841N/A <call function="'modifyEntry'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'entryToBeModified' : '%s/aci/aci_target/del_aci.ldif' % remote.data }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with userdn not equals all, user searching previously targeted entry'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'attributes' : 'cn sn uid'}
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'checktestStringNotPresent'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' }
5841N/A </call>
5841N/A
5841N/A </sequence>
5841N/A
5841N/A <catch exception="'STAXException'" typevar="eType" var="eInfo">
5841N/A <message log="1" level="'fatal'">
5841N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
5841N/A </message>
5841N/A </catch>
5841N/A <finally>
5841N/A <sequence>
5841N/A <call function="'testCase_Postamble'"/>
5841N/A </sequence>
5841N/A </finally>
5841N/A </try>
5841N/A </sequence>
5841N/A </testcase>
5841N/A </function>
5841N/A
5841N/A <!---
5841N/A Place test-specific test information here.
5841N/A The tag, TestMarker, must be the same as the tag, TestSuiteName.
5841N/A #@TestMarker ACI Target Tests
5841N/A #@TestName Target equals dn with userdn equal self
6211N/A #@TestIssue none
5841N/A #@TestPurpose Test with the target set equal to a dn with userdn equal self
5841N/A #@TestPreamble Admin adds an aci with the target equal to the dn of one existing branch.
5841N/A #@TestStep Client searches entry with the targeted branch dn with authenticated user.
5841N/A #@TestStep Client searches entry with the targeted branch dn with self user.
5841N/A #@TestStep Remove aci.
5841N/A #@TestStep Client searches entry with the previously targeted branch dn.
5841N/A #@TestPostamble none
5841N/A #@TestResult Success if OpenDS returns 0
5841N/A for all ldap operations, and
5841N/A and entry is returned only for step 2.
5841N/A -->
5841N/A <function name="aci_target_021" scope="local">
5841N/A <testcase name="getTestCaseName('Target Equals DN with userdn equal self')">
5841N/A <sequence>
5841N/A <try>
5841N/A <sequence>
5841N/A
5841N/A <call function="'testCase_Preamble'"/>
5841N/A
5841N/A <message>
5841N/A 'Test Name = %s' % STAXCurrentTestcase
5841N/A </message>
5841N/A
5841N/A <script>
5841N/A curr_aci_ldif_file = 'add_aci24.ldif'
5841N/A curr_aci=retrieve_aci('%s/aci/aci_target/%s' % (local.data,curr_aci_ldif_file));
5841N/A </script>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with userdn equal self, preamble adding aci,\n %s' % curr_aci
5841N/A </message>
5841N/A
5841N/A <call function="'modifyEntry'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'entryToBeModified' : '%s/aci/aci_target/%s' % (remote.data,curr_aci_ldif_file) }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with userdn equal self, user searching targeted entry as authenticated user'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'attributes' : 'cn sn uid'}
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' ,
5841N/A 'expectedResult' : '0' }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with userdn equal self, user searching targeted entry as self'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'sprain' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'attributes' : 'cn sn uid'}
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' ,
5841N/A 'expectedResult' : '1' }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with userdn equal self, admin deleting aci'
5841N/A </message>
5841N/A
5841N/A <call function="'modifyEntry'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'entryToBeModified' : '%s/aci/aci_target/del_aci.ldif' % remote.data }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with userdn equal self, user searching previously targeted entry'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'attributes' : 'cn sn uid'}
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'checktestStringNotPresent'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' }
5841N/A </call>
5841N/A
5841N/A </sequence>
5841N/A
5841N/A <catch exception="'STAXException'" typevar="eType" var="eInfo">
5841N/A <message log="1" level="'fatal'">
5841N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
5841N/A </message>
5841N/A </catch>
5841N/A <finally>
5841N/A <sequence>
5841N/A <call function="'testCase_Postamble'"/>
5841N/A </sequence>
5841N/A </finally>
5841N/A </try>
5841N/A </sequence>
5841N/A </testcase>
5841N/A </function>
5841N/A
5841N/A <!---
5841N/A Place test-specific test information here.
5841N/A The tag, TestMarker, must be the same as the tag, TestSuiteName.
5841N/A #@TestMarker ACI Target Tests
5841N/A #@TestName Target equals dn with userdn equal self with wildcard
6211N/A #@TestIssue none
5841N/A #@TestPurpose Test with the target set equal to a dn with userdn equal self with wildcard
5841N/A #@TestPreamble Admin adds an aci with the target equal to the dn of one existing branch.
5841N/A #@TestStep Client searches entry with the targeted branch dn with authenticated user.
5841N/A #@TestStep Client searches entry with the targeted branch dn with self user.
5841N/A #@TestStep Remove aci.
5841N/A #@TestStep Client searches entry with the previously targeted branch dn.
5841N/A #@TestPostamble none
5841N/A #@TestResult Success if OpenDS returns 0
5841N/A for all ldap operations, and
5841N/A and entry is returned only for step 2.
5841N/A -->
5841N/A <function name="aci_target_022" scope="local">
5841N/A <testcase name="getTestCaseName('Target Equals DN with userdn equal self with wildcard')">
5841N/A <sequence>
5841N/A <try>
5841N/A <sequence>
5841N/A
5841N/A <call function="'testCase_Preamble'"/>
5841N/A
5841N/A <message>
5841N/A 'Test Name = %s' % STAXCurrentTestcase
5841N/A </message>
5841N/A
5841N/A <script>
5841N/A curr_aci_ldif_file = 'add_aci25.ldif'
5841N/A curr_aci=retrieve_aci('%s/aci/aci_target/%s' % (local.data,curr_aci_ldif_file));
5841N/A </script>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with userdn equal self with wildcard, preamble adding aci,\n %s' % curr_aci
5841N/A </message>
5841N/A
5841N/A <call function="'modifyEntry'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'entryToBeModified' : '%s/aci/aci_target/%s' % (remote.data,curr_aci_ldif_file) }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with userdn equal self with wildcard, user searching targeted entry as authenticated user'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'attributes' : 'cn sn uid'}
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' ,
5841N/A 'expectedResult' : '0' }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with userdn equal self with wildcard, user searching targeted entry as self'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'sprain' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'attributes' : 'cn sn uid'}
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' ,
5841N/A 'expectedResult' : '1' }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with userdn equal self with wildcard, admin deleting aci'
5841N/A </message>
5841N/A
5841N/A <call function="'modifyEntry'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'entryToBeModified' : '%s/aci/aci_target/del_aci.ldif' % remote.data }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with userdn equal self with wildcard, user searching previously targeted entry'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'attributes' : 'cn sn uid'}
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'checktestStringNotPresent'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' }
5841N/A </call>
5841N/A
5841N/A </sequence>
5841N/A
5841N/A <catch exception="'STAXException'" typevar="eType" var="eInfo">
5841N/A <message log="1" level="'fatal'">
5841N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
5841N/A </message>
5841N/A </catch>
5841N/A <finally>
5841N/A <sequence>
5841N/A <call function="'testCase_Postamble'"/>
5841N/A </sequence>
5841N/A </finally>
5841N/A </try>
5841N/A </sequence>
5841N/A </testcase>
5841N/A </function>
5841N/A
5841N/A <!---
5841N/A Place test-specific test information here.
5841N/A The tag, TestMarker, must be the same as the tag, TestSuiteName.
5841N/A #@TestMarker ACI Target Tests
5841N/A #@TestName Target equals dn with userdn equal self with wildcard and filter
6211N/A #@TestIssue none
5841N/A #@TestPurpose Test with the target set equal to a dn with userdn equal self with wildcard and filter
5841N/A #@TestPreamble Admin adds an aci with the target equal to the dn of one existing branch.
5841N/A #@TestStep Client searches entry with the targeted branch dn with authenticated user.
5841N/A #@TestStep Client searches entry with the targeted branch dn with another authenticated user.
5841N/A #@TestStep Remove aci.
5841N/A #@TestStep Client searches entry with the previously targeted branch dn.
5841N/A #@TestPostamble none
5841N/A #@TestResult Success if OpenDS returns 0
5841N/A for all ldap operations, and
5841N/A and entry is returned only for steps 1 and 2.
5841N/A -->
5841N/A <function name="aci_target_023" scope="local">
5841N/A <testcase name="getTestCaseName('Target Equals DN with userdn equal self with wildcard and filter')">
5841N/A <sequence>
5841N/A <try>
5841N/A <sequence>
5841N/A
5841N/A <call function="'testCase_Preamble'"/>
5841N/A
5841N/A <message>
5841N/A 'Test Name = %s' % STAXCurrentTestcase
5841N/A </message>
5841N/A
5841N/A <script>
5841N/A curr_aci_ldif_file = 'add_aci26.ldif'
5841N/A curr_aci=retrieve_aci('%s/aci/aci_target/%s' % (local.data,curr_aci_ldif_file));
5841N/A </script>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with userdn equal self with wildcard and filter, preamble adding aci,\n %s' % curr_aci
5841N/A </message>
5841N/A
5841N/A <call function="'modifyEntry'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'entryToBeModified' : '%s/aci/aci_target/%s' % (remote.data,curr_aci_ldif_file) }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with userdn equal self with wildcard and filter, user searching targeted entry as authenticated user'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'attributes' : 'cn sn uid'}
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' ,
5841N/A 'expectedResult' : '1' }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with userdn equal self with wildcard and filter, user searching targeted entry as self'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=buser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'attributes' : 'cn sn uid'}
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' ,
5841N/A 'expectedResult' : '1' }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with userdn equal self with wildcard and filter, admin deleting aci'
5841N/A </message>
5841N/A
5841N/A <call function="'modifyEntry'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'entryToBeModified' : '%s/aci/aci_target/del_aci.ldif' % remote.data }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with userdn equal self with wildcard and filter, user searching previously targeted entry'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'attributes' : 'cn sn uid'}
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'checktestStringNotPresent'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' }
5841N/A </call>
5841N/A
5841N/A </sequence>
5841N/A
5841N/A <catch exception="'STAXException'" typevar="eType" var="eInfo">
5841N/A <message log="1" level="'fatal'">
5841N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
5841N/A </message>
5841N/A </catch>
5841N/A <finally>
5841N/A <sequence>
5841N/A <call function="'testCase_Postamble'"/>
5841N/A </sequence>
5841N/A </finally>
5841N/A </try>
5841N/A </sequence>
5841N/A </testcase>
5841N/A </function>
5841N/A
5841N/A <!---
5841N/A Place test-specific test information here.
5841N/A The tag, TestMarker, must be the same as the tag, TestSuiteName.
5841N/A #@TestMarker ACI Target Tests
5841N/A #@TestName Target equals dn with userdn equal self with wildcard and filter, deny
6211N/A #@TestIssue none
5841N/A #@TestPurpose Test with the target set equal to a dn with userdn equal self with wildcard and filter, deny
5841N/A #@TestPreamble Admin adds an aci with the target equal to the dn of one existing branch.
5841N/A #@TestStep Client searches entry with the targeted branch dn with authenticated user.
5841N/A #@TestStep Client searches entry with the targeted branch dn with another authenticated user.
5841N/A #@TestStep Remove aci.
5841N/A #@TestStep Client searches entry with the previously targeted branch dn.
5841N/A #@TestPostamble none
5841N/A #@TestResult Success if OpenDS returns 0
5841N/A for all ldap operations, and
5841N/A and no entries are returned for any step.
5841N/A -->
5841N/A <function name="aci_target_024" scope="local">
5841N/A <testcase name="getTestCaseName('Target Equals DN with userdn equal self with wildcard and filter, deny')">
5841N/A <sequence>
5841N/A <try>
5841N/A <sequence>
5841N/A
5841N/A <call function="'testCase_Preamble'"/>
5841N/A
5841N/A <message>
5841N/A 'Test Name = %s' % STAXCurrentTestcase
5841N/A </message>
5841N/A
5841N/A <script>
5841N/A curr_aci_ldif_file = 'add_aci27.ldif'
5841N/A curr_aci=retrieve_aci('%s/aci/aci_target/%s' % (local.data,curr_aci_ldif_file));
5841N/A </script>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with userdn equal self with wildcard and filter, deny, preamble adding aci,\n %s' % curr_aci
5841N/A </message>
5841N/A
5841N/A <call function="'modifyEntry'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'entryToBeModified' : '%s/aci/aci_target/%s' % (remote.data,curr_aci_ldif_file) }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with userdn equal self with wildcard and filter, deny, user searching targeted entry as authenticated user'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'attributes' : 'cn sn uid'}
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' ,
5841N/A 'expectedResult' : '0' }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with userdn equal self with wildcard and filter, deny, user searching targeted entry as self'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=buser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'attributes' : 'cn sn uid'}
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' ,
5841N/A 'expectedResult' : '0' }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with userdn equal self with wildcard and filter, deny, admin deleting aci'
5841N/A </message>
5841N/A
5841N/A <call function="'modifyEntry'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'entryToBeModified' : '%s/aci/aci_target/del_aci.ldif' % remote.data }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with userdn equal self with wildcard and filter, deny, user searching previously targeted entry'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'attributes' : 'cn sn uid'}
5841N/A </call>
5841N/A
5841N/A </sequence>
5841N/A
5841N/A <catch exception="'STAXException'" typevar="eType" var="eInfo">
5841N/A <message log="1" level="'fatal'">
5841N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
5841N/A </message>
5841N/A </catch>
5841N/A <finally>
5841N/A <sequence>
5841N/A <call function="'testCase_Postamble'"/>
5841N/A </sequence>
5841N/A </finally>
5841N/A </try>
5841N/A </sequence>
5841N/A </testcase>
5841N/A </function>
5841N/A
5841N/A <!---
5841N/A Place test-specific test information here.
5841N/A The tag, TestMarker, must be the same as the tag, TestSuiteName.
5841N/A #@TestMarker ACI Target Tests
5841N/A #@TestName Target equals dn with userdn equal self with wildcard and filter, allow and deny
6211N/A #@TestIssue none
5841N/A #@TestPurpose Test with the target set equal to a dn with userdn equal self with wildcard and filter, allow and deny
5841N/A #@TestPreamble Admin adds an aci with the target equal to the dn of one existing branch.
5841N/A #@TestStep Client searches entry with the targeted branch dn with authenticated user.
5841N/A #@TestStep Client searches entry with the targeted branch dn with another authenticated user.
5841N/A #@TestStep Remove aci.
5841N/A #@TestStep Client searches entry with the previously targeted branch dn.
5841N/A #@TestPostamble none
5841N/A #@TestResult Success if OpenDS returns 0
5841N/A for all ldap operations, and
5841N/A and entry is returned only for step 1.
5841N/A -->
5841N/A <function name="aci_target_025" scope="local">
5841N/A <testcase name="getTestCaseName('Target Equals DN with userdn equal self with wildcard and filter, allow and deny')">
5841N/A <sequence>
5841N/A <try>
5841N/A <sequence>
5841N/A
5841N/A <call function="'testCase_Preamble'"/>
5841N/A
5841N/A <message>
5841N/A 'Test Name = %s' % STAXCurrentTestcase
5841N/A </message>
5841N/A
5841N/A <script>
5841N/A curr_aci_ldif_file = 'add_aci28.ldif'
5841N/A curr_aci=retrieve_aci('%s/aci/aci_target/%s' % (local.data,curr_aci_ldif_file));
5841N/A </script>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with userdn equal self with wildcard and filter, allow and deny, preamble adding aci,\n %s' % curr_aci
5841N/A </message>
5841N/A
5841N/A <call function="'modifyEntry'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'entryToBeModified' : '%s/aci/aci_target/%s' % (remote.data,curr_aci_ldif_file) }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with userdn equal self with wildcard and filter, allow and deny, user searching targeted entry as authenticated user'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'attributes' : 'cn sn uid'}
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' ,
5841N/A 'expectedResult' : '1' }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with userdn equal self with wildcard and filter, allow and deny, user searching targeted entry as self'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=buser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'attributes' : 'cn sn uid'}
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' ,
5841N/A 'expectedResult' : '0' }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with userdn equal self with wildcard and filter, allow and deny, admin deleting aci'
5841N/A </message>
5841N/A
5841N/A <call function="'modifyEntry'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'entryToBeModified' : '%s/aci/aci_target/del_aci.ldif' % remote.data }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with userdn equal self with wildcard and filter, allow and deny, user searching previously targeted entry'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'attributes' : 'cn sn uid'}
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'checktestStringNotPresent'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' }
5841N/A </call>
5841N/A
5841N/A </sequence>
5841N/A
5841N/A <catch exception="'STAXException'" typevar="eType" var="eInfo">
5841N/A <message log="1" level="'fatal'">
5841N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
5841N/A </message>
5841N/A </catch>
5841N/A <finally>
5841N/A <sequence>
5841N/A <call function="'testCase_Postamble'"/>
5841N/A </sequence>
5841N/A </finally>
5841N/A </try>
5841N/A </sequence>
5841N/A </testcase>
5841N/A </function>
5841N/A
5841N/A <!---
5841N/A Place test-specific test information here.
5841N/A The tag, TestMarker, must be the same as the tag, TestSuiteName.
5841N/A #@TestMarker ACI Target Tests
5841N/A #@TestName userdn equals self - modify operational attributes
6211N/A #@TestIssue none
5841N/A #@TestPurpose Test userdn equals self - modify operational attributes
5841N/A #@TestPreamble Admin adds an aci.
5841N/A #@TestStep Client modifies attribute in an entry.
5841N/A #@TestStep Client modifies one operational attribute in an entry.
5841N/A #@TestStep Client modifies another operational attribute in an entry.
5841N/A #@TestStep Client modifies entry to reset the original attrobute value.
5841N/A #@TestStep Remove aci.
5841N/A #@TestPostamble none
5841N/A #@TestResult Success if OpenDS returns 0
5841N/A for steps 1 and 4, and 53 for steps 2 and 3.
5841N/A -->
5841N/A <function name="aci_target_026" scope="local">
5841N/A <testcase name="getTestCaseName('userdn equals self - modify operational attributes')">
5841N/A <sequence>
5841N/A <try>
5841N/A <sequence>
5841N/A
5841N/A <call function="'testCase_Preamble'"/>
5841N/A
5841N/A <message>
5841N/A 'Test Name = %s' % STAXCurrentTestcase
5841N/A </message>
5841N/A
5841N/A <script>
5841N/A curr_aci_ldif_file = 'add_aci31.ldif'
5841N/A curr_aci=retrieve_aci('%s/aci/aci_target/%s' % (local.data,curr_aci_ldif_file));
5841N/A </script>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: userdn equals self - modify operational attributes, preamble adding aci,\n %s' % curr_aci
5841N/A </message>
5841N/A
5841N/A <call function="'modifyEntry'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'entryToBeModified' : '%s/aci/aci_target/%s' % (remote.data,curr_aci_ldif_file) }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: userdn equals self - modify operational attributes, modify 1 '
5841N/A </message>
5841N/A
5841N/A <call function="'modifyEntry'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'sprain' ,
5841N/A 'entryToBeModified' : '%s/aci/aci_target/mod_entry31.ldif' % (remote.data) }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: userdn equals self - modify operational attributes, modify 2'
5841N/A </message>
5841N/A
5841N/A <call function="'modifyEntry'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'sprain' ,
5841N/A 'entryToBeModified' : '%s/aci/aci_target/mod_entry31a.ldif' % (remote.data) ,
5841N/A 'expectedRC' : 19
5841N/A }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: userdn equals self - modify operational attributes, modify 3'
5841N/A </message>
5841N/A
5841N/A <call function="'modifyEntry'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'sprain' ,
5841N/A 'entryToBeModified' : '%s/aci/aci_target/mod_entry31b.ldif' % (remote.data) ,
5841N/A 'expectedRC' : 19
5841N/A }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: userdn equals self - modify operational attributes, modify 4'
5841N/A </message>
5841N/A
5841N/A <call function="'modifyEntry'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'sprain' ,
5841N/A 'entryToBeModified' : '%s/aci/aci_target/mod_entry31c.ldif' % (remote.data) }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: userdn equals self - modify operational attributes, admin deleting aci'
5841N/A </message>
5841N/A
5841N/A <call function="'modifyEntry'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'entryToBeModified' : '%s/aci/aci_target/del_aci.ldif' % remote.data }
5841N/A </call>
5841N/A
5841N/A </sequence>
5841N/A
5841N/A <catch exception="'STAXException'" typevar="eType" var="eInfo">
5841N/A <message log="1" level="'fatal'">
5841N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
5841N/A </message>
5841N/A </catch>
5841N/A <finally>
5841N/A <sequence>
5841N/A <call function="'testCase_Postamble'"/>
5841N/A </sequence>
5841N/A </finally>
5841N/A </try>
5841N/A </sequence>
5841N/A </testcase>
5841N/A </function>
5841N/A
5841N/A <!---
5841N/A Place test-specific test information here.
5841N/A The tag, TestMarker, must be the same as the tag, TestSuiteName.
5841N/A #@TestMarker ACI Target Tests
5841N/A #@TestName Search for operational attributes
6211N/A #@TestIssue none
5841N/A #@TestPurpose Test search for operational attributes
5841N/A #@TestPreamble Admin adds an aci.
5841N/A #@TestStep Admin modifies entry to generate a modifiersName and modifyTimestamp
5841N/A #@TestStep Client searches entry with no attributes stated.
5841N/A #@TestStep Client searches entry with two operational attributes stated.
5841N/A #@TestStep Client searches entry for all operational attributes.
5841N/A #@TestStep Admin modifies entry to reset the original attrobute value.
5841N/A #@TestStep Remove aci.
5841N/A #@TestPostamble none
5841N/A #@TestResult Success if OpenDS returns 0
5841N/A for all ldap operations,
5841N/A and entries are returned for steps 2, 3, and 4.
5841N/A No operational attributes are returned in step 2 and
5841N/A only the appropriate operational attributes for steps 3 and 4.
5841N/A -->
5841N/A <function name="aci_target_027" scope="local">
5841N/A <testcase name="getTestCaseName('search for operational attributes')">
5841N/A <sequence>
5841N/A <try>
5841N/A <sequence>
5841N/A
5841N/A <call function="'testCase_Preamble'"/>
5841N/A
5841N/A <message>
5841N/A 'Test Name = %s' % STAXCurrentTestcase
5841N/A </message>
5841N/A
5841N/A <script>
5841N/A curr_aci_ldif_file = 'add_aci32.ldif'
5841N/A curr_aci=retrieve_aci('%s/aci/aci_target/%s' % (local.data,curr_aci_ldif_file));
5841N/A </script>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: search for operational attributes, preamble adding aci,\n %s' % curr_aci
5841N/A </message>
5841N/A
5841N/A <call function="'modifyEntry'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'entryToBeModified' : '%s/aci/aci_target/%s' % (remote.data,curr_aci_ldif_file) }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: search for operational attributes, admin modifying entry'
5841N/A </message>
5841N/A
5841N/A <call function="'modifyEntry'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'entryToBeModified' : '%s/aci/aci_target/mod_entry32.ldif' % (remote.data) }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: search for operational attributes, user searching targeted entry'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' }
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'creatorsName:' ,
5841N/A 'expectedResult' : '0' }
5841N/A </call>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'createTimestamp:' ,
5841N/A 'expectedResult' : '0' }
5841N/A </call>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'entryDN:' ,
5841N/A 'expectedResult' : '0' }
5841N/A </call>
5841N/A
5841N/A <if expr="returnCode != '0'">
5841N/A <tcstatus result="'fail'"/>
5841N/A </if>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'modifiersName:' ,
5841N/A 'expectedResult' : '0' }
5841N/A </call>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'modifyTimestamp' ,
5841N/A 'expectedResult' : '0' }
5841N/A </call>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'subschemaSubentry:' ,
5841N/A 'expectedResult' : '0' }
5841N/A </call>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' ,
5841N/A 'expectedResult' : '1' }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: search for operational attributes, user searching targeted entry'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'attributes' : 'creatorsName modifiersName' }
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'creatorsName:' ,
5841N/A 'expectedResult' : '1' }
5841N/A </call>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'modifiersName:' ,
5841N/A 'expectedResult' : '1' }
5841N/A </call>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' ,
5841N/A 'expectedResult' : '1' }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: search for operational attributes, user searching targeted entry'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'attributes' : '+' }
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'creatorsName:' ,
5841N/A 'expectedResult' : '1' }
5841N/A </call>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'createTimestamp:' ,
5841N/A 'expectedResult' : '1' }
5841N/A </call>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'entryDN:' ,
5841N/A 'expectedResult' : '1' }
5841N/A </call>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'modifiersName:' ,
5841N/A 'expectedResult' : '1' }
5841N/A </call>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'modifyTimestamp' ,
5841N/A 'expectedResult' : '1' }
5841N/A </call>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'subschemaSubentry:' ,
5841N/A 'expectedResult' : '1' }
5841N/A </call>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' ,
5841N/A 'expectedResult' : '1' }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: search for operational attributes, admin modifying entry'
5841N/A </message>
5841N/A
5841N/A <call function="'modifyEntry'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'entryToBeModified' : '%s/aci/aci_target/mod_entry32c.ldif' % (remote.data) }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: search for operational attributes, admin deleting aci'
5841N/A </message>
5841N/A
5841N/A <call function="'modifyEntry'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'entryToBeModified' : '%s/aci/aci_target/del_aci.ldif' % remote.data }
5841N/A </call>
5841N/A
5841N/A </sequence>
5841N/A
5841N/A <catch exception="'STAXException'" typevar="eType" var="eInfo">
5841N/A <message log="1" level="'fatal'">
5841N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
5841N/A </message>
5841N/A </catch>
5841N/A <finally>
5841N/A <sequence>
5841N/A <call function="'testCase_Postamble'"/>
5841N/A </sequence>
5841N/A </finally>
5841N/A </try>
5841N/A </sequence>
5841N/A </testcase>
5841N/A </function>
5841N/A
5841N/A <!---
5841N/A Place test-specific test information here.
5841N/A The tag, TestMarker, must be the same as the tag, TestSuiteName.
5841N/A #@TestMarker ACI Target Tests
5841N/A #@TestName Target equals dn with comma
6211N/A #@TestIssue none
5841N/A #@TestPurpose Test with the target set equal to a dn with comma
5841N/A #@TestPreamble Admin adds an aci with the target equal to the dn of one existing branch.
5841N/A #@TestStep Client searches entry with the targeted branch dn.
5841N/A #@TestStep Client searches entry that is not with the targeted branch dn.
5841N/A #@TestStep Remove aci.
5841N/A #@TestStep Client searches entry with the previously targeted branch dn.
5841N/A #@TestPostamble none
5841N/A #@TestResult Success if OpenDS returns 0
5841N/A for all ldap operations, and
5841N/A and entry is returned only for step 1.
5841N/A -->
5841N/A <function name="aci_target_028" scope="local">
5841N/A <testcase name="getTestCaseName('Target Equals DN with comma')">
5841N/A <sequence>
5841N/A <try>
5841N/A <sequence>
5841N/A
5841N/A <call function="'testCase_Preamble'"/>
5841N/A
5841N/A <message>
5841N/A 'Test Name = %s' % STAXCurrentTestcase
5841N/A </message>
5841N/A
5841N/A <script>
5841N/A curr_aci_ldif_file = 'add_aci33.ldif'
5841N/A curr_aci=retrieve_aci('%s/aci/aci_target/%s' % (local.data,curr_aci_ldif_file));
5841N/A </script>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with comma, preamble adding aci,\n %s' % curr_aci
5841N/A </message>
5841N/A
5841N/A <call function="'modifyEntry'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'entryToBeModified' : '%s/aci/aci_target/%s' % (remote.data,curr_aci_ldif_file) }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with comma, user searching targeted entry'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'uid=*carter*' ,
5841N/A 'attributes' : 'cn sn uid'}
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' ,
5841N/A 'expectedResult' : '1' }
5841N/A </call>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=acarter' ,
5841N/A 'expectedResult' : '1' }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with comma, user searching non-targeted entry'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'ou=People,ou=non-aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'uid=*carter*' ,
5841N/A 'attributes' : 'cn sn uid'}
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' ,
5841N/A 'expectedResult' : '0' }
5841N/A </call>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=acarter' ,
5841N/A 'expectedResult' : '0' }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with comma, admin deleting aci'
5841N/A </message>
5841N/A
5841N/A <call function="'modifyEntry'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'entryToBeModified' : '%s/aci/aci_target/del_aci.ldif' % remote.data }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN with comma, user searching previously targeted entry'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'attributes' : 'cn sn uid'}
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'checktestStringNotPresent'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' }
5841N/A </call>
5841N/A
5841N/A </sequence>
5841N/A
5841N/A <catch exception="'STAXException'" typevar="eType" var="eInfo">
5841N/A <message log="1" level="'fatal'">
5841N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
5841N/A </message>
5841N/A </catch>
5841N/A <finally>
5841N/A <sequence>
5841N/A <call function="'testCase_Postamble'"/>
5841N/A </sequence>
5841N/A </finally>
5841N/A </try>
5841N/A </sequence>
5841N/A </testcase>
5841N/A </function>
5841N/A
5841N/A <!---
5841N/A Place test-specific test information here.
5841N/A The tag, TestMarker, must be the same as the tag, TestSuiteName.
5841N/A #@TestMarker ACI Target Tests
5841N/A #@TestName Target equals dn, default targetattr
6211N/A #@TestIssue none
5841N/A #@TestPurpose Test with the target set equal to a dn, default targetattr
5841N/A #@TestPreamble Admin adds an aci with the target equal to the dn of one existing branch.
5841N/A #@TestStep Client searches entry with the targeted branch dn.
5841N/A #@TestStep Client searches entry that is not with the targeted branch dn.
5841N/A #@TestStep Remove aci.
5841N/A #@TestStep Client searches entry with the previously targeted branch dn.
5841N/A #@TestPostamble none
5841N/A #@TestResult Success if OpenDS returns 0
5841N/A for all ldap operations, and
5841N/A no entries returned for any search step.
5841N/A -->
5841N/A <function name="aci_target_029" scope="local">
5841N/A <testcase name="getTestCaseName('Target Equals DN, default targetattr')">
5841N/A <sequence>
5841N/A <try>
5841N/A <sequence>
5841N/A
5841N/A <call function="'testCase_Preamble'"/>
5841N/A
5841N/A <message>
5841N/A 'Test Name = %s' % STAXCurrentTestcase
5841N/A </message>
5841N/A
5841N/A <script>
5841N/A curr_aci_ldif_file = 'add_aci34.ldif'
5841N/A curr_aci=retrieve_aci('%s/aci/aci_target/%s' % (local.data,curr_aci_ldif_file));
5841N/A </script>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN, default targetattr, preamble adding aci,\n %s' % curr_aci
5841N/A </message>
5841N/A
5841N/A <call function="'modifyEntry'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'entryToBeModified' : '%s/aci/aci_target/%s' % (remote.data,curr_aci_ldif_file) }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN, default targetattr, user searching targeted entry'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'attributes' : 'cn sn uid'}
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' ,
5841N/A 'expectedResult' : '0' }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN, default targetattr, user searching non-targeted entry'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=non-aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'attributes' : 'cn sn uid'}
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' ,
5841N/A 'expectedResult' : '0' }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN, default targetattr, admin deleting aci'
5841N/A </message>
5841N/A
5841N/A <call function="'modifyEntry'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'entryToBeModified' : '%s/aci/aci_target/del_aci.ldif' % remote.data }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Target Equals DN, default targetattr, user searching previously targeted entry'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'attributes' : 'cn sn uid'}
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'checktestStringNotPresent'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' }
5841N/A </call>
5841N/A
5841N/A </sequence>
5841N/A
5841N/A <catch exception="'STAXException'" typevar="eType" var="eInfo">
5841N/A <message log="1" level="'fatal'">
5841N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
5841N/A </message>
5841N/A </catch>
5841N/A <finally>
5841N/A <sequence>
5841N/A <call function="'testCase_Postamble'"/>
5841N/A </sequence>
5841N/A </finally>
5841N/A </try>
5841N/A </sequence>
5841N/A </testcase>
5841N/A </function>
5841N/A
5841N/A
5841N/A <!---
5841N/A Place test-specific test information here.
5841N/A The tag, TestMarker, must be the same as the tag, TestSuiteName.
5841N/A #@TestMarker ACI Target Tests
5841N/A #@TestName Postamble
6211N/A #@TestIssue none
5841N/A #@TestPurpose Test default aci settings
5841N/A #@TestPreamble none
5841N/A #@TestStep Client searches entry with a branch dn.
5841N/A #@TestStep Client searches entry with another branch dn.
5841N/A #@TestPostamble none
5841N/A #@TestResult Success if OpenDS returns 0
5841N/A and no entries are returned
5841N/A for all operations.
5841N/A -->
5841N/A <function name="aci_target_030" scope="local">
5841N/A <testcase name="getTestCaseName('Target Postamble')">
5841N/A <sequence>
5841N/A <try>
5841N/A <sequence>
5841N/A
5841N/A <call function="'testCase_Preamble'"/>
5841N/A
5841N/A <message>
5841N/A 'Test Name = %s' % STAXCurrentTestcase
5841N/A </message>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Postamble - existing branch, user searching entry that was targeted in past tests'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'attributes' : 'cn sn uid'}
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' ,
5841N/A 'expectedResult' : '0' }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Postamble - existing branch, user searching entry that was non-targeted in past tests'
5841N/A </message>
5841N/A
5841N/A <call function="'SearchObject'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5841N/A 'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsInstancePswd' : 'ACIRules' ,
5841N/A 'dsBaseDN' : 'uid=scarter,ou=People,ou=non-aci branch,o=ACI Tests,dc=example,dc=com' ,
5841N/A 'dsFilter' : 'objectclass=*' ,
5841N/A 'attributes' : 'cn sn uid'}
5841N/A </call>
5841N/A
5841N/A <script>
5841N/A returnString = STAXResult[0][1]
5841N/A </script>
5841N/A
5841N/A <call function="'searchStringForSubstring'">
5841N/A { 'returnString' : returnString ,
5841N/A 'testString' : 'dn: uid=scarter,ou=People,ou=non-aci branch,o=ACI Tests' ,
5841N/A 'expectedResult' : '0' }
5841N/A </call>
5841N/A
5841N/A <message>
5841N/A 'ACI: Target: Resetting Search Global ACI'
5841N/A </message>
5841N/A
5841N/A <call function="'modifyGlobalAci'">
5841N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5841N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5841N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5841N/A 'aciValue' : GLOBAL_ACI_SEARCH ,
5841N/A 'opType' : 'add' }
5841N/A </call>
5841N/A
5841N/A </sequence>
5841N/A
5841N/A <catch exception="'STAXException'" typevar="eType" var="eInfo">
5841N/A <message log="1" level="'fatal'">
5841N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
5841N/A </message>
5841N/A </catch>
5841N/A <finally>
5841N/A <sequence>
5841N/A <call function="'testCase_Postamble'"/>
5841N/A </sequence>
5841N/A </finally>
5841N/A </try>
5841N/A </sequence>
5841N/A </testcase>
5841N/A </function>
5841N/A
5841N/A</stax>