rsim / mod_ntlm

NTLM authentication module for Apache

This URL has Read+Write access

mod_ntlm / mod_ntlm.h
ca032b7d » rsim 2008-11-24 initial import 1 /*
2 * $Id: mod_ntlm.h,v 1.3.4.1 2003/02/23 15:56:26 casz Exp $
3 *
4 */
5
6 /* Preprocessor macro definitions */
7 #define NTLM_PACKAGE_NAME "NTLM"
8 #define NTLM_AUTH_NAME "NTLM"
9
10 /* Header inclusions */
11 #include "httpd.h"
12 #include "http_config.h"
13 #include "http_core.h"
14 #include "http_log.h"
15 #include "apr_base64.h"
16 #include "apr_strings.h"
17 #include "http_protocol.h"
18
19 #include "http_request.h"
20
21 /*
22 #include "httpd.h"
23 #include "http_config.h"
24 #include "apr_general.h"
25 */
26
27 #include "smbval/valid.h"
28
29 #ifndef DEFAULT_MODNTLM_STRING
30 #define DEFAULT_MODNTLM_STRING "apache2_mod_ntlm: A request was made."
31 #endif
32
33 module AP_MODULE_DECLARE_DATA ntlm_module;
34
35 typedef struct ntlm_config_struct {
36 unsigned int ntlm_on;
37 unsigned int ntlm_basic_on;
38 char *ntlm_basic_realm;
39 unsigned int ntlm_authoritative;
40 char *ntlm_domain;
41 char *ntlm_server;
42 char *ntlm_backup;
43 char *ntlm_grpfile;
44 char *ntlm_lockfile;
45 apr_thread_mutex_t *ntlm_mutex; /* Protect ntlm_connection variable */
46 } ntlm_config_rec;
47
48 typedef struct ntlm_connection_struct {
49 void *handle;
50 char *nonce;
51 char *user;
52 char *domain;
53 char *password;
54 int auth_ok;
55 unsigned int ntlmssp_flags;
56 } ntlm_connection_rec;