8 #if defined(HAVE_LDAP_H) && defined(HAVE_LBER_H) && defined(HAVE_LIBLDAP) && defined(HAVE_LIBLBER)
17 AUTH_BACKEND_HTPASSWD
,
25 buffer
*auth_plain_groupfile
;
26 buffer
*auth_plain_userfile
;
28 buffer
*auth_htdigest_userfile
;
29 buffer
*auth_htpasswd_userfile
;
31 buffer
*auth_backend_conf
;
33 buffer
*auth_ldap_hostname
;
34 buffer
*auth_ldap_basedn
;
35 buffer
*auth_ldap_binddn
;
36 buffer
*auth_ldap_bindpw
;
37 buffer
*auth_ldap_filter
;
38 buffer
*auth_ldap_cafile
;
39 unsigned short auth_ldap_starttls
;
40 unsigned short auth_ldap_allow_empty_pw
;
42 unsigned short auth_debug
;
45 auth_backend_t auth_backend
;
50 buffer
*ldap_filter_pre
;
51 buffer
*ldap_filter_post
;
53 } mod_auth_plugin_config
;
65 mod_auth_plugin_config
**config_storage
;
67 mod_auth_plugin_config conf
, *anon_conf
; /* this is only used as long as no handler_ctx is setup */
68 } mod_auth_plugin_data
;
70 int http_auth_basic_check(server
*srv
, connection
*con
, mod_auth_plugin_data
*p
, array
*req
, const char *realm_str
);
71 int http_auth_digest_check(server
*srv
, connection
*con
, mod_auth_plugin_data
*p
, array
*req
, const char *realm_str
);
72 int http_auth_digest_generate_nonce(server
*srv
, mod_auth_plugin_data
*p
, buffer
*fn
, char (*hh
)[33]);
73 int http_auth_match_rules(server
*srv
, array
*req
, const char *username
, const char *group
, const char *host
);