]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
make authenticate_program a wordlist so it includes the options
authorwessels <>
Tue, 18 Aug 1998 05:27:58 +0000 (05:27 +0000)
committerwessels <>
Tue, 18 Aug 1998 05:27:58 +0000 (05:27 +0000)
src/cache_cf.cc
src/cf.data.pre

index 119cb28b11e8b1fd6208f09d96c28b7fc808adfe..eae709f8ede54809fbac04e4d5022f0450312935 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: cache_cf.cc,v 1.297 1998/08/17 22:04:55 wessels Exp $
+ * $Id: cache_cf.cc,v 1.298 1998/08/17 23:27:58 wessels Exp $
  *
  * DEBUG: section 3     Configuration File Parsing
  * AUTHOR: Harvest Derived
@@ -270,7 +270,7 @@ configDoConfigure(void)
     if (Config.Program.authenticate) {
        if (Config.authenticateChildren < 1) {
            Config.authenticateChildren = 0;
-           safe_free(Config.Program.authenticate);
+           wordlistDestroy(&Config.Program.authenticate);
        } else if (Config.authenticateChildren > DefaultAuthenticateChildrenMax) {
            debug(3, 0) ("WARNING: authenticate_children was set to a bad value: %d\n",
                Config.authenticateChildren);
@@ -323,7 +323,7 @@ configDoConfigure(void)
     if (Config.Program.redirect)
        requirePathnameExists("redirect_program", Config.Program.redirect);
     if (Config.Program.authenticate)
-       requirePathnameExists("authenticate_program", Config.Program.authenticate);
+       requirePathnameExists("authenticate_program", Config.Program.authenticate->key);
     requirePathnameExists("Icon Directory", Config.icons.directory);
     requirePathnameExists("Error Directory", Config.errorDirectory);
     for (R = Config.Refresh; R; R = R->next) {
index f2170e4ae88ac2cb139cecdd49109892d0710db9..26fcb225c53d62992fa37444ceb12e0c0cfa0a09 100644 (file)
@@ -1,6 +1,6 @@
 
 #
-# $Id: cf.data.pre,v 1.97 1998/08/17 22:04:56 wessels Exp $
+# $Id: cf.data.pre,v 1.98 1998/08/17 23:27:59 wessels Exp $
 #
 #
 # SQUID Internet Object Cache  http://squid.nlanr.net/Squid/
@@ -922,32 +922,29 @@ redirect_children 5
 DOC_END
 
 NAME: authenticate_program
-TYPE: string
+TYPE: wordlist
 LOC: Config.Program.authenticate
 DEFAULT: none
 DOC_START
-       Specify the location of the executable for the authenticator.
-       Such a program reads a line containing "username password"
-       and replies "OK" or "ERR" in an endless loop.
-       If you use an authenticator, make sure you have 1 acl of type
-       proxy_auth.
-       By default, the authenticator_program is not used.
+       Specify the command for the external authenticator.  Such a
+       program reads a line containing "username password" and replies
+       "OK" or "ERR" in an endless loop.  If you use an authenticator,
+       make sure you have 1 acl of type proxy_auth.  By default, the
+       authenticator_program is not used.
 
-authenticate_program @DEFAULT_AUTH_PROGRAM@
-DOC_END
+       If you want to use the traditional proxy authentication,
+       jump over to the ../auth_modules/NCSA directory and
+       type:
+               % make
+               % make install
 
+       Then, set this line to something like
 
-NAME: authenticate_options
-TYPE: wordlist
-LOC: Config.Program.authenticate_options
-DEFAULT: none
-DOC_START
-       Command line options for the authenticate program.
+       authenticate_program @DEFAULT_PREFIX@/bin/ncsa_auth @DEFAULT_PREFIX@/etc/passwd
 
-authenticate_options @DEFAULT_PASSWD_FILE@
+authenticate_program none
 DOC_END
 
-
 NAME: authenticate_children
 TYPE: int
 DEFAULT: 5