s3:libsmb: move cli->pid to cli->smb1.pid and hide it behind cli_[g|s]etpid()
[Samba/gebeck_regimport.git] / source3 / include / session.h
blob2aca1df94d7dd0eb7e2c83ff648eb9e2e94836cf
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 3 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, see <http://www.gnu.org/licenses/>.
23 /* a "session" is claimed when we do a SessionSetupX operation
24 and is yielded when the corresponding vuid is destroyed.
26 sessions are used to populate utmp and PAM session structures
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 struct server_id pid;
39 fstring ip_addr_str;
40 time_t connect_start;