summaryrefslogtreecommitdiff
path: root/source3/rpc_client/cli_samr.h
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2011-01-12 15:51:49 +0100
committerAndreas Schneider <asn@samba.org>2011-01-21 15:19:01 +0100
commit5db115a3041faee7c924cf26c1635f6028ae7df8 (patch)
tree7896f4dd5343fd701a7a3fe2b49ac0371009ef67 /source3/rpc_client/cli_samr.h
parent089c25cbbb44547bbb03d54ec4e2c1f5ebd10f86 (diff)
downloadsamba-5db115a3041faee7c924cf26c1635f6028ae7df8.tar.gz
samba-5db115a3041faee7c924cf26c1635f6028ae7df8.tar.bz2
samba-5db115a3041faee7c924cf26c1635f6028ae7df8.zip
s3-rpc_client: Added dcerpc_try_samr_connects.
Autobuild-User: Andreas Schneider <asn@samba.org> Autobuild-Date: Fri Jan 21 15:19:01 CET 2011 on sn-devel-104
Diffstat (limited to 'source3/rpc_client/cli_samr.h')
-rw-r--r--source3/rpc_client/cli_samr.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/source3/rpc_client/cli_samr.h b/source3/rpc_client/cli_samr.h
index 18e6328bba..76993fb7c8 100644
--- a/source3/rpc_client/cli_samr.h
+++ b/source3/rpc_client/cli_samr.h
@@ -193,6 +193,31 @@ void dcerpc_get_query_dispinfo_params(int loop_count,
uint32_t *max_entries,
uint32_t *max_size);
+/**
+ * @brief Try if we can connnect to samr.
+ *
+ * @param[in] h The dcerpc binding hanlde to use.
+ *
+ * @param[in] mem_ctx The memory context to use.
+ *
+ * @param[in] srv_name_slash The server name with leading slashes.
+ *
+ * @param[in] access_mask The access mask to use to open the connection.
+ *
+ * @param[in] connect_pol A pointer to store the policy handle for the
+ * connection.
+ *
+ * @param[out] presult A pointer for the NDR NTSTATUS error code.
+ *
+ * @return A corresponding NTSTATUS error code for the connection.
+ */
+NTSTATUS dcerpc_try_samr_connects(struct dcerpc_binding_handle *h,
+ TALLOC_CTX *mem_ctx,
+ const char *srv_name_slash,
+ uint32_t access_mask,
+ struct policy_handle *connect_pol,
+ NTSTATUS *presult);
+
NTSTATUS rpccli_try_samr_connects(struct rpc_pipe_client *cli,
TALLOC_CTX *mem_ctx,
uint32_t access_mask,