autosecrets File

Purpose

Configures iSCSI target passwords.

Description

The autosecrets file is used to configure iSCSI target passwords. You can use comments in the autosecrets file. The comment character is "#", and must be the first character on the line.

This file contains one entry per target. Each entry has the following format:
target_name     chap_name       chap_secret
target_name
The ODM name of the target.
chap_name
The CHAP name associated with this password. The iSCSI initiator identifies itself by sending this name to the iSCSI target during the authentication process.
chap_secret
The password, enclosed in double quotation marks.

You can use the line continuation character backslash (\) to make each entry easier to read.

Examples

If the target ODM name is target0, the CHAP name is iqn.com.ibm-K167-42.fc1a, and the chap_name is secret.fc1a, the entry looks like the following example:
target0 iqn.com.ibm-K167-42.fc1a "secret.fc1a"
The following example has the same target, chap_name, and chap_secret, but with a line continuation character.
target0 iqn.com.ibm-K167-42.fc1a \
       "secret.fc1a"

Files

Item Description
/etc/tmiscsi/autosecrets Configures iSCSI target passwords.