r10561: This patch takes over KDC socket routines in Heimdal, and directs them
authorAndrew Bartlett <abartlet@samba.org>
Wed, 28 Sep 2005 01:09:10 +0000 (01:09 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:39:04 +0000 (13:39 -0500)
commit3b09f9e8f9f6f645cd03073ef833c8d0fb0d84e2
treec5ac7ea8ab8eee08b2acf3038dfed4fa407f55a0
parentff1272347739696dcdf2fd191b8f47ca82c205de
r10561: This patch takes over KDC socket routines in Heimdal, and directs them
at the Samba4 socket layer.

The intention here is to ensure that other events may be processed while
heimdal is waiting on the KDC.  The interface is designed to be
sufficiently flexible, so that the plugin may choose how to time
communication with the KDC (ie multiple outstanding requests, looking
for a functional KDC).

I've hacked the socket layer out of cldap.c to handle this very
specific case of one udp packet and reply.  Likewise I also handle
TCP, stolen from the winbind code.

This same plugin system might also be useful for a self-contained
testing mode in Heimdal, in conjunction with libkdc.  I would suggest
using socket-wrapper instead however.

Andrew Bartlett
source/auth/kerberos/krb5_init_context.c
source/heimdal/lib/krb5/context.c
source/heimdal/lib/krb5/krb5-protos.h
source/heimdal/lib/krb5/krb5.h
source/heimdal/lib/krb5/send_to_kdc.c