[GLUE] Rsync SAMBA_3_0 SVN r25598 in order to create the v3-0-test branch.
[Samba.git] / source / include / session.h
blob8c8faab53250695236eb5f4e506dfef4efa70039
1 /*
2 Unix SMB/CIFS implementation.
3 session handling for recording currently vailid vuids
5 Copyright (C) tridge@samba.org 2001
6 Copyright (C) Andew Bartlett <abartlet@samba.org> 2001
7 Copyright (C) Gerald (Jerry) Carter 2006
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 /* a "session" is claimed when we do a SessionSetupX operation
25 and is yielded when the corresponding vuid is destroyed.
27 sessions are used to populate utmp and PAM session structures
30 struct sessionid {
31 uid_t uid;
32 gid_t gid;
33 fstring username;
34 fstring hostname;
35 fstring netbios_name;
36 fstring remote_machine;
37 fstring id_str;
38 uint32 id_num;
39 uint32 pid;
40 fstring ip_addr;
41 time_t connect_start;