00001 /* 00002 Unix SMB/CIFS implementation. 00003 session handling for recording currently vailid vuids 00004 00005 Copyright (C) tridge@samba.org 2001 00006 Copyright (C) Andew Bartlett <abartlet@samba.org> 2001 00007 Copyright (C) Gerald (Jerry) Carter 2006 00008 00009 This program is free software; you can redistribute it and/or modify 00010 it under the terms of the GNU General Public License as published by 00011 the Free Software Foundation; either version 2 of the License, or 00012 (at your option) any later version. 00013 00014 This program is distributed in the hope that it will be useful, 00015 but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 GNU General Public License for more details. 00018 00019 You should have received a copy of the GNU General Public License 00020 along with this program; if not, write to the Free Software 00021 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00022 */ 00023 00024 /* a "session" is claimed when we do a SessionSetupX operation 00025 and is yielded when the corresponding vuid is destroyed. 00026 00027 sessions are used to populate utmp and PAM session structures 00028 */ 00029 00030 struct sessionid { 00031 uid_t uid; 00032 gid_t gid; 00033 fstring username; 00034 fstring hostname; 00035 fstring netbios_name; 00036 fstring remote_machine; 00037 fstring id_str; 00038 uint32 id_num; 00039 uint32 pid; 00040 fstring ip_addr; 00041 time_t connect_start; 00042 }; 00043