[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-2223-g192ffa3

Günther Deschner gd at samba.org
Fri Apr 25 12:50:44 GMT 2008


The branch, v3-2-test has been updated
       via  192ffa3835c407d5603f47c1633a075869daae01 (commit)
       via  b11a5e70d38239fb50ba4606656e2168cc398a12 (commit)
      from  a47abfa9276765164870bd7541798ff1201379b1 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -----------------------------------------------------------------
commit 192ffa3835c407d5603f47c1633a075869daae01
Author: Günther Deschner <gd at samba.org>
Date:   Fri Apr 25 14:49:02 2008 +0200

    IDL: Add autogenerated drsuapi files.
    
    Guenther

commit b11a5e70d38239fb50ba4606656e2168cc398a12
Author: Günther Deschner <gd at samba.org>
Date:   Thu Apr 24 22:19:23 2008 +0200

    errors: add WERR_INVALID_DOMAINNAME.
    
    Guenther

-----------------------------------------------------------------------

Summary of changes:
 source/include/doserr.h             |    1 +
 source/librpc/gen_ndr/cli_drsuapi.c | 1191 +++
 source/librpc/gen_ndr/cli_drsuapi.h |  143 +
 source/librpc/gen_ndr/drsuapi.h     | 1618 ++++
 source/librpc/gen_ndr/ndr_drsuapi.c |13877 +++++++++++++++++++++++++++++++++++
 source/librpc/gen_ndr/ndr_drsuapi.h |  281 +
 source/libsmb/doserr.c              |    1 +
 7 files changed, 17112 insertions(+), 0 deletions(-)
 create mode 100644 source/librpc/gen_ndr/cli_drsuapi.c
 create mode 100644 source/librpc/gen_ndr/cli_drsuapi.h
 create mode 100644 source/librpc/gen_ndr/drsuapi.h
 create mode 100644 source/librpc/gen_ndr/ndr_drsuapi.c
 create mode 100644 source/librpc/gen_ndr/ndr_drsuapi.h


Changeset truncated at 500 lines:

diff --git a/source/include/doserr.h b/source/include/doserr.h
index 65892d3..d4fefb2 100644
--- a/source/include/doserr.h
+++ b/source/include/doserr.h
@@ -203,6 +203,7 @@
 #define WERR_SERVICE_DISABLED W_ERROR(1058)
 #define WERR_SERVICE_NEVER_STARTED W_ERROR(1077)
 #define WERR_INVALID_COMPUTER_NAME W_ERROR(1210)
+#define WERR_INVALID_DOMAINNAME W_ERROR(1212)
 #define WERR_MACHINE_LOCKED W_ERROR(1271)
 #define WERR_NO_LOGON_SERVERS W_ERROR(1311)
 #define WERR_NO_SUCH_LOGON_SESSION W_ERROR(1312)
diff --git a/source/librpc/gen_ndr/cli_drsuapi.c b/source/librpc/gen_ndr/cli_drsuapi.c
new file mode 100644
index 0000000..3e2605a
--- /dev/null
+++ b/source/librpc/gen_ndr/cli_drsuapi.c
@@ -0,0 +1,1191 @@
+/*
+ * Unix SMB/CIFS implementation.
+ * client auto-generated by pidl. DO NOT MODIFY!
+ */
+
+#include "includes.h"
+#include "librpc/gen_ndr/cli_drsuapi.h"
+
+NTSTATUS rpccli_drsuapi_DsBind(struct rpc_pipe_client *cli,
+			       TALLOC_CTX *mem_ctx,
+			       struct GUID *bind_guid /* [in] [unique] */,
+			       struct drsuapi_DsBindInfoCtr *bind_info /* [in,out] [unique] */,
+			       struct policy_handle *bind_handle /* [out] [ref] */,
+			       WERROR *werror)
+{
+	struct drsuapi_DsBind r;
+	NTSTATUS status;
+
+	/* In parameters */
+	r.in.bind_guid = bind_guid;
+	r.in.bind_info = bind_info;
+
+	if (DEBUGLEVEL >= 10) {
+		NDR_PRINT_IN_DEBUG(drsuapi_DsBind, &r);
+	}
+
+	status = cli_do_rpc_ndr(cli,
+				mem_ctx,
+				PI_DRSUAPI,
+				&ndr_table_drsuapi,
+				NDR_DRSUAPI_DSBIND,
+				&r);
+
+	if (!NT_STATUS_IS_OK(status)) {
+		return status;
+	}
+
+	if (DEBUGLEVEL >= 10) {
+		NDR_PRINT_OUT_DEBUG(drsuapi_DsBind, &r);
+	}
+
+	if (NT_STATUS_IS_ERR(status)) {
+		return status;
+	}
+
+	/* Return variables */
+	if (bind_info && r.out.bind_info) {
+		*bind_info = *r.out.bind_info;
+	}
+	*bind_handle = *r.out.bind_handle;
+
+	/* Return result */
+	if (werror) {
+		*werror = r.out.result;
+	}
+
+	return werror_to_ntstatus(r.out.result);
+}
+
+NTSTATUS rpccli_drsuapi_DsUnbind(struct rpc_pipe_client *cli,
+				 TALLOC_CTX *mem_ctx,
+				 struct policy_handle *bind_handle /* [in,out] [ref] */,
+				 WERROR *werror)
+{
+	struct drsuapi_DsUnbind r;
+	NTSTATUS status;
+
+	/* In parameters */
+	r.in.bind_handle = bind_handle;
+
+	if (DEBUGLEVEL >= 10) {
+		NDR_PRINT_IN_DEBUG(drsuapi_DsUnbind, &r);
+	}
+
+	status = cli_do_rpc_ndr(cli,
+				mem_ctx,
+				PI_DRSUAPI,
+				&ndr_table_drsuapi,
+				NDR_DRSUAPI_DSUNBIND,
+				&r);
+
+	if (!NT_STATUS_IS_OK(status)) {
+		return status;
+	}
+
+	if (DEBUGLEVEL >= 10) {
+		NDR_PRINT_OUT_DEBUG(drsuapi_DsUnbind, &r);
+	}
+
+	if (NT_STATUS_IS_ERR(status)) {
+		return status;
+	}
+
+	/* Return variables */
+	*bind_handle = *r.out.bind_handle;
+
+	/* Return result */
+	if (werror) {
+		*werror = r.out.result;
+	}
+
+	return werror_to_ntstatus(r.out.result);
+}
+
+NTSTATUS rpccli_drsuapi_DsReplicaSync(struct rpc_pipe_client *cli,
+				      TALLOC_CTX *mem_ctx,
+				      struct policy_handle *bind_handle /* [in] [ref] */,
+				      int32_t level /* [in]  */,
+				      union drsuapi_DsReplicaSyncRequest req /* [in] [switch_is(level)] */,
+				      WERROR *werror)
+{
+	struct drsuapi_DsReplicaSync r;
+	NTSTATUS status;
+
+	/* In parameters */
+	r.in.bind_handle = bind_handle;
+	r.in.level = level;
+	r.in.req = req;
+
+	if (DEBUGLEVEL >= 10) {
+		NDR_PRINT_IN_DEBUG(drsuapi_DsReplicaSync, &r);
+	}
+
+	status = cli_do_rpc_ndr(cli,
+				mem_ctx,
+				PI_DRSUAPI,
+				&ndr_table_drsuapi,
+				NDR_DRSUAPI_DSREPLICASYNC,
+				&r);
+
+	if (!NT_STATUS_IS_OK(status)) {
+		return status;
+	}
+
+	if (DEBUGLEVEL >= 10) {
+		NDR_PRINT_OUT_DEBUG(drsuapi_DsReplicaSync, &r);
+	}
+
+	if (NT_STATUS_IS_ERR(status)) {
+		return status;
+	}
+
+	/* Return variables */
+
+	/* Return result */
+	if (werror) {
+		*werror = r.out.result;
+	}
+
+	return werror_to_ntstatus(r.out.result);
+}
+
+NTSTATUS rpccli_drsuapi_DsGetNCChanges(struct rpc_pipe_client *cli,
+				       TALLOC_CTX *mem_ctx,
+				       struct policy_handle *bind_handle /* [in] [ref] */,
+				       int32_t *level /* [in,out] [ref] */,
+				       union drsuapi_DsGetNCChangesRequest *req /* [in] [ref,switch_is(*level)] */,
+				       union drsuapi_DsGetNCChangesCtr *ctr /* [out] [ref,switch_is(*level)] */,
+				       WERROR *werror)
+{
+	struct drsuapi_DsGetNCChanges r;
+	NTSTATUS status;
+
+	/* In parameters */
+	r.in.bind_handle = bind_handle;
+	r.in.level = level;
+	r.in.req = req;
+
+	if (DEBUGLEVEL >= 10) {
+		NDR_PRINT_IN_DEBUG(drsuapi_DsGetNCChanges, &r);
+	}
+
+	status = cli_do_rpc_ndr(cli,
+				mem_ctx,
+				PI_DRSUAPI,
+				&ndr_table_drsuapi,
+				NDR_DRSUAPI_DSGETNCCHANGES,
+				&r);
+
+	if (!NT_STATUS_IS_OK(status)) {
+		return status;
+	}
+
+	if (DEBUGLEVEL >= 10) {
+		NDR_PRINT_OUT_DEBUG(drsuapi_DsGetNCChanges, &r);
+	}
+
+	if (NT_STATUS_IS_ERR(status)) {
+		return status;
+	}
+
+	/* Return variables */
+	*level = *r.out.level;
+	*ctr = *r.out.ctr;
+
+	/* Return result */
+	if (werror) {
+		*werror = r.out.result;
+	}
+
+	return werror_to_ntstatus(r.out.result);
+}
+
+NTSTATUS rpccli_drsuapi_DsReplicaUpdateRefs(struct rpc_pipe_client *cli,
+					    TALLOC_CTX *mem_ctx,
+					    struct policy_handle *bind_handle /* [in] [ref] */,
+					    int32_t level /* [in]  */,
+					    union drsuapi_DsReplicaUpdateRefsRequest req /* [in] [switch_is(level)] */,
+					    WERROR *werror)
+{
+	struct drsuapi_DsReplicaUpdateRefs r;
+	NTSTATUS status;
+
+	/* In parameters */
+	r.in.bind_handle = bind_handle;
+	r.in.level = level;
+	r.in.req = req;
+
+	if (DEBUGLEVEL >= 10) {
+		NDR_PRINT_IN_DEBUG(drsuapi_DsReplicaUpdateRefs, &r);
+	}
+
+	status = cli_do_rpc_ndr(cli,
+				mem_ctx,
+				PI_DRSUAPI,
+				&ndr_table_drsuapi,
+				NDR_DRSUAPI_DSREPLICAUPDATEREFS,
+				&r);
+
+	if (!NT_STATUS_IS_OK(status)) {
+		return status;
+	}
+
+	if (DEBUGLEVEL >= 10) {
+		NDR_PRINT_OUT_DEBUG(drsuapi_DsReplicaUpdateRefs, &r);
+	}
+
+	if (NT_STATUS_IS_ERR(status)) {
+		return status;
+	}
+
+	/* Return variables */
+
+	/* Return result */
+	if (werror) {
+		*werror = r.out.result;
+	}
+
+	return werror_to_ntstatus(r.out.result);
+}
+
+NTSTATUS rpccli_DRSUAPI_REPLICA_ADD(struct rpc_pipe_client *cli,
+				    TALLOC_CTX *mem_ctx,
+				    WERROR *werror)
+{
+	struct DRSUAPI_REPLICA_ADD r;
+	NTSTATUS status;
+
+	/* In parameters */
+
+	if (DEBUGLEVEL >= 10) {
+		NDR_PRINT_IN_DEBUG(DRSUAPI_REPLICA_ADD, &r);
+	}
+
+	status = cli_do_rpc_ndr(cli,
+				mem_ctx,
+				PI_DRSUAPI,
+				&ndr_table_drsuapi,
+				NDR_DRSUAPI_REPLICA_ADD,
+				&r);
+
+	if (!NT_STATUS_IS_OK(status)) {
+		return status;
+	}
+
+	if (DEBUGLEVEL >= 10) {
+		NDR_PRINT_OUT_DEBUG(DRSUAPI_REPLICA_ADD, &r);
+	}
+
+	if (NT_STATUS_IS_ERR(status)) {
+		return status;
+	}
+
+	/* Return variables */
+
+	/* Return result */
+	if (werror) {
+		*werror = r.out.result;
+	}
+
+	return werror_to_ntstatus(r.out.result);
+}
+
+NTSTATUS rpccli_DRSUAPI_REPLICA_DEL(struct rpc_pipe_client *cli,
+				    TALLOC_CTX *mem_ctx,
+				    WERROR *werror)
+{
+	struct DRSUAPI_REPLICA_DEL r;
+	NTSTATUS status;
+
+	/* In parameters */
+
+	if (DEBUGLEVEL >= 10) {
+		NDR_PRINT_IN_DEBUG(DRSUAPI_REPLICA_DEL, &r);
+	}
+
+	status = cli_do_rpc_ndr(cli,
+				mem_ctx,
+				PI_DRSUAPI,
+				&ndr_table_drsuapi,
+				NDR_DRSUAPI_REPLICA_DEL,
+				&r);
+
+	if (!NT_STATUS_IS_OK(status)) {
+		return status;
+	}
+
+	if (DEBUGLEVEL >= 10) {
+		NDR_PRINT_OUT_DEBUG(DRSUAPI_REPLICA_DEL, &r);
+	}
+
+	if (NT_STATUS_IS_ERR(status)) {
+		return status;
+	}
+
+	/* Return variables */
+
+	/* Return result */
+	if (werror) {
+		*werror = r.out.result;
+	}
+
+	return werror_to_ntstatus(r.out.result);
+}
+
+NTSTATUS rpccli_DRSUAPI_REPLICA_MODIFY(struct rpc_pipe_client *cli,
+				       TALLOC_CTX *mem_ctx,
+				       WERROR *werror)
+{
+	struct DRSUAPI_REPLICA_MODIFY r;
+	NTSTATUS status;
+
+	/* In parameters */
+
+	if (DEBUGLEVEL >= 10) {
+		NDR_PRINT_IN_DEBUG(DRSUAPI_REPLICA_MODIFY, &r);
+	}
+
+	status = cli_do_rpc_ndr(cli,
+				mem_ctx,
+				PI_DRSUAPI,
+				&ndr_table_drsuapi,
+				NDR_DRSUAPI_REPLICA_MODIFY,
+				&r);
+
+	if (!NT_STATUS_IS_OK(status)) {
+		return status;
+	}
+
+	if (DEBUGLEVEL >= 10) {
+		NDR_PRINT_OUT_DEBUG(DRSUAPI_REPLICA_MODIFY, &r);
+	}
+
+	if (NT_STATUS_IS_ERR(status)) {
+		return status;
+	}
+
+	/* Return variables */
+
+	/* Return result */
+	if (werror) {
+		*werror = r.out.result;
+	}
+
+	return werror_to_ntstatus(r.out.result);
+}
+
+NTSTATUS rpccli_DRSUAPI_VERIFY_NAMES(struct rpc_pipe_client *cli,
+				     TALLOC_CTX *mem_ctx,
+				     WERROR *werror)
+{
+	struct DRSUAPI_VERIFY_NAMES r;
+	NTSTATUS status;
+
+	/* In parameters */
+
+	if (DEBUGLEVEL >= 10) {
+		NDR_PRINT_IN_DEBUG(DRSUAPI_VERIFY_NAMES, &r);
+	}
+
+	status = cli_do_rpc_ndr(cli,
+				mem_ctx,
+				PI_DRSUAPI,
+				&ndr_table_drsuapi,
+				NDR_DRSUAPI_VERIFY_NAMES,
+				&r);
+
+	if (!NT_STATUS_IS_OK(status)) {
+		return status;
+	}
+
+	if (DEBUGLEVEL >= 10) {
+		NDR_PRINT_OUT_DEBUG(DRSUAPI_VERIFY_NAMES, &r);
+	}
+
+	if (NT_STATUS_IS_ERR(status)) {
+		return status;
+	}
+
+	/* Return variables */
+
+	/* Return result */
+	if (werror) {
+		*werror = r.out.result;
+	}
+
+	return werror_to_ntstatus(r.out.result);
+}
+
+NTSTATUS rpccli_drsuapi_DsGetMemberships(struct rpc_pipe_client *cli,
+					 TALLOC_CTX *mem_ctx,
+					 struct policy_handle *bind_handle /* [in] [ref] */,
+					 int32_t level /* [in]  */,
+					 union drsuapi_DsGetMembershipsRequest *req /* [in] [ref,switch_is(level)] */,
+					 int32_t *level_out /* [out] [ref] */,
+					 union drsuapi_DsGetMembershipsCtr *ctr /* [out] [ref,switch_is(*level_out)] */,
+					 WERROR *werror)
+{
+	struct drsuapi_DsGetMemberships r;
+	NTSTATUS status;
+
+	/* In parameters */
+	r.in.bind_handle = bind_handle;
+	r.in.level = level;
+	r.in.req = req;
+
+	if (DEBUGLEVEL >= 10) {
+		NDR_PRINT_IN_DEBUG(drsuapi_DsGetMemberships, &r);
+	}
+
+	status = cli_do_rpc_ndr(cli,
+				mem_ctx,
+				PI_DRSUAPI,
+				&ndr_table_drsuapi,
+				NDR_DRSUAPI_DSGETMEMBERSHIPS,
+				&r);
+
+	if (!NT_STATUS_IS_OK(status)) {
+		return status;
+	}
+
+	if (DEBUGLEVEL >= 10) {
+		NDR_PRINT_OUT_DEBUG(drsuapi_DsGetMemberships, &r);
+	}
+
+	if (NT_STATUS_IS_ERR(status)) {
+		return status;
+	}
+
+	/* Return variables */
+	*level_out = *r.out.level_out;
+	*ctr = *r.out.ctr;
+
+	/* Return result */
+	if (werror) {
+		*werror = r.out.result;
+	}
+
+	return werror_to_ntstatus(r.out.result);
+}
+
+NTSTATUS rpccli_DRSUAPI_INTER_DOMAIN_MOVE(struct rpc_pipe_client *cli,
+					  TALLOC_CTX *mem_ctx,
+					  WERROR *werror)
+{
+	struct DRSUAPI_INTER_DOMAIN_MOVE r;
+	NTSTATUS status;
+
+	/* In parameters */
+
+	if (DEBUGLEVEL >= 10) {
+		NDR_PRINT_IN_DEBUG(DRSUAPI_INTER_DOMAIN_MOVE, &r);


-- 
Samba Shared Repository


More information about the samba-cvs mailing list