2 Unix SMB/Netbios implementation.
4 Standardised Authentication types
5 Copyright (C) Andrew Bartlett 2001
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 /* AUTH_STR - string */
23 typedef struct normal_string
29 /* AUTH_UNISTR - unicode string or buffer */
30 typedef struct unicode_string
36 /* AUTH_BUFFER - 8-bit byte buffer */
37 typedef struct auth_buffer
43 typedef struct net_password
49 typedef struct interactive_password
51 OWF_INFO lm_owf; /* LM OWF Password */
52 OWF_INFO nt_owf; /* NT OWF Password */
53 } auth_interactive_password;
55 typedef struct plaintext_password
58 } auth_plaintext_password;
60 typedef struct usersupplied_info
65 auth_interactive_password * interactive_password;
66 AUTH_STR plaintext_password;
70 AUTH_STR requested_domain; /* domain name unicode string */
71 AUTH_STR domain; /* domain name after mapping */
72 AUTH_STR requested_username;
73 AUTH_STR smb_username; /* user name unicode string (after mapping) */
74 AUTH_STR wksta_name; /* workstation name (netbios calling name) unicode string */
76 } auth_usersupplied_info;
78 typedef struct serversupplied_info
88 /* This groups info is needed for when we become_user() for this uid */
92 uchar session_key[16];
94 } auth_serversupplied_info;