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