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

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