#
# 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:
#
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
+
+
#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
--- /dev/null
+
+# 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
+