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