|
|
0b05ab |
From 04dc595e3921879fa3e5b0f82506d63fdea4d2c8 Mon Sep 17 00:00:00 2001
|
|
|
0b05ab |
From: Vojtech Trefny <vtrefny@redhat.com>
|
|
|
0b05ab |
Date: Wed, 3 Oct 2018 14:11:08 +0200
|
|
|
0b05ab |
Subject: [PATCH] Fix options for ISCSI functions
|
|
|
0b05ab |
|
|
|
0b05ab |
Correct mutual authentication options in UDisks are
|
|
|
0b05ab |
"reverse-username" and "reverse-password".
|
|
|
0b05ab |
|
|
|
0b05ab |
Resolves: rhbz#1635569
|
|
|
0b05ab |
---
|
|
|
0b05ab |
blivet/iscsi.py | 8 ++++----
|
|
|
0b05ab |
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
|
0b05ab |
|
|
|
0b05ab |
diff --git a/blivet/iscsi.py b/blivet/iscsi.py
|
|
|
0b05ab |
index b979e01c..ca51f8ed 100644
|
|
|
0b05ab |
--- a/blivet/iscsi.py
|
|
|
0b05ab |
+++ b/blivet/iscsi.py
|
|
|
0b05ab |
@@ -385,9 +385,9 @@ class iSCSI(object):
|
|
|
0b05ab |
if password:
|
|
|
0b05ab |
auth_info["password"] = GLib.Variant("s", password)
|
|
|
0b05ab |
if r_username:
|
|
|
0b05ab |
- auth_info["r_username"] = GLib.Variant("s", r_username)
|
|
|
0b05ab |
+ auth_info["reverse-username"] = GLib.Variant("s", r_username)
|
|
|
0b05ab |
if r_password:
|
|
|
0b05ab |
- auth_info["r_password"] = GLib.Variant("s", r_password)
|
|
|
0b05ab |
+ auth_info["reverse-password"] = GLib.Variant("s", r_password)
|
|
|
0b05ab |
|
|
|
0b05ab |
args = GLib.Variant("(sqa{sv})", (ipaddr, int(port), auth_info))
|
|
|
0b05ab |
nodes, _n_nodes = self._call_initiator_method("DiscoverSendTargets", args)
|
|
|
0b05ab |
@@ -423,9 +423,9 @@ class iSCSI(object):
|
|
|
0b05ab |
if password:
|
|
|
0b05ab |
auth_info["password"] = GLib.Variant("s", password)
|
|
|
0b05ab |
if r_username:
|
|
|
0b05ab |
- auth_info["r_username"] = GLib.Variant("s", r_username)
|
|
|
0b05ab |
+ auth_info["reverse-username"] = GLib.Variant("s", r_username)
|
|
|
0b05ab |
if r_password:
|
|
|
0b05ab |
- auth_info["r_password"] = GLib.Variant("s", r_password)
|
|
|
0b05ab |
+ auth_info["reverse-password"] = GLib.Variant("s", r_password)
|
|
|
0b05ab |
|
|
|
0b05ab |
try:
|
|
|
0b05ab |
self._login(node, auth_info)
|
|
|
0b05ab |
--
|
|
|
0b05ab |
2.17.2
|
|
|
0b05ab |
|