summaryrefslogtreecommitdiffstats
path: root/main/apache-mod-auth-radius/remote-ip.patch
diff options
context:
space:
mode:
authorJeff Bilyk <jbilyk@gmail.com>2013-02-28 15:55:29 -0500
committerJeff Bilyk <jbilyk@gmail.com>2013-02-28 15:55:29 -0500
commit364f710147bb394d3d5a12edc47d251125ffb480 (patch)
treefd88447bbb2926539440f8266c80cc41aa93f968 /main/apache-mod-auth-radius/remote-ip.patch
parentcff4cd3ac59d7c416afa37ecefea031d3db41ad9 (diff)
downloadaports-364f710147bb394d3d5a12edc47d251125ffb480.tar.bz2
aports-364f710147bb394d3d5a12edc47d251125ffb480.tar.xz
main/apache-mod-auth-radius: moved from testing
Diffstat (limited to 'main/apache-mod-auth-radius/remote-ip.patch')
-rw-r--r--main/apache-mod-auth-radius/remote-ip.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/main/apache-mod-auth-radius/remote-ip.patch b/main/apache-mod-auth-radius/remote-ip.patch
new file mode 100644
index 000000000..0c461091e
--- /dev/null
+++ b/main/apache-mod-auth-radius/remote-ip.patch
@@ -0,0 +1,29 @@
+--- mod_auth_radius-2.0.c
++++ mod_auth_radius-2.0.c.patched
+@@ -630,7 +630,7 @@
+ {
+ char one[COOKIE_SIZE], two[COOKIE_SIZE];
+ char *cookie = apr_pcalloc(r->pool, COOKIE_SIZE);
+- conn_rec *c = r->connection;
++ request_rec *c = r->connection;
+ server_rec *s = r->server;
+ radius_server_config_rec *scr = (radius_server_config_rec *)
+ ap_get_module_config (s->module_config, &radius_auth_module);
+@@ -680,7 +680,7 @@
+ * benefit here.
+ */
+ apr_snprintf(one, COOKIE_SIZE, "%s%s%s%s%s%08x", scr->secret,
+- r->user, passwd, c->remote_ip, hostname, expires);
++ r->user, passwd, c->useragent_ip, hostname, expires);
+
+ /* if you're REALLY worried about what's going on */
+
+@@ -688,7 +688,7 @@
+ ap_log_error(APLOG_MARK, APLOG_NOERRNO | APLOG_DEBUG, 0, r->server," secret = %s\n", scr->secret);
+ ap_log_error(APLOG_MARK, APLOG_NOERRNO | APLOG_DEBUG, 0, r->server," user = %s\n", r->user);
+ ap_log_error(APLOG_MARK, APLOG_NOERRNO | APLOG_DEBUG, 0, r->server," passwd = %s\n", passwd);
+- ap_log_error(APLOG_MARK, APLOG_NOERRNO | APLOG_DEBUG, 0, r->server," remote ip = %s\n", c->remote_ip);
++ ap_log_error(APLOG_MARK, APLOG_NOERRNO | APLOG_DEBUG, 0, r->server," remote ip = %s\n", c->useragent_ip);
+ ap_log_error(APLOG_MARK, APLOG_NOERRNO | APLOG_DEBUG, 0, r->server," hostname = %s\n", hostname);
+ ap_log_error(APLOG_MARK, APLOG_NOERRNO | APLOG_DEBUG, 0, r->server," expiry = %08x\n", expires);
+ #endif