const struct ndr_syntax_id *syntax,
const struct ndr_syntax_id *transfer_syntax);
-NTSTATUS dcerpc_bind_auth(struct dcerpc_pipe *p,
- const struct ndr_interface_table *table,
- struct cli_credentials *credentials,
- struct gensec_settings *gensec_settings,
- uint8_t auth_type, uint8_t auth_level,
- const char *service);
struct composite_context* dcerpc_pipe_connect_send(TALLOC_CTX *parent_ctx,
const char *binding,
const struct ndr_interface_table *table,
talloc_free(creq);
return result;
}
-
-
-/**
- Perform a GENSEC authenticated bind to a DCE/RPC pipe, sync
- @param p The dcerpc_pipe to bind (must already be connected)
- @param table The interface table to use (the DCE/RPC bind both selects and interface and authenticates)
- @param credentials The credentials of the account to connect with
- @param auth_type Select the authentication scheme to use
- @param auth_level Chooses between unprotected (connect), signed or sealed
- @param service The service (used by Kerberos to select the service principal to contact)
- @retval NTSTATUS status code
-*/
-
-_PUBLIC_ NTSTATUS dcerpc_bind_auth(struct dcerpc_pipe *p,
- const struct ndr_interface_table *table,
- struct cli_credentials *credentials,
- struct gensec_settings *gensec_settings,
- uint8_t auth_type, uint8_t auth_level,
- const char *service)
-{
- struct composite_context *creq;
- creq = dcerpc_bind_auth_send(p, p, table, credentials, gensec_settings,
- auth_type, auth_level, service);
- return dcerpc_bind_auth_recv(creq);
-}