File basic-auth-fix.patch of Package powershell-libpsrpclient

From 87b395e31edf331f3261d79abd68f8b9fc2b84d7 Mon Sep 17 00:00:00 2001
From: Aurelien Aptel <aaptel@suse.com>
Date: Sun, 25 Mar 2018 22:00:20 +0200
Subject: [PATCH] basic auth fix

Signed-off-by: Aurelien Aptel <aaptel@suse.com>
---
 omi/Unix/http/httpclient.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/omi/Unix/http/httpclient.c b/omi/Unix/http/httpclient.c
index 398a0cc..15a47f8 100644
--- a/omi/Unix/http/httpclient.c
+++ b/omi/Unix/http/httpclient.c
@@ -2636,6 +2636,9 @@ MI_Result HttpClient_New_Connector2(
             case AUTH_METHOD_KERBEROS:
                 // Gss encryption is legal
                 break;
+            case AUTH_METHOD_BASIC:
+		privacy = 0;
+		break;
             default:
                 // Basic auth and anything esle so far implemented, http encryption is not allowed/possible
                 client->probableCause = (Probable_Cause_Data *)&ENCRYPTION_NOT_AVAILABLE_ERROR;
-- 
2.13.6