From: wessels <> Date: Fri, 25 Jun 1999 04:08:43 +0000 (+0000) Subject: squidGuard is unable to do access-control on a per-user basis unless the X-Git-Tag: SQUID_3_0_PRE1~2140 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c64889f8fbe41ac5f77c9803f6ce729cb068b5d0;p=thirdparty%2Fsquid.git squidGuard is unable to do access-control on a per-user basis unless the following patch is made... From: Antony T Curtis --- diff --git a/src/redirect.cc b/src/redirect.cc index 758097d437..0ee0bf37b6 100644 --- a/src/redirect.cc +++ b/src/redirect.cc @@ -1,6 +1,6 @@ /* - * $Id: redirect.cc,v 1.80 1999/06/16 21:23:32 wessels Exp $ + * $Id: redirect.cc,v 1.81 1999/06/24 22:08:43 wessels Exp $ * * DEBUG: section 29 Redirector * AUTHOR: Duane Wessels @@ -113,7 +113,9 @@ redirectStart(clientHttpRequest * http, RH * handler, void *data) cbdataAdd(r, cbdataXfree, 0); r->orig_url = xstrdup(http->uri); r->client_addr = conn->log_addr; - if (conn->ident == NULL || *conn->ident == '\0') { + if (http->request->user_ident[0]) + r->client_ident = http->request->user_ident; + else if (conn->ident == NULL || *conn->ident == '\0') { r->client_ident = dash_str; } else { r->client_ident = conn->ident;