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

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