Skip to content

Commit

Permalink
Merge pull request #3561 from meinaLi/auth
Browse files Browse the repository at this point in the history
iscsi.py: add authentication=1 to set_chap_auth_target function
  • Loading branch information
chunfuwen authored Nov 17, 2022
2 parents cc79d0a + 233a619 commit 66283f9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions virttest/iscsi.py
Original file line number Diff line number Diff line change
Expand Up @@ -674,10 +674,11 @@ def set_chap_auth_target(self):
for all Endpoints in a TPG
"""
auth_cmd = "targetcli /iscsi/%s/tpg1/ " % self.target
attr_cmd = ("set attribute %s %s %s" %
attr_cmd = ("set attribute %s %s %s %s" %
("demo_mode_write_protect=0",
"generate_node_acls=1",
"cache_dynamic_acls=1"))
"cache_dynamic_acls=1",
"authentication=1"))
process.system(auth_cmd + attr_cmd)

# Set userid
Expand Down

0 comments on commit 66283f9

Please sign in to comment.