A few changes:
[samba.git] / source / include / session.h
1 /* 
2    Unix SMB/Netbios implementation.
3    Version 2.0
4    session handling for recording currently vailid vuids
5    Copyright (C) tridge@samba.org 2001
6    Copyright (C) Andew Bartlett <abartlet@samba.org> 2001
7    
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.
12    
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.
17    
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.
21 */
22
23 /* a "session" is claimed when we do a SessionSetupX operation
24    and is yielded when the corresponding vuid is destroyed.
25
26    sessions are used to populate utmp and PAM session structures
27 */
28
29 struct sessionid {
30         uid_t uid;
31         gid_t gid;
32         fstring username;
33         fstring hostname;
34         fstring netbios_name;
35         fstring remote_machine;
36         fstring id_str;
37         uint32  id_num;
38         uint32  pid;
39         fstring ip_addr;
40 };
41