-
Notifications
You must be signed in to change notification settings - Fork 2
/
mod_ssl_preauth.h
54 lines (46 loc) · 1.31 KB
/
mod_ssl_preauth.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#ifndef MOD_SSL_PREAUTH_H
#define MOD_SSL_PREAUTH_H
#include <httpd.h>
#include <http_config.h>
#include <http_core.h>
#include <http_log.h>
#include <http_protocol.h>
#include <http_request.h>
#include <apr_strings.h>
#include <apr_lib.h>
#include <apr_ldap.h>
#include <util_ldap.h>
#include <mod_ssl.h>
#define FILTER_LENGTH MAX_STRING_LEN
typedef struct {
int ssl_preauth_enabled;
char *ldap_remote_user_attr;
/* LDAP related settings: */
char *ldap_url;
char *ldap_host;
int port;
char *binddn;
char *bindpw;
char *basedn;
char *attribute;
char **attributes;
int scope;
char *filter;
int secure;
} ssl_preauth_config;
const char *
ssl_preauth_ldap_parse_url(cmd_parms *cmd,
void *config,
const char *url,
const char *mode);
void
ssl_preauth_ldap_build_filter(char *filtbuf,
request_rec *r,
const char* sent_user,
const char* sent_filter,
ssl_preauth_config *sec);
#define command(name, func, var, type, usage) \
AP_INIT_ ## type (name, (void*) func, \
(void*)APR_OFFSETOF(ssl_preauth_config, var), \
OR_AUTHCFG | RSRC_CONF, usage)
#endif