From: Andreas Schneider Date: Mon, 11 Oct 2021 09:55:12 +0000 (+0200) Subject: s4:mitkdc: Set KRB5_KDB_NO_AUTH_DATA_REQUIRED based on sdb no_auth_data_reqd X-Git-Tag: tevent-0.12.0~575 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea7b1caa4101118706b56784c1a435ed7a7a183d;p=thirdparty%2Fsamba.git s4:mitkdc: Set KRB5_KDB_NO_AUTH_DATA_REQUIRED based on sdb no_auth_data_reqd This needs to be set so that the MIT KDC >= 1.20 will not call the handle_pac() function which executes the issue_pac KDB callback. Pair-Programmed-With: Alexander Bokovoy Signed-off-by: Alexander Bokovoy Signed-off-by: Andreas Schneider Reviewed-by: Stefan Metzmacher --- diff --git a/source4/kdc/sdb_to_kdb.c b/source4/kdc/sdb_to_kdb.c index 2981f180333..4aefefa4096 100644 --- a/source4/kdc/sdb_to_kdb.c +++ b/source4/kdc/sdb_to_kdb.c @@ -86,6 +86,9 @@ static int SDBFlags_to_kflags(const struct SDBFlags *s, if (s->allow_digest) { ; } + if (s->no_auth_data_reqd) { + *k |= KRB5_KDB_NO_AUTH_DATA_REQUIRED; + } return 0; }