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

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