s4-credentials Add explicit event context handling to Kerberos calls (only)
authorAndrew Bartlett <abartlet@samba.org>
Mon, 11 Oct 2010 05:53:08 +0000 (16:53 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 11 Oct 2010 13:02:16 +0000 (13:02 +0000)
commit42127cdbb040a260c2c745e9114b600f2186794a
tree348783a93d8fd3efe162470678ae1cc128edb6f6
parent5cd9495fb3f74d8e896c81e5c060a1643722870e
s4-credentials Add explicit event context handling to Kerberos calls (only)

By setting the event context to use for this operation (only) onto
the krb5_context just before we call that operation, we can try
and emulate the specification of an event context to the actual send_to_kdc()

This eliminates the specification of an event context to many other
cli_credentials calls, and the last use of event_context_find()

Special care is taken to restore the event context in the event of
nesting in the send_to_kdc function.

Andrew Bartlett
14 files changed:
source4/auth/credentials/credentials.c
source4/auth/credentials/credentials.h
source4/auth/credentials/credentials_krb5.c
source4/auth/credentials/credentials_krb5.h
source4/auth/credentials/credentials_secrets.c
source4/auth/gensec/gensec_gssapi.c
source4/auth/gensec/gensec_krb5.c
source4/auth/kerberos/kerberos_credentials.h
source4/auth/kerberos/kerberos_util.c
source4/auth/kerberos/krb5_init_context.c
source4/auth/kerberos/krb5_init_context.h
source4/dsdb/samdb/samdb.c
source4/kdc/kpasswdd.c
source4/smbd/service_named_pipe.c