Blame SOURCES/0004-Do-not-depend-on-default_realm-in-krb5.conf.patch

539d92
From 8f726817b9ff643a382fa12ea9ff489cd5ab9068 Mon Sep 17 00:00:00 2001
539d92
From: Sumit Bose <sbose@redhat.com>
539d92
Date: Mon, 13 Aug 2018 18:24:58 +0200
539d92
Subject: [PATCH 4/4] Do not depend on default_realm in krb5.conf
539d92
539d92
---
539d92
 library/adenroll.c | 4 +++-
539d92
 1 file changed, 3 insertions(+), 1 deletion(-)
539d92
539d92
diff --git a/library/adenroll.c b/library/adenroll.c
539d92
index bb50365..02bd9e3 100644
539d92
--- a/library/adenroll.c
539d92
+++ b/library/adenroll.c
539d92
@@ -1661,7 +1661,9 @@ remove_principal_from_keytab (adcli_enroll *enroll,
539d92
 	krb5_principal principal;
539d92
 	match_principal_kvno closure;
539d92
 
539d92
-	code = krb5_parse_name (k5, principal_name, &principal);
539d92
+	code = _adcli_krb5_build_principal (k5, principal_name,
539d92
+	                                    adcli_conn_get_domain_realm (enroll->conn),
539d92
+	                                    &principal);
539d92
 	if (code != 0) {
539d92
 		_adcli_err ("Couldn't parse principal: %s: %s",
539d92
 		            principal_name, krb5_get_error_message (k5, code));
539d92
-- 
539d92
2.17.1
539d92