LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-19-2021, 04:00 PM   #1
louisb
Member
 
Registered: Aug 2003
Posts: 199

Rep: Reputation: 15
listing iscsi acls content


I've created a iscsi lun and now I'm trying to list the contents of the ACLS because I'm trying to check if I made a mistake when creating the userid and password.

How do I validated the initiator name, userid and password?

When trying to connect to the lun I'm getting authentication errors.

New to the use of iscsi.

thanks
 
Old 01-19-2021, 08:28 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
The target's iSCSI initiator name is in /etc/iscsi/initiatorname.iscsi.

If you use targetcli for iSCSI configuration, all config is in /etc/target/saveconfig.json. For example:
Code:
# cat /etc/target/saveconfig.json
...
  "targets": [
    {
      "fabric": "iscsi",
      "tpgs": [
        {
          "attributes": {
          ...
          },
          "enable": true,
          "luns": [],
          "node_acls": [
            {
              ...
              "chap_password": "naspw11",
              "chap_userid": "nas11",
              "mapped_luns": [],
              "node_wwn": "iqn.1994-05.com.redhat:5deda06d84b6"
            }
...
You can also launch the targetcli command, navigate to the ACL and use the get auth command for authentication data:
Code:
# targetcli
targetcli shell version 2.1.53
Copyright 2011-2013 by Datera, Inc and others.
For help on commands, type 'help'.

/> cd /iscsi/iqn.2003-01.org.linux-iscsi.centos8.x8664:sn.8de53af50b23/tpg1/acls/iqn.1994-05.com.redhat:5deda06d84b6
/iscsi/iqn.20...:5deda06d84b6> get auth
AUTH CONFIG GROUP
=================
mutual_password=
----------------
The mutual_password auth parameter.

mutual_userid=
--------------
The mutual_userid auth parameter.

password=naspw11
----------------
The password auth parameter.

userid=nas11
------------
The userid auth parameter.

/iscsi/iqn.20...:5deda06d84b6>
For details, use help.

Last edited by berndbausch; 01-19-2021 at 08:29 PM. Reason: formatting
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error while listing folder content (ls -las): "input/output error" SuSE_Lamer Linux - Software 5 11-29-2018 04:05 AM
sftp ls command, short listing vs long listing slufoot80 Linux - General 3 02-05-2013 10:40 AM
[SOLVED] pacemaker - iscsi: how to set up iscsi targets/logical units? eantoranz Linux - Server 9 01-02-2013 08:38 AM
changes on other iscsi nodes attached to an ext3 iscsi target not being seen sldahlin Linux - Server 1 06-07-2008 02:02 AM
Apache serving content after the content is removed? jrbush82 Linux - Software 6 05-05-2004 04:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration