1 #
2 # CDDL HEADER START
3 #
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
21
22 #
23 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
25 #
26
27 #
28 # A test purpose file to test functionality of chap authentication
29 #
30
31 # __stc_assertion_start
32 #
33 # ID: iscsi_auth_003
34 #
35 # DESCRIPTION:
36 # iSCSI target port provider can support connection and LU discovery
37 # with "RADIUS" authentication and be verified by iSCSI initiator
38 #
39 # STRATEGY:
40 # Setup:
41 # Setup the RADIUS server configuration to be ready( refer to
42 # iSCSI CHAP and RADIUS FAQ documentation)
43 # Create target portal group with specified tag 1 and ip address
44 # Create target node with tpgt 1 and specified auth-method of
45 # "radius" authentication
46 # Modify target node default property with radius ip address and
47 # enable radius authentication by itadm modify-default option
48 # Create a LU on target host by raw device
49 # Create the view of LU by default to all target and host groups
50 # Setup initiator node to enable "SendTarget" method
51 # Setup SendTarget with discovery address on initiator host
52 # Setup RADIUS authentication enabled on initiator host
53 # Setup radius server and shared secret on initiator host by
54 # iscsiadm modify initiator-node option
55 # Test:
56 # Check that device path of specified LU can be visible by
57 # iscsi initiator node
58 # Check that iscsi initiator node has at least 1 connection
59 # Cleanup:
60 # Delete the target portal group
61 # Delete the target node
62 # Delete the configuration information in initiator and target
63 #
64 # STRATEGY_NOTES:
65 #
66 # TESTABILITY: explicit
67 #
68 # AUTHOR: john.gu@sun.com
69 #
70 # REVIEWERS:
71 #
72 # ASSERTION_SOURCE:
73 #
74 # TEST_AUTOMATION_LEVEL: automated
75 #
76 # STATUS: IN_PROGRESS
77 #
78 # COMMENTS:
79 #
80 # __stc_assertion_end
81 #
82 function iscsi_auth_003
83 {
84 cti_pass
85
86 tc_id="iscsi_auth_003"
87 tc_desc="iSCSI target port provider can support connection and LU"
88 tc_desc="${tc_desc} discovery RADIUS authentication and be verified"
89 tc_desc="${tc_desc} by iSCSI initiator"
90
91 print_test_case $tc_id - $tc_desc
92
93 stmsboot_enable_mpxio $ISCSI_IHOST
94
95 cti_unsupported "Radius Authentication is not supported by Comstar"\
96 "iSCSI Target temporarily, test is skipped."
97
98 }
99