heimdal: lib/krb5: do not fail set_config_files due to parse error
commitbe00b892e9183e1980b8445a071003fc56f439e5
authorJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 16 Jun 2016 20:25:41 +0000 (16 16:25 -0400)
committerKarolin Seeger <kseeger@samba.org>
Mon, 25 Jun 2018 15:30:14 +0000 (25 17:30 +0200)
tree2ec3a64404102da138eb3239ab484f41bd5149ad
parent0196569dbe834a9d3de075fd279f6fdcb1774874
heimdal: lib/krb5: do not fail set_config_files due to parse error

Follow Apple's lead and do not fail krb5_set_config_files() simply
because one of the files in the profile list fails to parse correctly.
Doing so can lead to hard to find failures and could lead to an end
user shooting themselves in the foot and no longer be able to login
to their system to fix it.

Parse as many of the files as we can.  Only fail krb5_set_config_files()
if init_context_from_config_file() fails.

Change-Id: I122664c6d707a5f926643808ba414bf4f681f8b8

Cherry-pick of Heimdal commit b7cf5e7caf9b270f4d4151d2690177b11a7a1bdf

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11573

Signed-off-by: Björn Baumbach <bb@sernet.de>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
(cherry picked from commit f05a1554b770c6a2c905170347bfb41157f4aa78)

Autobuild-User(v4-8-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-8-test): Mon Jun 25 17:30:14 CEST 2018 on sn-devel-144
source4/heimdal/lib/krb5/config_file.c
source4/heimdal/lib/krb5/context.c