]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix compatibility with pre-1.11 iprop dump files
authorGreg Hudson <ghudson@mit.edu>
Fri, 17 Jul 2015 17:03:35 +0000 (13:03 -0400)
committerTom Yu <tlyu@mit.edu>
Wed, 9 Dec 2015 22:34:37 +0000 (17:34 -0500)
commit04709a3184e01b5ef23605082034cfbd073a9c70
tree2ec263bc7e95d47afc1d4ae5f57640087c983340
parent04d0faa8cf9548eddcf9e2d893fc52d57f7b7531
Fix compatibility with pre-1.11 iprop dump files

Ticket #7223 added new policy fields and a new dump format version to
marshal them, but did not add a new iprop dump format version.  As a
result, slave KDCs running 1.11 or later cannot receive full resyncs
from master KDCs running 1.10 or earlier.  (Reported by John
Devitofranceschi.)

Retroactively add support for pre-1.11 policy entries by making
process_r1_11_policy() read the first ten fields, check whether the
next whitespace character is a newline, and then read the rest if it
is not.

(back ported from commit 3c9ab5220bcc3f57641f6f4b6942b17aadb6613d)
(cherry picked from commit 6f1b25097969b4685263639a5214d440ce233793)

ticket: 8317 (new)
version_fixed: 1.12.5
status: resolved
src/kadmin/dbutil/dump.c
src/tests/t_dump.py