1/* 2 Unix SMB/CIFS implementation. 3 session handling for recording currently vailid vuids 4 5 Copyright (C) tridge@samba.org 2001 6 Copyright (C) Andew Bartlett <abartlet@samba.org> 2001 7 Copyright (C) Gerald (Jerry) Carter 2006 8 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. 13 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. 18 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/>. 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 29struct 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; 41}; 42 43