4 Unix SMB/Netbios implementation.
6 Standardised Authentication types
7 Copyright (C) Andrew Bartlett 2001
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 2 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, write to the Free Software
21 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24 /* AUTH_STR - string */
25 typedef struct normal_string
31 /* AUTH_UNISTR - unicode string or buffer */
32 typedef struct unicode_string
38 typedef struct interactive_password
40 OWF_INFO lm_owf; /* LM OWF Password */
41 OWF_INFO nt_owf; /* NT OWF Password */
42 } auth_interactive_password;
44 typedef struct usersupplied_info
49 auth_interactive_password * interactive_password;
50 DATA_BLOB plaintext_password;
58 AUTH_STR client_domain; /* domain name string */
59 AUTH_STR domain; /* domain name after mapping */
60 AUTH_STR internal_username; /* username after mapping */
61 AUTH_STR smb_name; /* username before mapping */
62 AUTH_STR wksta_name; /* workstation name (netbios calling name) unicode string */
64 } auth_usersupplied_info;
66 #define SAM_FILL_NAME 0x01
67 #define SAM_FILL_INFO3 0x02
68 #define SAM_FILL_SAM 0x04
69 #define SAM_FILL_UNIX 0x08
70 #define SAM_FILL_ALL (SAM_FILL_NAME | SAM_FILL_INFO3 | SAM_FILL_SAM | SAM_FILL_UNIX)
72 typedef struct serversupplied_info
76 /* This groups info is needed for when we become_user() for this uid */
80 /* NT group information taken from the info3 structure */
85 uchar session_key[16];
87 uint8 first_8_lm_hash[8];
89 uint32 sam_fill_level; /* How far is this structure filled? */
91 SAM_ACCOUNT *sam_account;
92 } auth_serversupplied_info;
94 #endif /* _SMBAUTH_H_ */