--------------------- PatchSet 4519 Date: 2002/07/16 15:03:03 Author: serassio Branch: cygwin-svc Tag: (none) Log: Merged with nt Members: doc/win32-relnotes.txt:1.1.2.2.2.4->1.1.2.2.2.5 helpers/basic_auth/win32_locallogon/README.txt:1.1.10.1->1.1.10.2 src/protos.h:1.9.2.11.2.20->1.9.2.11.2.21 src/fs/ufs/store_dir_ufs.c:1.5.10.7.2.8->1.5.10.7.2.9 Index: squid/doc/win32-relnotes.txt =================================================================== RCS file: /cvsroot/squid-sf//squid/doc/Attic/win32-relnotes.txt,v retrieving revision 1.1.2.2.2.4 retrieving revision 1.1.2.2.2.5 diff -u -r1.1.2.2.2.4 -r1.1.2.2.2.5 --- squid/doc/win32-relnotes.txt 16 Jul 2002 14:24:30 -0000 1.1.2.2.2.4 +++ squid/doc/win32-relnotes.txt 16 Jul 2002 15:03:03 -0000 1.1.2.2.2.5 @@ -1,7 +1,7 @@ WIN32 Squid Relese Notes -Windows Service running mode +Windows Service run mode To enable the service mode, use the --enable-win32-service configure option When in Windows service mode the -N Squid switch is disabled, and default run mode of Index: squid/helpers/basic_auth/win32_locallogon/README.txt =================================================================== RCS file: /cvsroot/squid-sf//squid/helpers/basic_auth/win32_locallogon/Attic/README.txt,v retrieving revision 1.1.10.1 retrieving revision 1.1.10.2 diff -u -r1.1.10.1 -r1.1.10.2 --- squid/helpers/basic_auth/win32_locallogon/README.txt 16 Jul 2002 14:24:32 -0000 1.1.10.1 +++ squid/helpers/basic_auth/win32_locallogon/README.txt 16 Jul 2002 15:03:04 -0000 1.1.10.2 @@ -7,16 +7,24 @@ It's possible to authenticate against NT trusted domains specifyng the username in the domain\username Microsoft notation. + +============== +Program Syntax +============== + nt_auth [-a UserGroup] [-d UserGroup] [-D DefaultDomain] -a can specify a Windows Local Group name allowed to authenticate. -d can specify a Windows Local Group name not allowed to authenticate. -D can specify the default Domain against to authenticate. -This is released under the GNU General Public License. +This is released under the GNU General Public License and +is available from http://www.serassio.it. -Allowing Users - +============== +Allowing Users +============== Users that are allowed to access the web proxy must have the Windows NT User Rights "logon from the network" and must be included in the NT LOCAL User Groups @@ -27,7 +35,41 @@ Refer to Squid documentation for the required changes to squid.conf. -Testing - +============ +Installation +============ + +Type 'make', then 'make install', then 'make clean'. + +The default is to install 'nt_auth' into /usr/local/squid/libexec. + +Refer to Squid documentation for the required changes to squid.conf. +You will need to set the following line to enable the authenticator: + +authenticate_program /usr/local/squid/bin/NT_auth + +You will need to set the following lines to enable authentication for +your access list - + + acl proxy_auth REQUIRED + http_access allow + +You will need to specify the absolute path to NT_auth in the +authenticate_program directive, and check the authenticate_children +and authenticate_ttl. + + +================== +Compilation issues +================== + +The Makefile assumes that GCC is in the current PATH. +NT_auth compile ONLY on CygWin Environment or MS VC++. + + +======= +Testing +======= I strongly urge that NT_auth is tested prior to being used in a production environment. It may behave differently on different platforms. @@ -45,7 +87,9 @@ response for the site's access policy. -Contact details - +=============== +Contact details +=============== To contact the maintainer of this package, e-mail on squidnt@serassio.it. The latest version may be found on http://www.serassio.it/SquidNT.htm. Index: squid/src/protos.h =================================================================== RCS file: /cvsroot/squid-sf//squid/src/protos.h,v retrieving revision 1.9.2.11.2.20 retrieving revision 1.9.2.11.2.21 diff -u -r1.9.2.11.2.20 -r1.9.2.11.2.21 --- squid/src/protos.h 24 Jun 2002 14:02:35 -0000 1.9.2.11.2.20 +++ squid/src/protos.h 16 Jul 2002 15:03:04 -0000 1.9.2.11.2.21 @@ -1,6 +1,6 @@ /* - * $Id: protos.h,v 1.9.2.11.2.20 2002/06/24 14:02:35 serassio Exp $ + * $Id: protos.h,v 1.9.2.11.2.21 2002/07/16 15:03:04 serassio Exp $ * * * SQUID Web Proxy Cache http://www.squid-cache.org/ @@ -1317,8 +1317,8 @@ /* Vary support functions */ int varyEvaluateMatch(StoreEntry * entry, request_t * req); -/* CygWin & Windows NT Port */ -/* win32.c */ +/* CygWin & Windows NT Port */ +/* win32.c */ #if defined(_SQUID_MSWIN_) || defined(_SQUID_CYGWIN_) #ifdef USE_WIN32_SERVICE extern int WIN32_Subsystem_Init(int *, char ***); Index: squid/src/fs/ufs/store_dir_ufs.c =================================================================== RCS file: /cvsroot/squid-sf//squid/src/fs/ufs/store_dir_ufs.c,v retrieving revision 1.5.10.7.2.8 retrieving revision 1.5.10.7.2.9 diff -u -r1.5.10.7.2.8 -r1.5.10.7.2.9 --- squid/src/fs/ufs/store_dir_ufs.c 16 Jul 2002 14:24:53 -0000 1.5.10.7.2.8 +++ squid/src/fs/ufs/store_dir_ufs.c 16 Jul 2002 15:03:05 -0000 1.5.10.7.2.9 @@ -1060,7 +1060,7 @@ fd = state->fd; /* rename */ if (state->fd >= 0) { -#if defined(_SQUID_OS2_) || defined (_SQUID_CYGWIN_) || defined (_SQUID_MSWIN_) +#if defined(_SQUID_OS2_) || defined(_SQUID_CYGWIN_) || defined(_SQUID_MSWIN_) file_close(state->fd); state->fd = -1; if (unlink(state->cur) < 0)