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

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