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

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