2 Unix SMB/Netbios implementation.
4 SMB parameters and setup
5 Copyright (C) Andrew Tridgell 1992-1997
6 Copyright (C) Luke Kenneth Casson Leighton 1996-1997
7 Copyright (C) Paul Ashton 1997
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2 of the License, or
12 (at your option) any later version.
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24 #ifndef _NT_DOMAIN_H /* _NT_DOMAIN_H */
31 /* miscellaneous structures / defines */
34 /* different dce/rpc pipes */
36 #include "rpc_netlogon.h"
39 #include "rpc_srvsvc.h"
40 #include "rpc_wkssvc.h"
43 * A bunch of stuff that was put into smb.h
44 * in the NTDOM branch - it didn't belong there.
49 struct mem_buf *data; /* memory buffer */
50 uint32 offset; /* offset currently being accessed in memory buffer */
51 uint8 align; /* data alignment */
52 BOOL io; /* parsing in or out of data stream */
58 connection_struct *conn;
60 BOOL open; /* open connection */
63 fstring pipe_srv_name;
65 prs_struct rhdr; /* output header */
66 prs_struct rdata; /* output data */
67 prs_struct rauth; /* output authentication verifier */
73 RPC_HDR_RESP hdr_resp;
75 RPC_AUTH_NTLMSSP_REQ ntlmssp_req;
76 RPC_AUTH_NTLMSSP_RESP ntlmssp_resp;
81 uint32 next_frag_start;
86 fstring acct_name; /* account name */
87 uint32 smb_userid; /* domain-relative RID */
94 void (*fn) (int uid, prs_struct*, prs_struct*);
99 /* array memory offsets */
106 BOOL dynamic; /* True iff data has been dynamically allocated
107 (and therefore can be freed) */
112 uint32 margin; /* safety margin when reallocing. */
113 /* this can be abused quite nicely */
114 uint8 align; /* alignment of data structures (smb, dce/rpc, udp etc) */
116 struct mem_desc offset;
118 struct mem_buf *next;
128 #endif /* _NT_DOMAIN_H */