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