5789N/A<?xml version="1.0" encoding="UTF-8" standalone="no"?>
5789N/A<!DOCTYPE stax SYSTEM "/shared/stax.dtd">
5789N/A<!--
5789N/A ! CDDL HEADER START
5789N/A !
5789N/A ! The contents of this file are subject to the terms of the
5789N/A ! Common Development and Distribution License, Version 1.0 only
5789N/A ! (the "License"). You may not use this file except in compliance
5789N/A ! with the License.
5789N/A !
5789N/A ! You can obtain a copy of the license at
5789N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE
5789N/A ! or https://OpenDS.dev.java.net/OpenDS.LICENSE.
5789N/A ! See the License for the specific language governing permissions
5789N/A ! and limitations under the License.
5789N/A !
5789N/A ! When distributing Covered Code, include this CDDL HEADER in each
5789N/A ! file and include the License file at
5789N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
5789N/A ! add the following below this CDDL HEADER, with the fields enclosed
5789N/A ! by brackets "[]" replaced with your own identifying information:
5789N/A ! Portions Copyright [yyyy] [name of copyright owner]
5789N/A !
5789N/A ! CDDL HEADER END
5789N/A !
5789N/A ! Copyright 2006-2008 Sun Microsystems, Inc.
5789N/A ! Portions copyright 2012 ForgeRock AS.
5789N/A ! -->
5789N/A<stax>
5789N/A
5789N/A <!--- Test Case information
5789N/A #@TestMarker User Password Policy
5789N/A #@TestName Get Allow User Password Changes
5789N/A #@TestIssue None
5789N/A #@TestPurpose Get ds-cfg-allow-user-password-changes
5789N/A #@TestPreamble None
5789N/A #@TestStep Check ds-cfg-allow-user-password-changes
5789N/A #@TestStep Check the output of the command.
5789N/A #@TestPostamble None
5789N/A #@TestResult Success if compareEntry returns 0 and the
5789N/A output is correct.
5789N/A -->
5789N/A <function name="pwp_allow_user_pswd_changes_001" scope="local">
5789N/A <testcase name="getTestCaseName('PWP Get Allow User Password Changes')">
5789N/A <sequence>
5789N/A <try>
5789N/A <sequence>
5789N/A
5789N/A <call function="'testCase_Preamble'"/>
5789N/A
5789N/A <message>
5789N/A 'Test Name = %s' % STAXCurrentTestcase
5789N/A </message>
5789N/A
5789N/A <call function="'testStep'">
5789N/A { 'stepMessage' : '%s Get Allow User Password Changes Property.' % msg1 }
5789N/A </call>
5789N/A
5789N/A <script>
5789N/A options=[]
5789N/A options.append('--policy-name "Default Password Policy"')
5789N/A options.append('--property "allow-user-password-changes"')
5789N/A dsconfigOptions=' '.join(options)
5789N/A </script>
5789N/A
5789N/A <call function="'dsconfig'">
5789N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST,
5789N/A 'dsInstanceAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
5789N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN,
5789N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD,
5789N/A 'subcommand' : 'get-password-policy-prop',
5789N/A 'optionsString' : dsconfigOptions,
5789N/A 'expectedString' : 'allow-user-password-changes : true'
5789N/A
5789N/A }
5789N/A </call>
5789N/A
5789N/A <call function="'testStep'">
5789N/A { 'stepMessage' : '%s Get Allow User Password Changes Attribute.' % msg1 }
5789N/A </call>
5789N/A
5789N/A <call function="'compareEntry'">
5789N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5789N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5789N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5789N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5789N/A 'attrToBeCompared' : 'ds-cfg-allow-user-password-changes:true',
5789N/A 'entryToBeCompared' : basepwp }
5789N/A </call>
5789N/A
5789N/A </sequence>
5789N/A
5789N/A <catch exception="'STAXException'" typevar="eType" var="eInfo">
5789N/A <message log="1" level="'fatal'">
5789N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
5789N/A </message>
5789N/A </catch>
5789N/A <finally>
5789N/A <sequence>
5789N/A <call function="'testCase_Postamble'"/>
5789N/A </sequence>
5789N/A </finally>
5789N/A </try>
5789N/A </sequence>
5789N/A </testcase>
5789N/A </function>
5789N/A
5789N/A
5789N/A <!--- Test Case information
5789N/A #@TestMarker User Password Policy
5789N/A #@TestName Check User Search With Password
5789N/A #@TestIssue None
5789N/A #@TestPurpose Check User Search With Password
5789N/A #@TestPreamble None
5789N/A #@TestStep Check User Search With Password
5789N/A #@TestStep Check the output of the command.
5789N/A #@TestPostamble None
5789N/A #@TestResult Success if SearchObject returns 0
5789N/A -->
5789N/A <function name="pwp_allow_user_pswd_changes_002" scope="local">
5789N/A <testcase name="getTestCaseName('PWP User Search')">
5789N/A <sequence>
5789N/A <try>
5789N/A <sequence>
5789N/A
5789N/A <call function="'testCase_Preamble'"/>
5789N/A
5789N/A <message>
5789N/A 'Test Name = %s' % STAXCurrentTestcase
5789N/A </message>
5789N/A
5789N/A <call function="'testStep'">
5789N/A { 'stepMessage' : '%s User Searching With Password.' % msg1 }
5789N/A </call>
5789N/A
5789N/A <call function="'SearchObject'">
5789N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5789N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5789N/A 'dsInstanceDn' : 'uid=scarter,%s' % basedn ,
5789N/A 'dsInstancePswd' : 'sprain' ,
5789N/A 'dsBaseDN' : 'dc=example,dc=com' ,
5789N/A 'dsFilter' : 'objectclass=*' ,
5789N/A 'extraParams' : '-s base' }
5789N/A </call>
5789N/A
5789N/A </sequence>
5789N/A
5789N/A <catch exception="'STAXException'" typevar="eType" var="eInfo">
5789N/A <message log="1" level="'fatal'">
5789N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
5789N/A </message>
5789N/A </catch>
5789N/A <finally>
5789N/A <sequence>
5789N/A <call function="'testCase_Postamble'"/>
5789N/A </sequence>
5789N/A </finally>
5789N/A </try>
5789N/A </sequence>
5789N/A </testcase>
5789N/A </function>
5789N/A
5789N/A <!--- Test Case information
5789N/A #@TestMarker User Password Policy
5789N/A #@TestName Check User Search With Bad Password
5789N/A #@TestIssue None
5789N/A #@TestPurpose Check User Search With Bad Password
5789N/A #@TestPreamble None
5789N/A #@TestStep Check User Search With Bad Password
5789N/A #@TestPostamble None
5789N/A #@TestResult Success if SearchObject returns 49
5789N/A -->
5789N/A <function name="pwp_allow_user_pswd_changes_003" scope="local">
5789N/A <testcase name="getTestCaseName('PWP User Search With Bad Password')">
5789N/A <sequence>
5789N/A <try>
5789N/A <sequence>
5789N/A
5789N/A <call function="'testCase_Preamble'"/>
5789N/A
5789N/A <message>
5789N/A 'Test Name = %s' % STAXCurrentTestcase
5789N/A </message>
5789N/A
5789N/A <call function="'testStep'">
5789N/A { 'stepMessage' : '%s User Searching With Bad Password.' % msg1 }
5789N/A </call>
5789N/A
5789N/A <call function="'SearchObject'">
5789N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5789N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5789N/A 'dsInstanceDn' : 'uid=scarter,%s' % basedn ,
5789N/A 'dsInstancePswd' : 'newsprain' ,
5789N/A 'dsBaseDN' : 'dc=example,dc=com' ,
5789N/A 'dsFilter' : 'objectclass=*' ,
5789N/A 'extraParams' : '-s base' ,
5789N/A 'expectedRC' : 49 }
5789N/A </call>
5789N/A
5789N/A </sequence>
5789N/A
5789N/A <catch exception="'STAXException'" typevar="eType" var="eInfo">
5789N/A <message log="1" level="'fatal'">
5789N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
5789N/A </message>
5789N/A </catch>
5789N/A <finally>
5789N/A <sequence>
5789N/A <call function="'testCase_Postamble'"/>
5789N/A </sequence>
5789N/A </finally>
5789N/A </try>
5789N/A </sequence>
5789N/A </testcase>
5789N/A </function>
5789N/A
5789N/A <!--- Test Case information
5789N/A #@TestMarker User Password Policy
5789N/A #@TestName User With Bad Credentials Change Password
5789N/A #@TestIssue None
5789N/A #@TestPurpose Check User Search With Bad Credentials
5789N/A #@TestPreamble None
5789N/A #@TestStep Check User Search With Bad Credentials
5789N/A #@TestPostamble None
5789N/A #@TestResult Success if ldapPasswordModifyWithScript returns 49
5789N/A -->
5789N/A <function name="pwp_allow_user_pswd_changes_004" scope="local">
5789N/A <testcase name="getTestCaseName('PWP User With Bad Credentials Change Password')">
5789N/A <sequence>
5789N/A <try>
5789N/A <sequence>
5789N/A
5789N/A <call function="'testCase_Preamble'"/>
5789N/A
5789N/A <message>
5789N/A 'Test Name = %s' % STAXCurrentTestcase
5789N/A </message>
5789N/A
5789N/A <call function="'testStep'">
5789N/A { 'stepMessage' : '%s User with Bad Credentials Changing Password.' % msg1 }
5789N/A </call>
5789N/A
5789N/A <call function="'ldapPasswordModifyWithScript'">
5789N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5789N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5789N/A 'dsInstanceDn' : 'uid=scarter,%s' % basedn ,
5789N/A 'dsInstancePswd' : 'BadPwd' ,
5789N/A 'dsAuthzID' : 'dn:uid=scarter,%s' % basedn ,
5789N/A 'dsNewPassword' : 'newsprain' ,
5789N/A 'expectedRC' : 49 }
5789N/A </call>
5789N/A
5789N/A </sequence>
5789N/A
5789N/A <catch exception="'STAXException'" typevar="eType" var="eInfo">
5789N/A <message log="1" level="'fatal'">
5789N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
5789N/A </message>
5789N/A </catch>
5789N/A <finally>
5789N/A <sequence>
5789N/A <call function="'testCase_Postamble'"/>
5789N/A </sequence>
5789N/A </finally>
5789N/A </try>
5789N/A </sequence>
5789N/A </testcase>
5789N/A </function>
5789N/A
5789N/A <!--- Test Case information
5789N/A #@TestMarker User Password Policy
5789N/A #@TestName User Change Password
5789N/A #@TestIssue None
5789N/A #@TestPurpose User Change Password
5789N/A #@TestPreamble None
5789N/A #@TestStep Step 1 User Change Password
5789N/A #@TestStep Step 2 User Searching With Old Password
5789N/A #@TestStep Step 3 User Searching With New Password
5789N/A #@TestPostamble None
5789N/A #@TestResult Success if SearchObject returns 0
5789N/A -->
5789N/A <function name="pwp_allow_user_pswd_changes_005" scope="local">
5789N/A <testcase name="getTestCaseName('PWP User Changing Own Password')">
5789N/A <sequence>
5789N/A <try>
5789N/A <sequence>
5789N/A
5789N/A <call function="'testCase_Preamble'"/>
5789N/A
5789N/A <message>
5789N/A 'Test Name = %s' % STAXCurrentTestcase
5789N/A </message>
5789N/A
5789N/A <call function="'testStep'">
5789N/A { 'stepMessage' : '%s User Changing Password.' % msg1 }
5789N/A </call>
5789N/A
5789N/A <call function="'ldapPasswordModifyWithScript'">
5789N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5789N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5789N/A 'dsInstanceDn' : 'uid=scarter,%s' % basedn ,
5789N/A 'dsInstancePswd' : 'sprain' ,
5789N/A 'dsAuthzID' : 'dn:uid=scarter,%s' % basedn ,
5789N/A 'dsNewPassword' : 'newsprain' ,
5789N/A }
5789N/A </call>
5789N/A
5789N/A <call function="'testStep'">
5789N/A { 'stepMessage' : '%s User Searching With Old Password.' % msg1 }
5789N/A </call>
5789N/A
5789N/A <call function="'SearchObject'">
5789N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5789N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5789N/A 'dsInstanceDn' : 'uid=scarter,%s' % basedn ,
5789N/A 'dsInstancePswd' : 'sprain' ,
5789N/A 'dsBaseDN' : 'dc=example,dc=com' ,
5789N/A 'dsFilter' : 'objectclass=*' ,
5789N/A 'extraParams' : '-s base' ,
5789N/A 'expectedRC' : 49 }
5789N/A </call>
5789N/A
5789N/A <call function="'testStep'">
5789N/A { 'stepMessage' : '%s User Searching With New Password.' % msg1 }
5789N/A </call>
5789N/A
5789N/A <call function="'SearchObject'">
5789N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5789N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5789N/A 'dsInstanceDn' : 'uid=scarter,%s' % basedn ,
5789N/A 'dsInstancePswd' : 'newsprain' ,
5789N/A 'dsBaseDN' : 'dc=example,dc=com' ,
5789N/A 'dsFilter' : 'objectclass=*' ,
5789N/A 'extraParams' : '-s base' }
5789N/A </call>
5789N/A
5789N/A </sequence>
5789N/A
5789N/A <catch exception="'STAXException'" typevar="eType" var="eInfo">
5789N/A <message log="1" level="'fatal'">
5789N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
5789N/A </message>
5789N/A </catch>
5789N/A <finally>
5789N/A <sequence>
5789N/A <call function="'testCase_Postamble'"/>
5789N/A </sequence>
5789N/A </finally>
5789N/A </try>
5789N/A </sequence>
5789N/A </testcase>
5789N/A </function>
5789N/A
5789N/A <!--- Test Case information
5789N/A #@TestMarker User Password Policy
5789N/A #@TestName Admin Change Password Policy
5789N/A #@TestIssue None
5789N/A #@TestPurpose Admin Change Password Policy
5789N/A #@TestPreamble None
5789N/A #@TestStep Step 1 Modify the Password Policy by setting
5789N/A allow-user-password-changes to false
5789N/A #@TestStep Step 2 User resetting password should fail (49)
5789N/A #@TestStep Step 3 Check manage-account get-password-is-reset
5789N/A #@TestPostamble None
5789N/A #@TestResult Success if ldapPasswordModifyWithScript returns 49
5789N/A -->
5789N/A <function name="pwp_allow_user_pswd_changes_006" scope="local">
5789N/A <testcase name="getTestCaseName('PWP Allow User Password Changes False')">
5789N/A <sequence>
5789N/A <try>
5789N/A <sequence>
5789N/A
5789N/A <call function="'testCase_Preamble'"/>
5789N/A
5789N/A <message>
5789N/A 'Test Name = %s' % STAXCurrentTestcase
5789N/A </message>
5789N/A
5789N/A <call function="'testStep'">
5789N/A { 'stepMessage' : '%s Set Allow User Password Changes to false.' % msg1 }
5789N/A </call>
5789N/A
5789N/A <script>
5789N/A options=[]
5789N/A options.append('--policy-name "Default Password Policy"')
5789N/A options.append('--set "allow-user-password-changes:false"')
5789N/A dsconfigOptions=' '.join(options)
5789N/A </script>
5789N/A
5789N/A <call function="'dsconfig'">
5789N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST,
5789N/A 'dsInstanceAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
5789N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN,
5789N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD,
5789N/A 'subcommand' : 'set-password-policy-prop',
5789N/A 'optionsString' : dsconfigOptions
5789N/A }
5789N/A </call>
5789N/A
5789N/A <call function="'testStep'">
5789N/A { 'stepMessage' : '%s User Resetting Password.' % msg1 }
5789N/A </call>
5789N/A
5789N/A <call function="'ldapPasswordModifyWithScript'">
5789N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5789N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5789N/A 'dsInstanceDn' : 'uid=scarter,%s' % basedn ,
5789N/A 'dsInstancePswd' : 'sprain' ,
5789N/A 'dsAuthzID' : 'dn:uid=scarter,%s' % basedn ,
5789N/A 'dsNewPassword' : 'sprain' ,
5789N/A 'expectedRC' : 49 }
5789N/A </call>
5789N/A
5789N/A <call function="'testStep'">
5789N/A { 'stepMessage' : '%s Check manage-account get-password-is-reset.' % msg1 }
5789N/A </call>
5789N/A
5789N/A <call function="'manageAccountWithScript'">
5789N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5789N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5789N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5789N/A 'subcommand' : 'get-password-is-reset' ,
5789N/A 'targetDn' : 'uid=scarter,%s' % basedn }
5789N/A </call>
5789N/A
5789N/A <script>
5789N/A returnString = STAXResult[0][1]
5789N/A </script>
5789N/A
5789N/A <call function="'searchString'">
5789N/A { 'returnString' : returnString ,
5789N/A 'expectedString' : 'Password Is Reset: false' }
5789N/A </call>
5789N/A
5789N/A </sequence>
5789N/A
5789N/A <catch exception="'STAXException'" typevar="eType" var="eInfo">
5789N/A <message log="1" level="'fatal'">
5789N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
5789N/A </message>
5789N/A </catch>
5789N/A <finally>
5789N/A <sequence>
5789N/A <call function="'testCase_Postamble'"/>
5789N/A </sequence>
5789N/A </finally>
5789N/A </try>
5789N/A </sequence>
5789N/A </testcase>
5789N/A </function>
5789N/A
5789N/A <!--- Test Case information
5789N/A #@TestMarker User Password Policy
5789N/A #@TestName Allow User Password Changes
5789N/A #@TestIssue None
5789N/A #@TestPurpose Allow User Password Changes
5789N/A #@TestPreamble None
5789N/A #@TestStep Step 1 - Admin Resetting Password Policy
5789N/A set allow-user-password-changes to true
5789N/A #@TestStep Step 2 - User Resetting Password
5789N/A #@TestStep Step 3 - Check manage-account
5789N/A get-password-is-reset
5789N/A #@TestStep Step 4 - check manage-account
5789N/A get-password-changed-time
5789N/A #@TestStep Step 5 - User Searching With Old Password
5789N/A #@TestStep Step 6 - User Searching With New Password
5789N/A #@TestPostamble None
5789N/A #@TestResult Success if SearchObject returns 0.
5789N/A -->
5789N/A <function name="pwp_allow_user_pswd_changes_007" scope="local">
5789N/A <testcase name="getTestCaseName('PWP Reset Allow User Password Changes')">
5789N/A <sequence>
5789N/A <try>
5789N/A <sequence>
5789N/A
5789N/A <call function="'testCase_Preamble'"/>
5789N/A
5789N/A <message>
5789N/A 'Test Name = %s' % STAXCurrentTestcase
5789N/A </message>
5789N/A
5789N/A <call function="'testStep'">
5789N/A { 'stepMessage' : '%s Reset Allow User Password Changes.' % msg1 }
5789N/A </call>
5789N/A
5789N/A <script>
5789N/A options=[]
5789N/A options.append('--policy-name "Default Password Policy"')
5789N/A options.append('--reset allow-user-password-changes')
5789N/A dsconfigOptions=' '.join(options)
5789N/A </script>
5789N/A
5789N/A <call function="'dsconfig'">
5789N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST,
5789N/A 'dsInstanceAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
5789N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN,
5789N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD,
5789N/A 'subcommand' : 'set-password-policy-prop',
5789N/A 'optionsString' : dsconfigOptions
5789N/A }
5789N/A </call>
5789N/A
5789N/A <call function="'testStep'">
5789N/A { 'stepMessage' : '%s User Resetting Password.' % msg1 }
5789N/A </call>
5789N/A
5789N/A <call function="'ldapPasswordModifyWithScript'">
5789N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5789N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5789N/A 'dsInstanceDn' : 'uid=scarter,%s' % basedn ,
5789N/A 'dsInstancePswd' : 'newsprain' ,
5789N/A 'dsAuthzID' : 'dn:uid=scarter,%s' % basedn ,
5789N/A 'dsNewPassword' : 'sprain' ,
5789N/A }
5789N/A </call>
5789N/A
5789N/A <call function="'testStep'">
5789N/A { 'stepMessage' : '%s Check manage-account get-password-is-reset.' % msg1 }
5789N/A </call>
5789N/A
5789N/A <call function="'manageAccountWithScript'">
5789N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5789N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5789N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5789N/A 'subcommand' : 'get-password-is-reset' ,
5789N/A 'targetDn' : 'uid=scarter,%s' % basedn }
5789N/A </call>
5789N/A
5789N/A <script>
5789N/A returnString = STAXResult[0][1]
5789N/A </script>
5789N/A
5789N/A <call function="'searchString'">
5789N/A { 'returnString' : returnString ,
5789N/A 'expectedString' : 'Password Is Reset: false' }
5789N/A </call>
5789N/A
5789N/A <call function="'testStep'">
5789N/A { 'stepMessage' : '%s Check manage-account get-password-changed-time.' % msg1 }
5789N/A </call>
5789N/A
5789N/A <call function="'manageAccountWithScript'">
5789N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5789N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5789N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
5789N/A 'subcommand' : 'get-password-changed-time' ,
5789N/A 'targetDn' : 'uid=scarter,%s' % basedn }
5789N/A </call>
5789N/A
5789N/A <script>
5789N/A returnString = STAXResult[0][1]
5789N/A </script>
5789N/A
5789N/A <call function="'searchString'">
5789N/A { 'returnString' : returnString ,
5789N/A 'expectedString' : 'Password Changed Time: 2' }
5789N/A </call>
5789N/A
5789N/A <call function="'testStep'">
5789N/A { 'stepMessage' : '%s User Searching With Old Password.' % msg1 }
5789N/A </call>
5789N/A
5789N/A <call function="'SearchObject'">
5789N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5789N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5789N/A 'dsInstanceDn' : 'uid=scarter,%s' % basedn ,
5789N/A 'dsInstancePswd' : 'newsprain' ,
5789N/A 'dsBaseDN' : 'dc=example,dc=com' ,
5789N/A 'dsFilter' : 'objectclass=*' ,
5789N/A 'extraParams' : '-s base' ,
5789N/A 'expectedRC' : 49 }
5789N/A </call>
5789N/A
5789N/A <call function="'testStep'">
5789N/A { 'stepMessage' : '%s User Searching With New Password.' % msg1 }
5789N/A </call>
5789N/A
5789N/A <call function="'SearchObject'">
5789N/A { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5789N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5789N/A 'dsInstanceDn' : 'uid=scarter,%s' % basedn ,
5789N/A 'dsInstancePswd' : 'sprain' ,
5789N/A 'dsBaseDN' : 'dc=example,dc=com' ,
5789N/A 'dsFilter' : 'objectclass=*' ,
5789N/A 'extraParams' : '-s base' }
5789N/A </call>
5789N/A
5789N/A </sequence>
5789N/A
5789N/A <catch exception="'STAXException'" typevar="eType" var="eInfo">
5789N/A <message log="1" level="'fatal'">
5789N/A '%s: Test failed. eInfo(%s)' % (eType,eInfo)
5789N/A </message>
5789N/A </catch>
5789N/A <finally>
5789N/A <sequence>
5789N/A <call function="'testCase_Postamble'"/>
5789N/A </sequence>
5789N/A </finally>
5789N/A </try>
5789N/A </sequence>
5789N/A </testcase>
5789N/A </function>
5789N/A
5789N/A</stax>