Blame SOURCES/0001-delete-do-not-exit-if-keytab-cannot-be-read.patch

c3d619
From 40d3be22f6e518e4354aa7c3d0278291fcbed32f Mon Sep 17 00:00:00 2001
c3d619
From: Sumit Bose <sbose@redhat.com>
c3d619
Date: Fri, 5 Jun 2020 17:06:58 +0200
c3d619
Subject: [PATCH] delete: do not exit if keytab cannot be read
c3d619
c3d619
Reading the keytab is not required when deleting a host object in AD. It
c3d619
is only needed in the case where the host was added with a manual set
c3d619
NetBIOS name (--computer-name option) which does not match the short
c3d619
hostname and no computer name was given at the delete-computer command
c3d619
line.
c3d619
c3d619
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1840752
c3d619
---
c3d619
 tools/computer.c | 2 --
c3d619
 1 file changed, 2 deletions(-)
c3d619
c3d619
diff --git a/tools/computer.c b/tools/computer.c
c3d619
index 292c4d8..a90c4b2 100644
c3d619
--- a/tools/computer.c
c3d619
+++ b/tools/computer.c
c3d619
@@ -952,8 +952,6 @@ adcli_tool_computer_delete (adcli_conn *conn,
c3d619
 	if (res != ADCLI_SUCCESS) {
c3d619
 		warnx ("couldn't lookup domain info from keytab: %s",
c3d619
 		       adcli_get_last_error ());
c3d619
-		adcli_enroll_unref (enroll);
c3d619
-		return -res;
c3d619
 	}
c3d619
 
c3d619
 	res = adcli_conn_connect (conn);
c3d619
-- 
c3d619
2.26.2
c3d619