status = cli_rpc_pipe_open_schannel_with_key(
cli, &ndr_table_netlogon, NCACN_NP,
- DCERPC_AUTH_LEVEL_PRIVACY,
netbios_domain_name,
netlogon_pipe->netlogon_creds, &pipe_hnd);
NTSTATUS cli_rpc_pipe_open_schannel_with_key(struct cli_state *cli,
const struct ndr_interface_table *table,
enum dcerpc_transport_t transport,
- enum dcerpc_AuthLevel auth_level,
const char *domain,
struct netlogon_creds_cli_context *netlogon_creds,
struct rpc_pipe_client **_rpccli)
struct rpc_pipe_client *rpccli;
struct pipe_auth_data *rpcauth;
struct netlogon_creds_CredentialState *creds = NULL;
+ enum dcerpc_AuthLevel auth_level;
NTSTATUS status;
const char *target_service = table->authservices->names[0];
int rpc_pipe_bind_dbglvl = 0;
return status;
}
+ auth_level = netlogon_creds_cli_auth_level(netlogon_creds);
+
status = rpccli_generic_bind_data(rpccli,
DCERPC_AUTH_TYPE_SCHANNEL,
auth_level,
NTSTATUS cli_rpc_pipe_open_schannel_with_key(struct cli_state *cli,
const struct ndr_interface_table *table,
enum dcerpc_transport_t transport,
- enum dcerpc_AuthLevel auth_level,
const char *domain,
struct netlogon_creds_cli_context *netlogon_creds,
struct rpc_pipe_client **presult);
}
status = cli_rpc_pipe_open_schannel_with_key(
- cli, table, transport, auth_level, domain,
+ cli, table, transport, domain,
netlogon_pipe->netlogon_creds,
&result);
}
status = cli_rpc_pipe_open_schannel_with_key
(conn->cli, &ndr_table_samr, NCACN_NP,
- DCERPC_AUTH_LEVEL_PRIVACY,
domain->name, p_creds, &conn->samr_pipe);
if (!NT_STATUS_IS_OK(status)) {
status = cli_rpc_pipe_open_schannel_with_key(conn->cli,
&ndr_table_lsarpc,
NCACN_IP_TCP,
- DCERPC_AUTH_LEVEL_PRIVACY,
domain->name,
creds,
&conn->lsa_pipe_tcp);
}
result = cli_rpc_pipe_open_schannel_with_key
(conn->cli, &ndr_table_lsarpc, NCACN_NP,
- DCERPC_AUTH_LEVEL_PRIVACY,
domain->name, p_creds, &conn->lsa_pipe);
if (!NT_STATUS_IS_OK(result)) {
result = cli_rpc_pipe_open_schannel_with_key(
conn->cli, &ndr_table_netlogon, NCACN_NP,
- DCERPC_AUTH_LEVEL_PRIVACY, domain->name,
+ domain->name,
netlogon_pipe->netlogon_creds,
&conn->netlogon_pipe);