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