|
Lines 1-15
Link Here
|
| 1 |
--- mod_auth_pam.c.orig Sun Feb 13 23:16:57 2000 |
1 |
--- mod_auth_pam.c.orig Thu Aug 8 15:47:33 2002 |
| 2 |
+++ mod_auth_pam.c Mon Apr 2 22:20:44 2001 |
2 |
+++ mod_auth_pam.c Tue Oct 28 16:29:03 2003 |
| 3 |
@@ -113,7 +113,7 @@ |
3 |
@@ -98,7 +98,7 @@ |
|
|
4 |
* old-style (from Apache 1.2.x) |
| 5 |
* |
| 6 |
* 1. Configuration: |
| 7 |
- * Module pam_auth_module mod_auth_pam.o |
| 8 |
+ * Module auth_pam_module mod_auth_pam.o |
| 9 |
* EXTRA_LIBS+= -lpam -ldl |
| 10 |
* |
| 11 |
* 2. Add an auth and an account entry for service type "httpd" |
| 12 |
@@ -147,7 +147,7 @@ |
| 4 |
#define PAM_STRE_NEEDS_PAMH 1 |
13 |
#define PAM_STRE_NEEDS_PAMH 1 |
| 5 |
#define VERSION "1.0a" |
14 |
#define VERSION "1.1.1" |
| 6 |
|
15 |
|
| 7 |
-module pam_auth_module; |
16 |
-module pam_auth_module; |
| 8 |
+module auth_pam_module; |
17 |
+module auth_pam_module; |
| 9 |
|
18 |
|
| 10 |
static const char |
19 |
static const char |
| 11 |
*pam_servicename = "httpd", |
20 |
*pam_servicename = "httpd", |
| 12 |
@@ -362,7 +362,7 @@ |
21 |
@@ -231,13 +231,11 @@ |
|
|
22 |
|
| 23 |
static command_rec auth_pam_cmds[] = { |
| 24 |
{ "AuthFailDelay", (const char*(*)())auth_fail_delay, 0, OR_AUTHCFG, TAKE1, |
| 25 |
- "number of micro seconds to wait after failed authentication attempt. defau |
| 26 |
-lt is 0" }, |
| 27 |
+ "number of micro seconds to wait after failed authentication attempt. default is 0" }, |
| 28 |
{ "AuthPAM_Authorative", (const char*(*)())auth_fall_through, NULL, OR_AUTHCFG, FLAG, |
| 29 |
"no longer in use -- see AuthPAM_FallThrough instead" }, |
| 30 |
{ "AuthPAM_FallThrough", (const char*(*)())auth_fall_through, NULL, OR_AUTHCFG, FLAG, |
| 31 |
- "on|off - determines if other authentication methods are attempted if this |
| 32 |
-one fails; default is off" }, |
| 33 |
+ "on|off - determines if other authentication methods are attempted if this one fails; default is off" }, |
| 34 |
{ "AuthPAM_Enabled", (const char*(*)())auth_enable, NULL, OR_AUTHCFG, FLAG, |
| 35 |
"on|off - determines if PAM authentication is enabled; default is on" }, |
| 36 |
{ 0 } |
| 37 |
@@ -323,7 +321,7 @@ |
| 13 |
/* mod_auth_pam specific */ |
38 |
/* mod_auth_pam specific */ |
| 14 |
auth_pam_userinfo userinfo = { NULL, NULL }; |
39 |
auth_pam_userinfo userinfo = { NULL, NULL }; |
| 15 |
auth_pam_dir_config *conf = (auth_pam_dir_config*) |
40 |
auth_pam_dir_config *conf = (auth_pam_dir_config*) |
|
Lines 18-33
Link Here
|
| 18 |
/* PAM specific */ |
43 |
/* PAM specific */ |
| 19 |
struct pam_conv conv_info = { &auth_pam_talker, (void*)&userinfo}; |
44 |
struct pam_conv conv_info = { &auth_pam_talker, (void*)&userinfo}; |
| 20 |
pam_handle_t *pamh = NULL; |
45 |
pam_handle_t *pamh = NULL; |
| 21 |
@@ -442,7 +442,7 @@ |
46 |
@@ -402,7 +400,7 @@ |
|
|
47 |
register int i = 0; |
| 22 |
char method_restricted = 0, *line = 0, *word = 0; |
48 |
char method_restricted = 0, *line = 0, *word = 0; |
| 23 |
table *groups = 0; |
|
|
| 24 |
auth_pam_dir_config *conf = (auth_pam_dir_config*) |
49 |
auth_pam_dir_config *conf = (auth_pam_dir_config*) |
| 25 |
- ap_get_module_config(r->per_dir_config, &pam_auth_module); |
50 |
- ap_get_module_config(r->per_dir_config, &pam_auth_module); |
| 26 |
+ ap_get_module_config(r->per_dir_config, &auth_pam_module); |
51 |
+ ap_get_module_config(r->per_dir_config, &auth_pam_module); |
|
|
52 |
struct passwd *pwent; |
| 27 |
|
53 |
|
| 28 |
/* check for allowed users/group */ |
54 |
/* check for allowed users/group */ |
| 29 |
const array_header *reqs_arr = ap_requires (r); |
55 |
@@ -487,7 +485,7 @@ |
| 30 |
@@ -505,7 +505,7 @@ |
|
|
| 31 |
return AUTH_REQUIRED; |
56 |
return AUTH_REQUIRED; |
| 32 |
} |
57 |
} |