preparing for release of alpha.0.8
[Samba.git] / source / include / rpc_creds.h
blob2b897da67919f1f2daffcfa55a97d45f6013cb7f
1 /*
2 Unix SMB/Netbios implementation.
3 Version 1.9.
4 SMB parameters and setup
5 Copyright (C) Andrew Tridgell 1992-1999
6 Copyright (C) Luke Kenneth Casson Leighton 1996-1999
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 #ifndef _RPC_CREDS_H /* _RPC_CREDS_H */
24 #define _RPC_CREDS_H
26 typedef struct ntuser_creds
28 fstring user_name;
29 fstring domain;
30 struct pwd_info pwd;
32 uint32 ntlmssp_flags;
34 } CREDS_NT;
36 typedef struct unixuser_creds
38 fstring user_name;
39 fstring requested_name;
40 fstring real_name;
41 uint32 guest;
43 } CREDS_UNIX;
45 typedef struct unixsec_creds
47 uint32 uid;
48 uint32 gid;
49 uint32 num_grps;
50 uint32 *grps;
52 } CREDS_UNIX_SEC;
54 typedef struct user_creds
56 BOOL reuse;
58 uint32 ptr_ntc;
59 uint32 ptr_uxc;
60 uint32 ptr_nts;
61 uint32 ptr_uxs;
63 CREDS_NT ntc;
64 CREDS_UNIX uxc;
66 NET_USER_INFO_3 nts;
67 CREDS_UNIX_SEC uxs;
69 } CREDS_HYBRID;
71 typedef struct smbd_creds
73 CREDS_HYBRID cred;
74 CREDS_SUBST smbd;
76 } CREDS_SMBD;
78 typedef struct cred_command
80 uint16 version;
81 uint16 command;
83 vuser_key key;
85 fstring name;
87 uint32 ptr_creds;
88 CREDS_HYBRID *cred;
90 } CREDS_CMD;
92 #endif /* _RPC_CREDS_H */