kdc: Preserve error code from Pre Authentication .validate hook
commit95256a612961939f09ab2cfd72cd93c411a9673f
authorAndrew Bartlett <abartlet@samba.org>
Thu, 18 Dec 2014 03:15:17 +0000 (18 16:15 +1300)
committerNicolas Williams <nico@cryptonector.com>
Wed, 17 Jun 2015 22:41:25 +0000 (17 17:41 -0500)
tree9506d47b05e2287ef108f6aedb094656f8f7073b
parent960fa481bedbe8485b1be18ba7b61481eeff32ed
kdc: Preserve error code from Pre Authentication .validate hook

This is required to ensure the client still gets errors like KRB5KDC_ERR_PREAUTH_FAILED, rather than
KRB5KDC_ERR_PREAUTH_REQUIRED, which become a confusing KRB5_GET_IN_TKT_LOOP.

Andrew Bartlett

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Pair-programmed-with: Garming Sam <garming@catalyst.net.nz>
Signed-off-by: Garming Sam <garming@catalyst.net.nz>
kdc/kerberos5.c