s4-kdc: restore MIT KDC backend
authorPhilipp Gesang <philipp.gesang@intra2net.com>
Mon, 5 Nov 2018 14:54:35 +0000 (15:54 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 9 Nov 2018 16:52:30 +0000 (17:52 +0100)
commitf8f2c5620c0a45f4ffc3a09ed1f72b4e7afa8763
tree82f43f4c7974a091d7ab52e19fc76660846864b8
parentf21bc3addaafc857f0645378d4635d91c620c2f9
s4-kdc: restore MIT KDC backend

Fix fallout from the KDC prefork patchset (99aea42520fc..).

GCC warns when Samba is being built with --with-system-mitkrb5.
Fix this by adapting the signature of mitkdc_task_init() to match
task_init which has been extended to return a status code.

Status codes try to mimick those of kdc-heimdal.c:kdc_task_init()
as closely as possible.

Signed-off-by: Philipp Gesang <philipp.gesang@intra2net.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
source4/kdc/kdc-service-mit.c
source4/kdc/kdc-service-mit.h