source: vendor/current/source3/include/auth_generic.h

Last change on this file was 988, checked in by Silvan Scherrer, 9 years ago

Samba Server: update vendor to version 4.4.3

File size: 1.9 KB
Line 
1/*
2 NLTMSSP wrappers
3
4 Copyright (C) Andrew Tridgell 2001
5 Copyright (C) Andrew Bartlett 2001-2011
6
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 3 of the License, or
10 (at your option) any later version.
11
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.
16
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>.
19*/
20
21#ifndef _AUTH_GENERIC_
22#define _AUTH_GENERIC_
23
24struct gensec_security;
25
26struct auth_generic_state {
27 /* used only by the client implementation */
28 struct cli_credentials *credentials;
29
30 /* used by both */
31 struct gensec_security *gensec_security;
32};
33
34NTSTATUS auth_generic_set_username(struct auth_generic_state *ans,
35 const char *user);
36NTSTATUS auth_generic_set_domain(struct auth_generic_state *ans,
37 const char *domain);
38NTSTATUS auth_generic_set_password(struct auth_generic_state *ans,
39 const char *password);
40NTSTATUS auth_generic_set_creds(struct auth_generic_state *ans,
41 struct cli_credentials *creds);
42NTSTATUS auth_generic_client_prepare(TALLOC_CTX *mem_ctx,
43 struct auth_generic_state **_ans);
44NTSTATUS auth_generic_client_start(struct auth_generic_state *ans, const char *oid);
45NTSTATUS auth_generic_client_start_by_name(struct auth_generic_state *ans,
46 const char *name);
47NTSTATUS auth_generic_client_start_by_authtype(struct auth_generic_state *ans,
48 uint8_t auth_type,
49 uint8_t auth_level);
50NTSTATUS auth_generic_client_start_by_sasl(struct auth_generic_state *ans,
51 const char **sasl_list);
52
53#endif /* _AUTH_GENERIC_ */
Note: See TracBrowser for help on using the repository browser.