1 /* Copyright 2006-2015 The FreeRADIUS server project */
2 
3 #ifndef _RLM_MSCHAP_H
4 #define _RLM_MSCHAP_H
5 
6 RCSIDH(rlm_mschap_h, "$Id: 4109715dd2fff2ebd692b83c71d2be31f413dfc2 $")
7 
8 #include "config.h"
9 
10 #ifdef WITH_AUTH_WINBIND
11 #  include <wbclient.h>
12 #endif
13 
14 /* Method of authentication we are going to use */
15 typedef enum {
16 	AUTH_INTERNAL		= 0,
17 	AUTH_NTLMAUTH_EXEC	= 1
18 #ifdef WITH_AUTH_WINBIND
19 	,AUTH_WBCLIENT       	= 2
20 #endif
21 } MSCHAP_AUTH_METHOD;
22 
23 typedef struct rlm_mschap_t {
24 	bool			use_mppe;
25 	bool			require_encryption;
26 	bool			require_strong;
27 	bool			with_ntdomain_hack;	/* this should be in another module */
28 	char const		*xlat_name;
29 	char const		*ntlm_auth;
30 	uint32_t		ntlm_auth_timeout;
31 	char const		*ntlm_cpw;
32 	char const		*ntlm_cpw_username;
33 	char const		*ntlm_cpw_domain;
34 	char const		*local_cpw;
35 	char const		*auth_type;
36 	bool			allow_retry;
37 	char const		*retry_msg;
38 	MSCHAP_AUTH_METHOD	method;
39 	vp_tmpl_t		*wb_username;
40 	vp_tmpl_t		*wb_domain;
41 	fr_connection_pool_t    *wb_pool;
42 	bool			wb_retry_with_normalised_username;
43 #ifdef __APPLE__
44 	bool			open_directory;
45 #endif
46 } rlm_mschap_t;
47 
48 #endif
49 
50