2001-08-22 23:11:55 +04:00
/*
2002-01-30 09:08:46 +03:00
Unix SMB / CIFS implementation .
2001-08-22 23:11:55 +04:00
session handling for recording currently vailid vuids
2006-07-11 22:01:26 +04:00
2001-08-22 23:11:55 +04:00
Copyright ( C ) tridge @ samba . org 2001
Copyright ( C ) Andew Bartlett < abartlet @ samba . org > 2001
2006-07-11 22:01:26 +04:00
Copyright ( C ) Gerald ( Jerry ) Carter 2006
2001-08-22 23:11:55 +04:00
This program is free software ; you can redistribute it and / or modify
it under the terms of the GNU General Public License as published by
2007-07-09 23:25:36 +04:00
the Free Software Foundation ; either version 3 of the License , or
2001-08-22 23:11:55 +04:00
( at your option ) any later version .
This program is distributed in the hope that it will be useful ,
but WITHOUT ANY WARRANTY ; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
GNU General Public License for more details .
You should have received a copy of the GNU General Public License
2007-07-10 04:52:41 +04:00
along with this program . If not , see < http : //www.gnu.org/licenses/>.
2001-08-22 23:11:55 +04:00
*/
/* a "session" is claimed when we do a SessionSetupX operation
and is yielded when the corresponding vuid is destroyed .
sessions are used to populate utmp and PAM session structures
*/
struct sessionid {
uid_t uid ;
gid_t gid ;
fstring username ;
fstring hostname ;
fstring netbios_name ;
fstring remote_machine ;
fstring id_str ;
2015-04-14 17:50:28 +03:00
uint32_t id_num ;
2007-05-07 19:31:12 +04:00
struct server_id pid ;
2007-10-04 00:43:55 +04:00
fstring ip_addr_str ;
2006-07-11 22:01:26 +04:00
time_t connect_start ;
2015-11-30 12:48:12 +03:00
uint16_t connection_dialect ;
2015-11-09 19:17:17 +03:00
uint8_t encryption_flags ;
uint16_t cipher ;
2015-11-30 13:20:43 +03:00
uint8_t signing_flags ;
2001-08-22 23:11:55 +04:00
} ;