]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Automake integration for the msntauth config file
authorhno <>
Thu, 27 Jun 2002 00:44:27 +0000 (00:44 +0000)
committerhno <>
Thu, 27 Jun 2002 00:44:27 +0000 (00:44 +0000)
 - Look for it in our prefix
 - Install the default template

helpers/basic_auth/MSNT/Makefile.am
helpers/basic_auth/MSNT/confload.c
helpers/basic_auth/MSNT/msntauth.conf.default [new file with mode: 0644]

index c2515a2b8191f0c5985d6c5398c8e40eab673b79..8d2034dd3ae94e7e9e22a4c38e33ecabeb1ea0e9 100644 (file)
@@ -1,7 +1,7 @@
 #
 #  Makefile for the Squid Object Cache server
 #
-#  $Id: Makefile.am,v 1.7 2002/06/26 11:00:37 hno Exp $
+#  $Id: Makefile.am,v 1.8 2002/06/26 18:44:27 hno Exp $
 #
 #  Uncomment and customize the following to suit your needs:
 #
@@ -20,11 +20,27 @@ msnt_auth_SOURCES = md4.c rfcnb-io.c rfcnb-util.c session.c msntauth.c \
 
 EXTRA_DIST = \
        COPYING-2.0 \
-       msntauth.conf \
+       msntauth.conf.default \
        msntauth-v2.0.lsm \
        README.html
 
+sysconf_DATA = \
+       msntauth.conf.default
+
 LDADD  = @XTRA_LIBS@
 
 INCLUDES      = -I. -I$(top_builddir)/include -I$(top_srcdir)/include \
                -I$(top_srcdir)/src/
+
+confload.o: confload.c
+       $(COMPILE) -DSYSCONFDIR=\"$(sysconfdir)\" -c $(srcdir)/confload.c -o $@
+
+install-data-local:
+       @if test -f $(DESTDIR)$(sysconfdir)/msntauth.conf ; then \
+               echo "$@ will not overwrite existing $(DESTDIR)$(sysconfdir)/msntauth.conf" ; \
+       else \
+               echo "$(INSTALL_DATA) $(srcdir)/msntauth.conf.default $(DESTDIR)$(sysconfdir)/msntauth.conf" ; \
+               $(INSTALL_DATA) $(srcdir)/msntauth.conf.default $(DESTDIR)$(sysconfdir)/msntauth.conf ; \
+       fi
+
+       
index 5e2e771bb77096f4328a317eb18923e03e39066b..a7f1552b4aec6f411b1e02b78ecf5a4cf4618ada 100644 (file)
 #include "valid.h"
 
 /* Path to configuration file */
-#define CONFIGFILE   "/usr/local/squid/etc/msntauth.conf"
-#define DENYUSERSDEFAULT   "/usr/local/squid/etc/denyusers"
-#define ALLOWUSERSDEFAULT  "/usr/local/squid/etc/allowusers"
+#ifndef SYSCONFDIR
+#define SYSCONFDIR "/usr/local/squid/etc"
+#endif
+#define CONFIGFILE   SYSCONFDIR "/msntauth.conf"
+#define DENYUSERSDEFAULT   SYSCONFDIR "/denyusers"
+#define ALLOWUSERSDEFAULT  SYSCONFDIR "/allowusers"
 
 /* Maximum number of servers to query. This number can be increased. */
 #define MAXSERVERS 5
diff --git a/helpers/basic_auth/MSNT/msntauth.conf.default b/helpers/basic_auth/MSNT/msntauth.conf.default
new file mode 100644 (file)
index 0000000..323bc1c
--- /dev/null
@@ -0,0 +1,13 @@
+
+# Sample MSNT authenticator configuration file
+# Antonino Iannella, Stellar-X Pty Ltd
+# Sun Sep  2 15:52:31 CST 2001
+
+# NT hosts to use. Best to put their IP addresses in /etc/hosts.
+server my_PDC          my_BDC          my_NTdomain
+server other_PDC       other_BDC       otherdomain
+
+# Denied and allowed users. Comment these if not needed.
+#denyusers     /usr/local/squid/etc/msntauth.denyusers
+#allowusers    /usr/local/squid/etc/msntauth.allowusers
+