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

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