2043N/A<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2887N/A<!DOCTYPE stax SYSTEM "/shared/stax.dtd">
2043N/A<!--
2043N/A ! CDDL HEADER START
2043N/A !
2043N/A ! The contents of this file are subject to the terms of the
2043N/A ! Common Development and Distribution License, Version 1.0 only
2043N/A ! (the "License"). You may not use this file except in compliance
2043N/A ! with the License.
2043N/A !
2043N/A ! You can obtain a copy of the license at
2043N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE
2043N/A ! or https://OpenDS.dev.java.net/OpenDS.LICENSE.
2043N/A ! See the License for the specific language governing permissions
2043N/A ! and limitations under the License.
2043N/A !
2043N/A ! When distributing Covered Code, include this CDDL HEADER in each
2043N/A ! file and include the License file at
2043N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
2043N/A ! add the following below this CDDL HEADER, with the fields enclosed
2043N/A ! by brackets "[]" replaced with your own identifying information:
2043N/A ! Portions Copyright [yyyy] [name of copyright owner]
2043N/A !
2043N/A ! CDDL HEADER END
2043N/A !
3232N/A ! Copyright 2007-2008 Sun Microsystems, Inc.
5772N/A ! Portions Copyright 2012 ForgeRock AS
2043N/A ! -->
2043N/A<stax>
2043N/A
2043N/A <defaultcall function="attribute_value"/>
2043N/A
2043N/A <function name="attribute_value">
2043N/A
2043N/A <sequence>
3705N/A
3705N/A <!--- Test Suite information
3705N/A #@TestSuiteName Attribute Value
3705N/A #@TestSuitePurpose Reject Passwords Matching Attribute Value
3705N/A #@TestSuiteGroup Attribute Value
3705N/A #@TestScript security_attribute_value.xml
3705N/A -->
3705N/A
3705N/A <!--- Define default value for basedn -->
3705N/A <script>
3705N/A basedn1 = 'ou=people,ou=password tests,'
3705N/A basedn = '%s o=Pwd Validator Tests,dc=example,dc=com' % basedn1
3705N/A val = 'cn=Attribute Value,cn=Password Validators,cn=config'
3705N/A msg = 'Security: Pwd Validator: Attribute Value:'
3705N/A </script>
3705N/A
3705N/A
3705N/A <!--- Test Case information
3705N/A #@TestMarker Attribute Value
3705N/A #@TestName Attribute Value Preamble
3705N/A #@TestIssue none
3705N/A #@TestPurpose Attribute Value Preamble
3705N/A #@TestPreamble none
3705N/A #@TestStep Check ds-cfg-enabled exists
3705N/A #@TestStep Admin Enabling Validator Attribute Value
3705N/A #@TestPostamble none
3705N/A #@TestResult Success if the 2 tests are PASS
3705N/A -->
3705N/A
2085N/A <testcase name="getTestCaseName('Attribute Value: Preamble')">
2043N/A <sequence>
2043N/A <call function="'testCase_Preamble'"/>
2043N/A
2043N/A <message>
3705N/A '%s Preamble Step 1. Check existence of ds-cfg-enabled' % msg
2043N/A </message>
2043N/A
2043N/A <call function="'compareEntry'">
2043N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
2043N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
2043N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
2043N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
2624N/A 'attrToBeCompared' : 'ds-cfg-enabled:true',
3705N/A 'entryToBeCompared' : val }
2043N/A </call>
2043N/A
2043N/A <message>
3705N/A '%s Preamble Step 2. Admin Enabling Validator' % msg
2043N/A </message>
2043N/A
2043N/A <call function="'modifyPwdPolicy'">
2043N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
2043N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
2043N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
2043N/A 'propertyName' : 'Default Password Policy' ,
2624N/A 'attributeName' : 'password-validator' ,
2624N/A 'attributeValue' : 'Attribute Value' }
2043N/A </call>
2043N/A
2043N/A <call function="'testCase_Postamble'"/>
2043N/A
2043N/A </sequence>
2043N/A </testcase>
2043N/A
3705N/A <!--- Test Case information
3705N/A #@TestMarker Attribute Value
3705N/A #@TestName Attribute Value: add attribute sn
3705N/A #@TestIssue none
3705N/A #@TestPurpose add attribute sn
3705N/A #@TestPreamble none
3705N/A #@TestStep add attribute sn with modifyPwdValidator
3705N/A #@TestPostamble none
3705N/A #@TestResult Success if the test is PASS
3705N/A -->
3705N/A
2085N/A <testcase name="getTestCaseName('Attribute Value: add attribute sn')">
2043N/A <sequence>
2043N/A <call function="'testCase_Preamble'"/>
2043N/A <message>
3705N/A '%s add attribute sn' % msg
2043N/A </message>
2043N/A
2043N/A <call function="'modifyPwdValidator'">
2043N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
2043N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
2043N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
2043N/A 'propertyName' : 'Attribute Value' ,
2043N/A 'attributeName' : 'match-attribute' ,
2043N/A 'attributeValue' : 'sn' ,
2043N/A 'modifyType' : 'add' }
2043N/A </call>
2043N/A
2043N/A <call function="'testCase_Postamble'"/>
2043N/A
2043N/A </sequence>
2043N/A </testcase>
3705N/A
3705N/A <!--- Test Case information
3705N/A #@TestMarker Attribute Value
3705N/A #@TestName Attribute Value: user modifying password to sn
3705N/A #@TestIssue none
3705N/A #@TestPurpose user modifying password to sn
3705N/A #@TestPreamble none
5772N/A #@TestStep user dmiller modifying password to sn Miller RC 19
3705N/A #@TestStep user dmiller binding with invalid password RC 49
3705N/A #@TestPostamble none
3705N/A #@TestResult Success if the 2 test are PASS
3705N/A -->
2043N/A
3705N/A <testcase name="getTestCaseName
3705N/A ('Attribute Value: user modifying password to sn')">
2043N/A <sequence>
2043N/A <call function="'testCase_Preamble'"/>
2043N/A
2043N/A <message>
3705N/A '%s user modifying password to sn' % msg
2043N/A </message>
2043N/A
3705N/A <call function="'ldapPasswordModifyWithScript'">
2043N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
2043N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
3705N/A 'dsInstanceDn' : 'uid=dmiller,%s' % basedn ,
2043N/A 'dsInstancePswd' : 'gosling' ,
3705N/A 'dsAuthzID' : 'dn:uid=dmiller, %s' % basedn ,
3705N/A 'dsNewPassword' : 'Miller' ,
5772N/A 'expectedRC' : 19 }
2043N/A </call>
2043N/A
2043N/A <message>
3705N/A '%s user binding with invalid password' % msg
2043N/A </message>
2043N/A
2043N/A <call function="'SearchObject'">
2043N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
2043N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
3705N/A 'dsInstanceDn' : 'uid=dmiller,%s' % basedn ,
2043N/A 'dsInstancePswd' : 'Miller' ,
2043N/A 'dsBaseDN' : 'dc=example,dc=com' ,
2043N/A 'dsFilter' : 'objectclass=*' ,
3705N/A 'extraParams' : '-s base',
2043N/A 'expectedRC' : 49 }
2043N/A </call>
2043N/A
2043N/A <call function="'testCase_Postamble'"/>
2043N/A
2043N/A </sequence>
2043N/A </testcase>
2043N/A
3705N/A <!--- Test Case information
3705N/A #@TestMarker Attribute Value
3705N/A #@TestName Attribute Value: user modifying password
3705N/A to lower case sn
3705N/A #@TestIssue none
3705N/A #@TestPurpose user modifying password to lower case sn
3705N/A #@TestPreamble none
3705N/A #@TestStep user dmiller modifying password to lower case sn
5772N/A miller RC 19
3705N/A #@TestStep user dmiller binding with invalid password RC 49
3705N/A #@TestPostamble none
3705N/A #@TestResult Success if the 2 test are PASS
3705N/A -->
3705N/A <testcase name="getTestCaseName
3705N/A ('Attribute Value: user modifying password to lower case sn')">
2043N/A <sequence>
2043N/A <call function="'testCase_Preamble'"/>
2043N/A
2043N/A <message>
3705N/A '%s user modifying password to lower case sn' % msg
2043N/A </message>
2043N/A
3705N/A <call function="'ldapPasswordModifyWithScript'">
2043N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
2043N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
3705N/A 'dsInstanceDn' : 'uid=dmiller,%s' % basedn ,
2043N/A 'dsInstancePswd' : 'gosling' ,
3705N/A 'dsAuthzID' : 'dn:uid=dmiller,%s' % basedn ,
3705N/A 'dsNewPassword' : 'miller' ,
5772N/A 'expectedRC' : 19 }
2043N/A </call>
2043N/A
2043N/A <message>
3705N/A '%s user binding with invalid password' % msg
2043N/A </message>
2043N/A
2043N/A <call function="'SearchObject'">
2043N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
2043N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
3705N/A 'dsInstanceDn' : 'uid=dmiller,%s' % basedn ,
3705N/A 'dsInstancePswd' : 'miller' ,
3705N/A 'dsBaseDN' : 'dc=example,dc=com' ,
3705N/A 'dsFilter' : 'objectclass=*' ,
3705N/A 'extraParams' : '-s base',
3705N/A 'expectedRC' : 49 }
3705N/A </call>
3705N/A
3705N/A <call function="'testCase_Postamble'"/>
3705N/A
3705N/A </sequence>
3705N/A </testcase>
3705N/A
3705N/A <!--- Test Case information
3705N/A #@TestMarker Attribute Value
3705N/A #@TestName Attribute Value: user modifying password
3705N/A to upper case sn
3705N/A #@TestIssue none
3705N/A #@TestPurpose user modifying password to upper case sn
3705N/A #@TestPreamble none
3705N/A #@TestStep user dmiller modifying password to upper case sn
5772N/A MILLER RC 19
3705N/A #@TestStep user dmiller binding with invalid password RC 49
3705N/A #@TestPostamble none
3705N/A #@TestResult Success if the 2 test are PASS
3705N/A -->
3705N/A
3705N/A <testcase name="getTestCaseName
3705N/A ('Attribute Value: user modifying password to upper case sn')">
3705N/A <sequence>
3705N/A <call function="'testCase_Preamble'"/>
3705N/A
3705N/A <message>
3705N/A '%s user modifying password to upper case sn' % msg
3705N/A </message>
3705N/A
3705N/A <call function="'ldapPasswordModifyWithScript'">
3705N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
3705N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
3705N/A 'dsInstanceDn' : 'uid=dmiller,%s' % basedn ,
3705N/A 'dsInstancePswd' : 'gosling' ,
3705N/A 'dsAuthzID' : 'dn:uid=dmiller, %s' % basedn ,
3705N/A 'dsNewPassword' : 'MILLER' ,
5772N/A 'expectedRC' : 19 }
3705N/A </call>
3705N/A
3705N/A <message>
3705N/A '%s user binding with invalid password' % msg
3705N/A </message>
3705N/A
3705N/A <call function="'SearchObject'">
3705N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
3705N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
3705N/A 'dsInstanceDn' : 'uid=dmiller,%s' % basedn ,
2043N/A 'dsInstancePswd' : 'MILLER' ,
2043N/A 'dsBaseDN' : 'dc=example,dc=com' ,
2043N/A 'dsFilter' : 'objectclass=*' ,
3705N/A 'extraParams' : '-s base',
3705N/A 'expectedRC' : 49 }
3705N/A </call>
3705N/A
3705N/A <call function="'testCase_Postamble'"/>
3705N/A
3705N/A </sequence>
3705N/A </testcase>
3705N/A
3705N/A <!--- Test Case information
3705N/A #@TestMarker Attribute Value
3705N/A #@TestName Attribute Value : user modifying password
3705N/A to mixed case sn
3705N/A #@TestIssue none
3705N/A #@TestPurpose user modifying password to mixed case sn
3705N/A #@TestPreamble none
3705N/A #@TestStep user dmiller modifying password to mixed case sn
5772N/A mIlLeR RC 19
3705N/A #@TestStep user dmiller binding with invalid password RC 49
3705N/A #@TestPostamble none
3705N/A #@TestResult Success if the 2 test are PASS
3705N/A -->
3705N/A
3705N/A <testcase name="getTestCaseName
3705N/A ('Attribute Value: user modifying password to mixed case sn')">
3705N/A <sequence>
3705N/A <call function="'testCase_Preamble'"/>
3705N/A
3705N/A <message>
3705N/A '%s user modifying password to mixed case sn' % msg
3705N/A </message>
3705N/A
3705N/A <call function="'ldapPasswordModifyWithScript'">
3705N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
3705N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
3705N/A 'dsInstanceDn' : 'uid=dmiller,%s' % basedn ,
3705N/A 'dsInstancePswd' : 'gosling' ,
3705N/A 'dsAuthzID' : 'dn:uid=dmiller, %s' % basedn ,
3705N/A 'dsNewPassword' : 'mIlLeR' ,
5772N/A 'expectedRC' : 19 }
3705N/A </call>
3705N/A
3705N/A <message>
3705N/A '%s user binding with invalid password' % msg
3705N/A </message>
3705N/A
3705N/A <call function="'SearchObject'">
3705N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
3705N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
3705N/A 'dsInstanceDn' : 'uid=dmiller,%s' % basedn ,
3705N/A 'dsInstancePswd' : 'mIlLeR' ,
3705N/A 'dsBaseDN' : 'dc=example,dc=com' ,
3705N/A 'dsFilter' : 'objectclass=*' ,
3705N/A 'extraParams' : '-s base',
2043N/A 'expectedRC' : 49 }
2043N/A </call>
2043N/A
2043N/A <call function="'testCase_Postamble'"/>
2043N/A
2043N/A </sequence>
2043N/A </testcase>
2043N/A
3705N/A <!--- Test Case information
3705N/A #@TestMarker Attribute Value
3705N/A #@TestName Attribute Value : user modifying password to
3705N/A reversed upper case sn
3705N/A #@TestIssue none
3705N/A #@TestPurpose user modifying password to reversed upper case sn
3705N/A #@TestPreamble none
3705N/A #@TestStep user dmiller modifying password to reversed upper
5772N/A case sn RELLIM RC 19
3705N/A #@TestStep user dmiller binding with invalid password RC 49
3705N/A #@TestPostamble none
3705N/A #@TestResult Success if the 2 test are PASS
3705N/A -->
3705N/A
3705N/A <testcase name="getTestCaseName
3705N/A ('Attribute Value: user modifying password to reversed upper case sn')">
2043N/A <sequence>
2043N/A <call function="'testCase_Preamble'"/>
2043N/A
2043N/A <message>
3705N/A '%s user modifying password to reversed upper case sn' % msg
2043N/A </message>
2043N/A
3705N/A <call function="'ldapPasswordModifyWithScript'">
2043N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
2043N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
3705N/A 'dsInstanceDn' : 'uid=dmiller,%s' % basedn ,
2043N/A 'dsInstancePswd' : 'gosling' ,
3705N/A 'dsAuthzID' : 'dn:uid=dmiller, %s' % basedn,
3705N/A 'dsNewPassword' : 'RELLIM' ,
5772N/A 'expectedRC' : 19 }
2043N/A </call>
2043N/A
2043N/A <message>
3705N/A '%s user binding with invalid password' % msg
2043N/A </message>
2043N/A
2043N/A <call function="'SearchObject'">
2043N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
2043N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
3705N/A 'dsInstanceDn' : 'uid=dmiller,%s' % basedn,
3705N/A 'dsInstancePswd' : 'RELLIM' ,
2043N/A 'dsBaseDN' : 'dc=example,dc=com' ,
2043N/A 'dsFilter' : 'objectclass=*' ,
3705N/A 'extraParams' : '-s base',
2043N/A 'expectedRC' : 49 }
2043N/A </call>
2043N/A
2043N/A <call function="'testCase_Postamble'"/>
2043N/A
2043N/A </sequence>
2043N/A </testcase>
2043N/A
3705N/A <!--- Test Case information
3705N/A #@TestMarker Attribute Value
3705N/A #@TestName Attribute Value: add attribute roomnumber
3705N/A #@TestIssue none
3705N/A #@TestPurpose add attribute roomnumber
3705N/A #@TestPreamble none
3705N/A #@TestStep add attribute roomnumber with modifyPwdValidator
3705N/A #@TestPostamble none
3705N/A #@TestResult Success if the test is PASS
3705N/A -->
3705N/A
3705N/A <testcase name="getTestCaseName('Attribute Value: add attribute roomnumber')">
2043N/A <sequence>
2043N/A <call function="'testCase_Preamble'"/>
2043N/A <message>
3705N/A '%s add attribute roomnumber' % msg
2043N/A </message>
2043N/A
2043N/A <call function="'modifyPwdValidator'">
2043N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
2043N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
2043N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
2043N/A 'propertyName' : 'Attribute Value' ,
2043N/A 'attributeName' : 'match-attribute' ,
2043N/A 'attributeValue' : 'roomnumber' ,
2043N/A 'modifyType' : 'add' }
2043N/A </call>
2043N/A
2043N/A <call function="'testCase_Postamble'"/>
2043N/A
2043N/A </sequence>
2043N/A </testcase>
2043N/A
3705N/A <!--- Test Case information
3705N/A #@TestMarker Attribute Value
3705N/A #@TestName Attribute Value: user modifying password to
3705N/A roomnumber
3705N/A #@TestIssue none
3705N/A #@TestPurpose user modifying password to roomnumber
3705N/A #@TestPreamble none
3705N/A #@TestStep user dmiller modifying password to roomnumber 4135
5772N/A RC 19
3705N/A #@TestStep user dmiller binding with invalid password RC 49
3705N/A #@TestPostamble none
3705N/A #@TestResult Success if the 2 test are PASS
3705N/A -->
3705N/A
3705N/A <testcase name="getTestCaseName
3705N/A ('Attribute Value: user modifying password to roomnumber')">
2043N/A <sequence>
2043N/A <call function="'testCase_Preamble'"/>
2043N/A
2043N/A <message>
3705N/A '%s user modifying password to roomnumber' % msg
2043N/A </message>
2043N/A
3705N/A <call function="'ldapPasswordModifyWithScript'">
2043N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
2043N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
3705N/A 'dsInstanceDn' : 'uid=dmiller,%s' % basedn ,
2043N/A 'dsInstancePswd' : 'gosling' ,
3705N/A 'dsAuthzID' : 'dn:uid=dmiller, %s' % basedn ,
3705N/A 'dsNewPassword' : '4135' ,
5772N/A 'expectedRC' : 19 }
2043N/A </call>
2043N/A
2043N/A <message>
3705N/A '%s user binding with invalid password' % msg
2043N/A </message>
2043N/A
2043N/A <call function="'SearchObject'">
2043N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
2043N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
3705N/A 'dsInstanceDn' : 'uid=dmiller,%s' % basedn ,
2043N/A 'dsInstancePswd' : 'Miller' ,
2043N/A 'dsBaseDN' : 'dc=example,dc=com' ,
2043N/A 'dsFilter' : 'objectclass=*' ,
3705N/A 'extraParams' : '-s base',
2043N/A 'expectedRC' : 49 }
2043N/A </call>
2043N/A
2043N/A <call function="'testCase_Postamble'"/>
2043N/A
2043N/A </sequence>
2043N/A </testcase>
2043N/A
3705N/A <!--- Test Case information
3705N/A #@TestMarker Attribute Value
3705N/A #@TestName Attribute Value: user modifying password to sn 2
3705N/A #@TestIssue none
3705N/A #@TestPurpose user modifying password to sn 2
3705N/A #@TestPreamble none
5772N/A #@TestStep user dmiller modifying password to sn Miller RC 19
3705N/A #@TestStep user dmiller binding with invalid password RC 49
3705N/A #@TestPostamble none
3705N/A #@TestResult Success if the 2 test are PASS
3705N/A -->
3705N/A
3705N/A <testcase name="getTestCaseName
3705N/A ('Attribute Value: user modifying password to sn 2')">
2043N/A <sequence>
2043N/A <call function="'testCase_Preamble'"/>
2043N/A
2043N/A <message>
3705N/A '%s user modifying password to sn 2' % msg
2043N/A </message>
2043N/A
3705N/A <call function="'ldapPasswordModifyWithScript'">
2043N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
2043N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
3705N/A 'dsInstanceDn' : 'uid=dmiller,%s' % basedn ,
2043N/A 'dsInstancePswd' : 'gosling' ,
3705N/A 'dsAuthzID' : 'dn:uid=dmiller, %s' % basedn ,
3705N/A 'dsNewPassword' : 'Miller' ,
5772N/A 'expectedRC' : 19 }
2043N/A </call>
2043N/A
2043N/A <message>
3705N/A '%s user binding with invalid password 2' % msg
2043N/A </message>
2043N/A
2043N/A <call function="'SearchObject'">
2043N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
2043N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
3705N/A 'dsInstanceDn' : 'uid=dmiller,%s' % basedn ,
2043N/A 'dsInstancePswd' : 'Miller' ,
2043N/A 'dsBaseDN' : 'dc=example,dc=com' ,
2043N/A 'dsFilter' : 'objectclass=*' ,
3705N/A 'extraParams' : '-s base',
2043N/A 'expectedRC' : 49 }
2043N/A </call>
2043N/A
2043N/A <call function="'testCase_Postamble'"/>
2043N/A
2043N/A </sequence>
2043N/A </testcase>
2043N/A
3705N/A <!--- Test Case information
3705N/A #@TestMarker Attribute Value
3705N/A #@TestName Attribute Value: disable reverse match-attribute
3705N/A #@TestIssue none
3705N/A #@TestPurpose disable reverse match-attribute
3705N/A #@TestPreamble none
3705N/A #@TestStep set test-reversed-password to false
3705N/A #@TestPostamble none
3705N/A #@TestResult Success if the 2 test are PASS
3705N/A -->
3705N/A
3705N/A <testcase name="getTestCaseName
3705N/A ('Attribute Value: disable reverse match-attribute')">
2043N/A <sequence>
2043N/A <call function="'testCase_Preamble'"/>
2043N/A <message>
2043N/A 'Security: Pwd Validator: Attribute Value: add attribute sn'
2043N/A </message>
2043N/A
2043N/A <call function="'modifyPwdValidator'">
2043N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
2043N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
2043N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
2043N/A 'propertyName' : 'Attribute Value' ,
2043N/A 'attributeName' : 'test-reversed-password' ,
2043N/A 'attributeValue' : 'false' ,
2043N/A 'modifyType' : 'set' }
2043N/A </call>
2043N/A
2043N/A <call function="'testCase_Postamble'"/>
2043N/A
2043N/A </sequence>
2043N/A </testcase>
2043N/A
3705N/A <!--- Test Case information
3705N/A #@TestMarker Attribute Value
3705N/A #@TestName Attribute Value: user modifying password to reverse
3705N/A sn
3705N/A #@TestIssue none
3705N/A #@TestPurpose user modifying password to sn
3705N/A #@TestPreamble none
3705N/A #@TestStep user dmiller modifying password to reverse sn
3705N/A rellim RC 0
3705N/A #@TestStep user dmiller binding with good password rellim RC 0
3705N/A #@TestPostamble none
3705N/A #@TestResult Success if the 2 test are PASS
3705N/A -->
3705N/A
3705N/A <testcase name="getTestCaseName
3705N/A ('Attribute Value: user modifying password to reverse sn')">
2043N/A <sequence>
2043N/A <call function="'testCase_Preamble'"/>
2043N/A
2043N/A <message>
3705N/A '%s user modifying password to reverse sn' % msg
2043N/A </message>
2043N/A
3705N/A <call function="'ldapPasswordModifyWithScript'">
2043N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
2043N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
3705N/A 'dsInstanceDn' : 'uid=dmiller,%s' % basedn ,
2043N/A 'dsInstancePswd' : 'gosling' ,
3705N/A 'dsAuthzID' : 'dn:uid=dmiller, %s' % basedn ,
3705N/A 'dsNewPassword' : 'rellim' , }
2043N/A </call>
2043N/A
2043N/A <message>
3705N/A '%s user binding with good password' % msg
2043N/A </message>
2043N/A
2043N/A <call function="'SearchObject'">
2043N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
2043N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
3705N/A 'dsInstanceDn' : 'uid=dmiller,%s' % basedn ,
2043N/A 'dsInstancePswd' : 'rellim' ,
2043N/A 'dsBaseDN' : 'dc=example,dc=com' ,
2043N/A 'dsFilter' : 'objectclass=*' ,
2043N/A 'extraParams' : '-s base' }
2043N/A </call>
2043N/A
2043N/A <call function="'testCase_Postamble'"/>
2043N/A
2043N/A </sequence>
2043N/A </testcase>
2043N/A
3705N/A <!--- Test Case information
3705N/A #@TestMarker Attribute Value
3705N/A #@TestName Attribute Value: user modifying password to sn 3
3705N/A #@TestIssue none
3705N/A #@TestPurpose user modifying password to sn 3
3705N/A #@TestPreamble none
5772N/A #@TestStep user dmiller modifying password to sn Miller RC 19
3705N/A #@TestStep user dmiller binding with invalid password RC 49
3705N/A #@TestPostamble none
3705N/A #@TestResult Success if the 2 test are PASS
3705N/A -->
3705N/A
3705N/A <testcase name="getTestCaseName
3705N/A ('Attribute Value: user modifying password to sn 3')">
2043N/A <sequence>
2043N/A <call function="'testCase_Preamble'"/>
2043N/A
2043N/A <message>
3705N/A '%s user modifying password to sn 3' % msg
2043N/A </message>
2043N/A
3705N/A <call function="'ldapPasswordModifyWithScript'">
2043N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
2043N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
3705N/A 'dsInstanceDn' : 'uid=dmiller,%s' % basedn ,
2043N/A 'dsInstancePswd' : 'rellim' ,
3705N/A 'dsAuthzID' : 'dn:uid=dmiller, %s' % basedn ,
3705N/A 'dsNewPassword' : 'Miller' ,
5772N/A 'expectedRC' : 19 }
2043N/A </call>
2043N/A
2043N/A <message>
3705N/A '%s user binding with invalid password 3' % msg
2043N/A </message>
2043N/A
2043N/A <call function="'SearchObject'">
2043N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
2043N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
3705N/A 'dsInstanceDn' : 'uid=dmiller,%s' % basedn ,
2043N/A 'dsInstancePswd' : 'Miller' ,
2043N/A 'dsBaseDN' : 'dc=example,dc=com' ,
2043N/A 'dsFilter' : 'objectclass=*' ,
3705N/A 'extraParams' : '-s base',
2043N/A 'expectedRC' : 49 }
2043N/A </call>
2043N/A
2043N/A <call function="'testCase_Postamble'"/>
2043N/A
2043N/A </sequence>
2043N/A </testcase>
2043N/A
2043N/A
3705N/A <!--- Test Case information
3705N/A #@TestMarker Attribute Value
3705N/A #@TestName Attribute Value: Postamble
3705N/A #@TestIssue none
3705N/A #@TestPurpose Postamble
3705N/A #@TestPreamble none
3705N/A #@TestStep Step 1. Admin Resetting password-validator
3705N/A #@TestStep Step 2. User Changing Password Miller RC 0
3705N/A #@TestStep Step 3. User Searching With Password Miller RC 0
3705N/A #@TestPostamble none
3705N/A #@TestResult Success if the 2 test are PASS
3705N/A -->
3705N/A
2085N/A <testcase name="getTestCaseName('Attribute Value: Postamble')">
2043N/A <sequence>
2043N/A <call function="'testCase_Preamble'"/>
2043N/A <message>
3705N/A '%s Postamble Step 1. Admin Resetting password-validator' % msg
2043N/A </message>
2043N/A
2043N/A <call function="'modifyPwdPolicy'">
2043N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
2043N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
2043N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
2043N/A 'propertyName' : 'Default Password Policy' ,
2624N/A 'attributeName' : 'password-validator' ,
2624N/A 'attributeValue' : 'Attribute Value' ,
2043N/A 'modifyType' : 'remove' }
2043N/A </call>
2043N/A
2043N/A <!--- User Change Password -->
2043N/A <message>
3705N/A '%s Postamble Step 2. User Changing Password' % msg
2043N/A </message>
2043N/A
3705N/A <call function="'ldapPasswordModifyWithScript'">
2043N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
2043N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
3705N/A 'dsInstanceDn' : 'uid=dmiller,%s' % basedn ,
2043N/A 'dsInstancePswd' : 'rellim' ,
3705N/A 'dsAuthzID' : 'dn:uid=dmiller, %s' % basedn ,
3705N/A 'dsNewPassword' : 'Miller' , }
2043N/A </call>
2043N/A
2043N/A <message>
3705N/A '%s Postamble Step 3. User Searching With Password' % msg
2043N/A </message>
2043N/A
2043N/A <call function="'SearchObject'">
2043N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
2043N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
3705N/A 'dsInstanceDn' : 'uid=dmiller,%s' % basedn ,
2043N/A 'dsInstancePswd' : 'Miller' ,
2043N/A 'dsBaseDN' : 'dc=example,dc=com' ,
2043N/A 'dsFilter' : 'objectclass=*' ,
2043N/A 'extraParams' : '-s base' }
2043N/A </call>
2043N/A
2043N/A <call function="'testCase_Postamble'"/>
2043N/A
2043N/A </sequence>
2043N/A </testcase>
2043N/A
2043N/A </sequence>
2043N/A
2043N/A </function>
2043N/A
2043N/A</stax>