#
-# $Id: cf.data.pre,v 1.135 1999/01/24 02:22:54 wessels Exp $
+# $Id: cf.data.pre,v 1.136 1999/01/24 02:44:10 wessels Exp $
#
#
# SQUID Internet Object Cache http://squid.nlanr.net/Squid/
DOC_END
-NAME: ident_lookup
-COMMENT: on|off
-TYPE: onoff
-DEFAULT: off
-LOC: Config.onoff.ident_lookup
-DOC_START
- If you wish to make an RFC931/ident lookup of the client
- username for each connection, enable this. It is off by
- default.
-
-ident_lookup off
+NAME: ident_lookup_access
+TYPE: acl_access
+DEFAULT: none
+LOC: Config.accessList.identLookup
+DOC_START
+ A list of ACL elements which, if matched, cause an ident
+ (RFC 931) lookup to be performed for this request. For
+ example, you might choose to always perform ident lookups
+ for your main multi-user Unix boxes, but not for your Macs
+ and PCs. By default, ident lookups are not performed for
+ any requests.
+
+ To enable ident lookups for specific client addresses, you
+ can follow this example:
+
+ acl ident_aware_hosts src 198.168.1.0/255.255.255.0
+ ident_lookup_access allow ident_aware_hosts
+ ident_lookup_access deny all
+ident_lookup_access deny all
DOC_END
/*
- * $Id: client_side.cc,v 1.435 1999/01/24 02:22:56 wessels Exp $
+ * $Id: client_side.cc,v 1.436 1999/01/24 02:44:11 wessels Exp $
*
* DEBUG: section 33 Client-side Routines
* AUTHOR: Duane Wessels
struct sockaddr_in peer;
struct sockaddr_in me;
int max = INCOMING_HTTP_MAX;
+ static aclCheck_t identChecklist;
commSetSelect(sock, COMM_SELECT_READ, httpAccept, NULL, 0);
while (max-- && !httpAcceptDefer()) {
memset(&peer, '\0', sizeof(struct sockaddr_in));
if (Config.onoff.log_fqdn)
fqdncache_gethostbyaddr(peer.sin_addr, FQDN_LOOKUP_IF_MISS);
commSetTimeout(fd, Config.Timeout.request, requestTimeout, connState);
- if (Config.onoff.ident_lookup)
+ identChecklist.src_addr = peer.sin_addr;
+ if (aclCheckFast(Config.accessList.identLookup, &identChecklist))
identStart(&me, &peer, clientIdentDone, connState);
commSetSelect(fd, COMM_SELECT_READ, clientReadRequest, connState, 0);
commSetDefer(fd, clientReadDefer, connState);
/*
- * $Id: structs.h,v 1.270 1999/01/24 02:26:26 wessels Exp $
+ * $Id: structs.h,v 1.271 1999/01/24 02:44:13 wessels Exp $
*
*
* SQUID Internet Object Cache http://squid.nlanr.net/Squid/
#endif
int common_log;
int log_mime_hdrs;
- int ident_lookup;
int log_fqdn;
int announce;
int accel_with_proxy;
acl_access *snmp;
#endif
acl_access *brokenPosts;
+ acl_access *identLookup;
} accessList;
acl_deny_info_list *denyInfoList;
char *proxyAuthRealm;