r23136: Set the event context onto the credentials in more places.
authorAndrew Bartlett <abartlet@samba.org>
Fri, 25 May 2007 08:44:33 +0000 (08:44 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:52:54 +0000 (14:52 -0500)
This helps ensure that the kerberos code uses the right event context.

Andrew Bartlett
(This used to be commit cbdce358ae8f86c9b76a50537b931e56b07ee213)

source4/auth/gensec/gensec_gssapi.c
source4/ntvfs/cifs/vfs_cifs.c

index b8040df7eb8c084766648c9e9ffd627915902d47..5596949edae5aa6c79b47c5418891f6c4017c7c0 100644 (file)
@@ -1342,6 +1342,7 @@ static NTSTATUS gensec_gssapi_session_info(struct gensec_security *gensec_securi
                        return NT_STATUS_NO_MEMORY;
                }
 
+               cli_credentials_set_event_context(session_info->credentials, gensec_security->event_ctx);
                cli_credentials_set_conf(session_info->credentials);
                /* Just so we don't segfault trying to get at a username */
                cli_credentials_set_anonymous(session_info->credentials);
index 94be3e886bd5f497ffdc1b74e3144c08202efed7..4e6be4c979896302912d09b8dc934ab25a5bd445 100644 (file)
@@ -165,6 +165,7 @@ static NTSTATUS cvfs_connect(struct ntvfs_module_context *ntvfs,
                if (!credentials) {
                        return NT_STATUS_NO_MEMORY;
                }
+               cli_credentials_set_event_context(credentials, ntvfs->ctx->event_ctx);
                cli_credentials_set_conf(credentials);
                cli_credentials_set_username(credentials, user, CRED_SPECIFIED);
                if (domain) {
@@ -174,6 +175,7 @@ static NTSTATUS cvfs_connect(struct ntvfs_module_context *ntvfs,
        } else if (machine_account) {
                DEBUG(5, ("CIFS backend: Using machine account\n"));
                credentials = cli_credentials_init(private);
+               cli_credentials_set_event_context(credentials, ntvfs->ctx->event_ctx);
                cli_credentials_set_conf(credentials);
                if (domain) {
                        cli_credentials_set_domain(credentials, domain, CRED_SPECIFIED);