2 Unix SMB/CIFS implementation.
5 Copyright (C) Jim McDonough (jmcd@us.ibm.com) 2003
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 #include "rpcclient.h"
26 static NTSTATUS
cmd_epm_map(struct cli_state
*cli
,
28 int argc
, const char **argv
)
30 EPM_HANDLE handle
, entry_handle
;
33 uint8 addr
[4] = {0,0,0,0};
35 /* need to allow all this stuff to be passed in, but
36 for now, it demonstrates the call */
37 struct uuid if_uuid
= {0xe3514235, 0x4b06, 0x11d1, \
40 0x4f, 0xc2, 0xdc, 0xd2 } },
41 syn_uuid
= {0x8a885d04, 0x1ceb, 0x11c9, \
44 0x2b, 0x10, 0x48, 0x60 } };
50 init_epm_floor_uuid(&floors
[0], if_uuid
, 4);
51 init_epm_floor_uuid(&floors
[1], syn_uuid
, 2);
52 init_epm_floor_rpc(&floors
[2]);
54 /* sample for netbios named pipe query
55 init_epm_floor_np(&floors[3], "\\PIPE\\lsass");
56 init_epm_floor_nb(&floors[4], "\\\\psflinux");
58 init_epm_floor_tcp(&floors
[3], 135);
59 init_epm_floor_ip(&floors
[4], addr
);
60 towers
= talloc(mem_ctx
, sizeof(EPM_TOWER
));
61 init_epm_tower(mem_ctx
, towers
, floors
, 5);
63 result
= cli_epm_map(cli
, mem_ctx
, &handle
, &towers
, &entry_handle
, &numtowers
);
68 struct cmd_set epm_commands
[] = {
72 { "map", RPC_RTYPE_NTSTATUS
, cmd_epm_map
, NULL
, PI_EPM
, "map endpoint", "" },