Fix to use modified cli_rpc_pipe_open_schannel_with_key API
authorAndrew Bartlett <abartlet@samba.org>
Mon, 20 Apr 2009 15:04:33 +0000 (17:04 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 20 Apr 2009 15:04:33 +0000 (17:04 +0200)
source3/utils/net_rpc_join.c
source3/winbindd/winbindd_cm.c

index 78bbce3dfc02830ed2184df799d2bf09ccc1e6e7..c2e3630641ae52dec2d865decd97089d40ce6b16 100644 (file)
@@ -417,7 +417,7 @@ int net_rpc_join_newstyle(struct net_context *c, int argc, const char **argv)
 
                result = cli_rpc_pipe_open_schannel_with_key(
                        cli, &ndr_table_netlogon.syntax_id,
-                       PIPE_AUTH_LEVEL_PRIVACY, domain, pipe_hnd->dc,
+                       PIPE_AUTH_LEVEL_PRIVACY, domain, &pipe_hnd->dc,
                        &netlogon_schannel_pipe);
 
                if (!NT_STATUS_IS_OK(result)) {
index e9cf05e90b7d639df3389756a5607386fce30fea..9cf45975958864aa4c128a9b6f6bb19cd0e431ee 100644 (file)
@@ -2227,7 +2227,7 @@ NTSTATUS cm_connect_lsa(struct winbindd_domain *domain, TALLOC_CTX *mem_ctx,
        result = cli_rpc_pipe_open_schannel_with_key
                (conn->cli, &ndr_table_lsarpc.syntax_id,
                 PIPE_AUTH_LEVEL_PRIVACY,
-                domain->name, p_creds, &conn->lsa_pipe);
+                domain->name, &p_creds, &conn->lsa_pipe);
 
        if (!NT_STATUS_IS_OK(result)) {
                DEBUG(10,("cm_connect_lsa: failed to connect to LSA pipe for "
@@ -2373,7 +2373,7 @@ NTSTATUS cm_connect_netlogon(struct winbindd_domain *domain,
 
        result = cli_rpc_pipe_open_schannel_with_key(
                conn->cli, &ndr_table_netlogon.syntax_id,
-               PIPE_AUTH_LEVEL_PRIVACY, domain->name, netlogon_pipe->dc,
+               PIPE_AUTH_LEVEL_PRIVACY, domain->name, &netlogon_pipe->dc,
                &conn->netlogon_pipe);
 
        /* We can now close the initial netlogon pipe. */