1 /* packet-dcerpc-drsuapi.c
2 * Routines for the drsuapi (Directory Replication Service) MSRPC interface
3 * Copyright 2003 Jean-Baptiste Marchand <jbm@hsc.fr>
5 * $Id: packet-dcerpc-drsuapi.c,v 1.1 2003/09/20 08:56:56 guy Exp $
7 * Ethereal - Network traffic analyzer
8 * By Gerald Combs <gerald@ethereal.com>
9 * Copyright 1998 Gerald Combs
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License
13 * as published by the Free Software Foundation; either version 2
14 * of the License, or (at your option) any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
32 #include <epan/packet.h>
33 #include "packet-dcerpc.h"
34 #include "packet-dcerpc-drsuapi.h"
36 static int proto_dcerpc_drsuapi = -1;
38 static int hf_drsuapi_opnum = 0;
40 static gint ett_dcerpc_drsuapi = -1;
43 IDL [ uuid(e3514235-4b06-11d1-ab04-00c04fc2dcd2),
45 IDL implicit_handle(handle_t rpc_binding)
46 IDL ] interface drsuapi
49 static e_uuid_t uuid_dcerpc_drsuapi = {
50 0xe3514235, 0x4b06, 0x11d1,
51 { 0xab, 0x04, 0x00, 0xc0, 0x4f, 0xc2, 0xdc, 0xd2 }
54 static guint16 ver_dcerpc_drsuapi = 4;
57 static dcerpc_sub_dissector dcerpc_drsuapi_dissectors[] = {
58 { DRSUAPI_BIND, "DRSBind", NULL, NULL},
59 { DRSUAPI_UNBIND, "DRSUnbind", NULL, NULL},
60 { DRSUAPI_REPLICA_SYNC, "DRSReplicaSync", NULL, NULL},
61 { DRSUAPI_GET_NC_CHANGES, "DRSGetNCChanges", NULL, NULL},
62 { DRSUAPI_UPDATE_REFS, "DRSUpdateRefs", NULL, NULL},
63 { DRSUAPI_REPLICA_ADD, "DRSReplicaAdd", NULL, NULL},
64 { DRSUAPI_REPLICA_DEL, "DRSReplicaDel", NULL, NULL},
65 { DRSUAPI_REPLICA_MODIFY, "DRSReplicaModify", NULL, NULL},
66 { DRSUAPI_VERIFY_NAMES, "DRSVerifyNames", NULL, NULL},
67 { DRSUAPI_GET_MEMBERSHIPS, "DRSGetMemberships", NULL, NULL},
68 { DRSUAPI_INTER_DOMAIN_MOVE, "DRSInterDomainMove", NULL, NULL},
69 { DRSUAPI_GET_NT4_CHANGELOG, "DRSGetNT4ChangeLog", NULL, NULL},
70 { DRSUAPI_CRACKNAMES, "DRSCrackNames", NULL, NULL},
71 { DRSUAPI_WRITE_SPN, "DRSWriteSPN", NULL, NULL},
72 { DRSUAPI_REMOVE_DS_SERVER, "DRSRemoveDsServer", NULL, NULL},
73 { DRSUAPI_REMOVE_DS_DOMAIN, "DRSRemoveDsDomain", NULL, NULL},
74 { DRSUAPI_DOMAIN_CONTROLLER_INFO, "DRSDomainControllerInfo", NULL, NULL},
75 { DRSUAPI_ADD_ENTRY, "DRSAddEntry", NULL, NULL},
76 { DRSUAPI_EXECUTE_KCC, "DRSExecuteKCC", NULL, NULL},
77 { DRSUAPI_GET_REPL_INFO, "DRSGetReplInfo", NULL, NULL},
78 { DRSUAPI_ADD_SID_HISTORY, "DRSAddSidHistory", NULL, NULL},
79 { DRSUAPI_GET_MEMBERSHIPS2, "DRSGetMemberships2", NULL, NULL},
80 { DRSUAPI_REPLICA_VERIFY_OBJECTS, "DRSReplicaVerifyObjects", NULL, NULL},
81 { DRSUAPI_GET_OBJECT_EXISTENCE, "DRSGetObjectExistence", NULL, NULL},
82 { DRSUAPI_QUERY_SITES_BY_COST, "DRSQuerySitesByCost", NULL, NULL},
83 { 0, NULL, NULL, NULL }
88 proto_register_dcerpc_drsuapi(void)
91 static hf_register_info hf[] = {
94 { "Operation", "drsuapi.opnum", FT_UINT16, BASE_DEC,
95 NULL, 0x0, "Operation", HFILL }},
99 static gint *ett[] = {
104 proto_dcerpc_drsuapi = proto_register_protocol(
105 "Microsoft Directory Replication Service", "DRSUAPI", "drsuapi");
107 proto_register_field_array(proto_dcerpc_drsuapi, hf, array_length(hf));
109 proto_register_subtree_array(ett, array_length(ett));
115 proto_reg_handoff_dcerpc_drsuapi(void)
117 /* register protocol as dcerpc */
120 proto_dcerpc_drsuapi, ett_dcerpc_drsuapi, &uuid_dcerpc_drsuapi,
121 ver_dcerpc_drsuapi, dcerpc_drsuapi_dissectors, hf_drsuapi_opnum);