5065N/A<?
xml version="1.0" encoding="UTF-8" standalone="no"?>
5065N/A ! The contents of this file are subject to the terms of the 5065N/A ! Common Development and Distribution License, Version 1.0 only 5065N/A ! (the "License"). You may not use this file except in compliance 5065N/A ! You can obtain a copy of the license at 5065N/A ! See the License for the specific language governing permissions 5065N/A ! and limitations under the License. 5065N/A ! When distributing Covered Code, include this CDDL HEADER in each 5065N/A ! file and include the License file at 5065N/A ! add the following below this CDDL HEADER, with the fields enclosed 5065N/A ! by brackets "[]" replaced with your own identifying information: 5065N/A ! Portions Copyright [yyyy] [name of copyright owner] 5065N/A ! Copyright 2010 Sun Microsystems, Inc. 5065N/A <
defaultcall function="clus_starttls_ldapmodify"/>
5065N/A <
function name="clus_starttls_ldapmodify" scope="local">
5065N/A <
block name="'clus_starttls_ldapmodify'">
5065N/A <!--- Test Suite information 5065N/A #@TestSuiteName StartTLS ldapmodify check behaviors 5065N/A #@TestSuitePurpose Test the results of the startTLS ldapmodify 5065N/A #@TestSuiteGroup ldapmodify check bahavior tests 5065N/A CurrentTestPath['group'] = 'clu_secure'
5065N/A CurrentTestPath['suite'] = STAXCurrentBlock
5065N/A <
call function="'testSuite_Preamble'"/>
5065N/A <!--- Test Case information 5065N/A #@TestMarker StartTLS ldapmodify check behaviors 5065N/A #@TestName Client blind trust : ldapmodify 5065N/A #@TestPurpose Verify that the operation is successful and 5065N/A that the attribute value has been modified 5065N/A when client trust all server certificates. 5065N/A #@TestStep Check that the "sn" value for "uid=user.110" 5065N/A #@TestStep Modify the "sn" value using startTLS ldapmodify 5065N/A #@TestStep Check that the "sn" value for 5065N/A #@TestResult Success if the "sn" value is John 5065N/A <
testcase name="getTestCaseName('Client blind trust : ldapmodify')">
5065N/A <
call function="'testCase_Preamble'"/>
5065N/A 'Security: startTLS Check behaviors: ldapmodify, client trustall \
5065N/A <
call function="'ldapSearchWithScript'">
5065N/A 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5065N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5065N/A 'dsFilter' : 'uid=user.110' ,
5065N/A returnString = STAXResult[0][1]
5065N/A <
call function="'checktestString'">
5065N/A 'returnString' : returnString ,
5065N/A 'expectedString' : 'sn: Aimone'
5065N/A <
call function="'ldapModifyWithScript'">
5065N/A 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5065N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5065N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5065N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD,
5065N/A <
call function="'ldapSearchWithScript'">
5065N/A 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5065N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5065N/A 'dsFilter' : 'uid=user.110' ,
5065N/A returnString = STAXResult[0][1]
5065N/A <
call function="'checktestString'">
5065N/A 'returnString' : returnString ,
5065N/A 'expectedString' : 'sn: John'
5065N/A <
call function="'testCase_Postamble'"/>
5065N/A <!--- Test Case information 5065N/A #@TestMarker StartTLS ldapmodify check behaviors 5065N/A #@TestName Client use TrustStore file : ldapmodify 5065N/A #@TestPurpose Verify that the operation is successful and 5065N/A that the attribute value has been modified 5065N/A when client uses a TrustStore file. 5065N/A #@TestStep Check that the "telephoneNumber" value for 5065N/A "uid=user.111" is +1 896 751 0209 5065N/A #@TestStep Modify the "mail" value using startTLS ldapmodify. 5065N/A #@TestStep Check that the "telephoneNumber" value for 5065N/A "uid=user.111" is +3312345678 5065N/A #@TestResult Success if the "telephoneNumber" value is 5065N/A <
testcase name="getTestCaseName('Client use TrustStore file : ldapmodify')">
5065N/A <
call function="'testCase_Preamble'"/>
5065N/A 'Security: startTLS Check behaviors: ldapmodify, client \
5065N/A <
call function="'ldapSearchWithScript'">
5065N/A 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5065N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5065N/A 'dsFilter' : 'uid=user.111' ,
5065N/A 'dsAttributes' : 'telephoneNumber'
5065N/A returnString = STAXResult[0][1]
5065N/A <
call function="'checktestString'">
5065N/A 'returnString' : returnString ,
5065N/A 'expectedString' : 'telephoneNumber: \+1 896 751 0209'
5065N/A <
call function="'ldapModifyWithScript'">
5065N/A 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5065N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5065N/A 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
5065N/A 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD,
5065N/A 'dsTrustStorePassword': 'clientruststorepass',
5065N/A <
call function="'ldapSearchWithScript'">
5065N/A 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
5065N/A 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
5065N/A 'dsTrustStorePassword': 'clientruststorepass',
5065N/A 'dsFilter' : 'uid=user.111' ,
5065N/A 'dsAttributes' : 'telephoneNumber'
5065N/A returnString = STAXResult[0][1]
5065N/A <
call function="'checktestString'">
5065N/A 'returnString' : returnString ,
5065N/A 'expectedString' : 'telephoneNumber: \+3312345678'
5065N/A <
call function="'testCase_Postamble'"/>
5065N/A <
call function="'testSuite_Postamble'"/>