libndr: specialise ndr_token_find() for key pointer comparison
[Samba.git] / source3 / include / session.h
blob903208e9b0b70f0ccbf4491742015bd57892a9ac
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_t id_num;
38 struct server_id pid;
39 fstring ip_addr_str;
40 time_t connect_start;
41 uint16_t connection_dialect;
42 bool authenticated;
43 uint8_t encryption_flags;
44 uint16_t cipher;
45 uint16_t signing;
46 uint8_t signing_flags;
47 const struct smbXsrv_session_global0 *global;