Blame SOURCES/0001-delete-use-keytab-data-to-determine-realm-and-NetBIO.patch

9a0aa5
From 038af878713155a87b2e3a25f18b0dd4cf74bd39 Mon Sep 17 00:00:00 2001
9a0aa5
From: Sumit Bose <sbose@redhat.com>
9a0aa5
Date: Mon, 25 Jul 2016 11:58:21 +0200
9a0aa5
Subject: [PATCH] delete: use keytab data to determine realm and NetBIOS name
9a0aa5
9a0aa5
---
9a0aa5
 tools/computer.c | 6 ++++++
9a0aa5
 1 file changed, 6 insertions(+)
9a0aa5
9a0aa5
diff --git a/tools/computer.c b/tools/computer.c
9a0aa5
index 7ad7bf6..d8a58c9 100644
9a0aa5
--- a/tools/computer.c
9a0aa5
+++ b/tools/computer.c
9a0aa5
@@ -732,6 +732,12 @@ adcli_tool_computer_delete (adcli_conn *conn,
9a0aa5
 
9a0aa5
 	adcli_conn_set_allowed_login_types (conn, ADCLI_LOGIN_USER_ACCOUNT);
9a0aa5
 
9a0aa5
+	res = adcli_enroll_load (enroll);
9a0aa5
+	if (res != ADCLI_SUCCESS) {
9a0aa5
+		errx (-res, "couldn't lookup domain info from keytab: %s",
9a0aa5
+		      adcli_get_last_error ());
9a0aa5
+	}
9a0aa5
+
9a0aa5
 	res = adcli_conn_connect (conn);
9a0aa5
 	if (res != ADCLI_SUCCESS) {
9a0aa5
 		errx (-res, "couldn't connect to %s domain: %s",
9a0aa5
-- 
9a0aa5
2.7.4
9a0aa5