head 1.6; access; symbols pkgsrc-2021Q1:1.5.0.90 pkgsrc-2021Q1-base:1.5 pkgsrc-2020Q4:1.5.0.88 pkgsrc-2020Q4-base:1.5 pkgsrc-2020Q3:1.5.0.86 pkgsrc-2020Q3-base:1.5 pkgsrc-2020Q2:1.5.0.82 pkgsrc-2020Q2-base:1.5 pkgsrc-2020Q1:1.5.0.62 pkgsrc-2020Q1-base:1.5 pkgsrc-2019Q4:1.5.0.84 pkgsrc-2019Q4-base:1.5 pkgsrc-2019Q3:1.5.0.80 pkgsrc-2019Q3-base:1.5 pkgsrc-2019Q2:1.5.0.78 pkgsrc-2019Q2-base:1.5 pkgsrc-2019Q1:1.5.0.76 pkgsrc-2019Q1-base:1.5 pkgsrc-2018Q4:1.5.0.74 pkgsrc-2018Q4-base:1.5 pkgsrc-2018Q3:1.5.0.72 pkgsrc-2018Q3-base:1.5 pkgsrc-2018Q2:1.5.0.70 pkgsrc-2018Q2-base:1.5 pkgsrc-2018Q1:1.5.0.68 pkgsrc-2018Q1-base:1.5 pkgsrc-2017Q4:1.5.0.66 pkgsrc-2017Q4-base:1.5 pkgsrc-2017Q3:1.5.0.64 pkgsrc-2017Q3-base:1.5 pkgsrc-2017Q2:1.5.0.60 pkgsrc-2017Q2-base:1.5 pkgsrc-2017Q1:1.5.0.58 pkgsrc-2017Q1-base:1.5 pkgsrc-2016Q4:1.5.0.56 pkgsrc-2016Q4-base:1.5 pkgsrc-2016Q3:1.5.0.54 pkgsrc-2016Q3-base:1.5 pkgsrc-2016Q2:1.5.0.52 pkgsrc-2016Q2-base:1.5 pkgsrc-2016Q1:1.5.0.50 pkgsrc-2016Q1-base:1.5 pkgsrc-2015Q4:1.5.0.48 pkgsrc-2015Q4-base:1.5 pkgsrc-2015Q3:1.5.0.46 pkgsrc-2015Q3-base:1.5 pkgsrc-2015Q2:1.5.0.44 pkgsrc-2015Q2-base:1.5 pkgsrc-2015Q1:1.5.0.42 pkgsrc-2015Q1-base:1.5 pkgsrc-2014Q4:1.5.0.40 pkgsrc-2014Q4-base:1.5 pkgsrc-2014Q3:1.5.0.38 pkgsrc-2014Q3-base:1.5 pkgsrc-2014Q2:1.5.0.36 pkgsrc-2014Q2-base:1.5 pkgsrc-2014Q1:1.5.0.34 pkgsrc-2014Q1-base:1.5 pkgsrc-2013Q4:1.5.0.32 pkgsrc-2013Q4-base:1.5 pkgsrc-2013Q3:1.5.0.30 pkgsrc-2013Q3-base:1.5 pkgsrc-2013Q2:1.5.0.28 pkgsrc-2013Q2-base:1.5 pkgsrc-2013Q1:1.5.0.26 pkgsrc-2013Q1-base:1.5 pkgsrc-2012Q4:1.5.0.24 pkgsrc-2012Q4-base:1.5 pkgsrc-2012Q3:1.5.0.22 pkgsrc-2012Q3-base:1.5 pkgsrc-2012Q2:1.5.0.20 pkgsrc-2012Q2-base:1.5 pkgsrc-2012Q1:1.5.0.18 pkgsrc-2012Q1-base:1.5 pkgsrc-2011Q4:1.5.0.16 pkgsrc-2011Q4-base:1.5 pkgsrc-2011Q3:1.5.0.14 pkgsrc-2011Q3-base:1.5 pkgsrc-2011Q2:1.5.0.12 pkgsrc-2011Q2-base:1.5 pkgsrc-2011Q1:1.5.0.10 pkgsrc-2011Q1-base:1.5 pkgsrc-2010Q4:1.5.0.8 pkgsrc-2010Q4-base:1.5 pkgsrc-2010Q3:1.5.0.6 pkgsrc-2010Q3-base:1.5 pkgsrc-2010Q2:1.5.0.4 pkgsrc-2010Q2-base:1.5 pkgsrc-2010Q1:1.5.0.2 pkgsrc-2010Q1-base:1.5 pkgsrc-2009Q4:1.4.0.52 pkgsrc-2009Q4-base:1.4 pkgsrc-2009Q3:1.4.0.50 pkgsrc-2009Q3-base:1.4 pkgsrc-2009Q2:1.4.0.48 pkgsrc-2009Q2-base:1.4 pkgsrc-2009Q1:1.4.0.46 pkgsrc-2009Q1-base:1.4 pkgsrc-2008Q4:1.4.0.44 pkgsrc-2008Q4-base:1.4 pkgsrc-2008Q3:1.4.0.42 pkgsrc-2008Q3-base:1.4 cube-native-xorg:1.4.0.40 cube-native-xorg-base:1.4 pkgsrc-2008Q2:1.4.0.38 pkgsrc-2008Q2-base:1.4 cwrapper:1.4.0.36 pkgsrc-2008Q1:1.4.0.34 pkgsrc-2008Q1-base:1.4 pkgsrc-2007Q4:1.4.0.32 pkgsrc-2007Q4-base:1.4 pkgsrc-2007Q3:1.4.0.30 pkgsrc-2007Q3-base:1.4 pkgsrc-2007Q2:1.4.0.28 pkgsrc-2007Q2-base:1.4 pkgsrc-2007Q1:1.4.0.26 pkgsrc-2007Q1-base:1.4 pkgsrc-2006Q4:1.4.0.24 pkgsrc-2006Q4-base:1.4 pkgsrc-2006Q3:1.4.0.22 pkgsrc-2006Q3-base:1.4 pkgsrc-2006Q2:1.4.0.20 pkgsrc-2006Q2-base:1.4 pkgsrc-2006Q1:1.4.0.18 pkgsrc-2006Q1-base:1.4 pkgsrc-2005Q4:1.4.0.16 pkgsrc-2005Q4-base:1.4 pkgsrc-2005Q3:1.4.0.14 pkgsrc-2005Q3-base:1.4 pkgsrc-2005Q2:1.4.0.12 pkgsrc-2005Q2-base:1.4 pkgsrc-2005Q1:1.4.0.10 pkgsrc-2005Q1-base:1.4 pkgsrc-2004Q4:1.4.0.8 pkgsrc-2004Q4-base:1.4 pkgsrc-2004Q3:1.4.0.6 pkgsrc-2004Q3-base:1.4 pkgsrc-2004Q2:1.4.0.4 pkgsrc-2004Q2-base:1.4 pkgsrc-2004Q1:1.4.0.2 pkgsrc-2004Q1-base:1.4 pkgsrc-2003Q4:1.3.0.2 pkgsrc-2003Q4-base:1.3 netbsd-1-6-1:1.2.0.6 netbsd-1-6-1-base:1.2 netbsd-1-6:1.2.0.8 netbsd-1-6-RELEASE-base:1.2 pkgviews:1.2.0.4 pkgviews-base:1.2 buildlink2:1.2.0.2 buildlink2-base:1.2 netbsd-1-5-PATCH003:1.2; locks; strict; comment @# @; 1.6 date 2021.04.24.08.42.48; author wiz; state dead; branches; next 1.5; commitid ihp8gFiOzrvguwQC; 1.5 date 2010.02.11.22.37.49; author joerg; state Exp; branches; next 1.4; 1.4 date 2003.12.16.19.19.41; author martti; state Exp; branches; next 1.3; 1.3 date 2003.05.01.18.35.47; author jmmv; state Exp; branches; next 1.2; 1.2 date 2001.12.20.10.05.50; author martti; state Exp; branches; next 1.1; 1.1 date 2001.10.11.09.57.21; author martti; state Exp; branches; next ; desc @@ 1.6 log @radiusd-cistron: remove Upstream development stopped, recommended to switch to FreeRadius, in 2012. @ text @$NetBSD: patch-ab,v 1.5 2010/02/11 22:37:49 joerg Exp $ --- src/Make.inc.orig Thu Apr 10 13:51:47 2003 +++ src/Make.inc Tue Dec 16 20:10:28 2003 @@@@ -4,7 +4,7 @@@@ # # -RADIUS_DIR = /etc/raddb +RADIUS_DIR = ${DESTDIR}${PREFIX}/share/examples/raddb SERVER_OBJS = radiusd.o files.o acct.o pam.o version.o proxy.o \ exec.o auth.o timestr.o cache.o readusers.o @@@@ -115,8 +115,6 @@@@ install: # Install the binaries - $(DINSTALL) $(SBINDIR) - $(DINSTALL) $(BINDIR) $(DINSTALL) $(RADIUS_DIR) $(INSTALL) -m 755 -s radiusd $(SBINDIR)/radiusd $(INSTALL) -m 755 -s radrelay $(SBINDIR)/radrelay @@@@ -127,23 +125,11 @@@@ $(INSTALL) -m 755 checkrad.pl $(SBINDIR)/checkrad $(INSTALL) -m 755 radlast $(BINDIR) $(INSTALL) -m 755 radtest $(BINDIR) - # Install the man pages - @@for section in 1 5 8; do \ - $(DINSTALL) $(MANDIR)/man$$section; \ - for manfile in ../doc/*.$$section*; do \ - echo $(INSTALL) -m 644 $$manfile $(MANDIR)/man$$section; \ - $(INSTALL) -m 644 $$manfile $(MANDIR)/man$$section; \ - done ; \ - done - test -n "$(DBM)" || rm -f $(MANDIR)/man8/builddbm.8rad - @@if [ -d /etc/pam.d/ ] && [ ! -f /etc/pam.d/radius ]; then \ - $(INSTALL) -m 644 ../redhat/radiusd-pam /etc/pam.d/radius;\ - fi @@# Install the config files @@echo; echo "Creating/updating files in $(RADIUS_DIR)"; \ cd ../raddb; \ for i in [a-c]* [e-z]*; do \ - [ ! -f $(RADIUS_DIR)/$$i ] && cp $$i $(RADIUS_DIR)/$$i; \ + $(INSTALL) -m 444 $$i $(RADIUS_DIR)/$$i.sample; \ done; true @@# Install the dictionary files @@sh dict-install.sh ../raddb $(RADIUS_DIR) $(SHAREDIR) @ 1.5 log @DESTDIR support @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.4 2003/12/16 19:19:41 martti Exp $ @ 1.4 log @radiusd-cistron (1.6.7) cistron; urgency=medium * Fix checkrad.pl::cisco_snmp and usrhiper_snmp so that communities other than "public" can be used too. * Error out on superflous command line args (optind >= argc) * Encrypt CHAP-Password in radclient so that CHAP can be tested too * Add "wildcard" option to realms - if you set this option, you can match on the entire username using shell wildcards in the realms file. * If the nastype in /etc/raddb/naslist is set to 'none' for a nas, logins on that nas will have no simultaneous use restrictions imposed and those logins will not count towards the total amount of logins. * Removed 'raduse' and manpage. * Can disable radutmp with "-u none" (likewise radwtmp with "-W none", though we already had "-w" for that). * Call checkrad with an extra argument, the framed IP address. * Fix bug where $INCLUDEing a file without any records would cause the rest of the original file to be ignored * Support for 64-bit wide integers (integer8 type). If compiled with gcc, users file can contain both hex and decimal 64-bit values, and 64-bit values are printed in decimal. With other compilers (no "long long" support) only hex 64-bit values are supported. * Change "_" to "-" in dictionary.redback and change the 64 bits values to integer8. * Moved the dictionary files to /usr/local/share/radius. Now only /etc/raddb/dictionary remains that $INCLUDES all the others. For new installs only; existing installations won't be changed * Make integer in the format string of sprintf(buf, "%03d:%.20s", ..) in make_wtmp() unsigned (%u), otherwise the sprintf could in some cases (negative NAS-Port, very long NAS-name) overrun the buffer by one byte, overwriting the least significant byte of the return address on the stack with a \0. Not sure if this is exploitable or not, but it could be a security problem. * Make sure ut.login (struct radutmp member) is treated everywhere as a NON-zero terminated string. * Make sure unsigned integers are used in all places using lvalues (32 bits radius values), especially nas_port. * radrelay: update id of packet when retransmitting. * Print an error and free the request struct if we receive an unknown packet type. * rad_check_multi: if username/NAS/port match, don't count as dup. @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.3 2003/05/01 18:35:47 jmmv Exp $ d10 1 a10 1 +RADIUS_DIR = ${PREFIX}/share/examples/raddb @ 1.3 log @Convert to use bsd.pkg.install.mk: - Honour PKG_SYSCONFDIR. - Use OWN_DIRS_PERMS to handle the /var/log/radacct directory. - Use RCD_SCRIPTS to install a NetBSD rc.d compatible script. Bump PKGREVISION to 1. @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.2 2001/12/20 10:05:50 martti Exp $ d3 2 a4 2 --- src/Make.inc.orig Thu Dec 20 10:52:00 2001 +++ src/Make.inc Thu Dec 20 10:52:06 2001 d14 1 a14 1 @@@@ -118,8 +118,6 @@@@ d23 1 a23 1 @@@@ -131,35 +129,12 @@@@ d39 1 a39 1 # Install the config files d45 3 a47 17 done; \ for i in dictionary*; do \ - [ ! -f $(RADIUS_DIR)/$$i ] && cp $$i $(RADIUS_DIR)/$$i; \ - if [ "`find $$i -newer $(RADIUS_DIR)/$$i`" ]; then \ - echo "** $(RADIUS_DIR)/$$i"; \ - nt=1; \ - fi; \ - done; \ - if [ "$$nt" ]; then \ - echo "** The samples in ../raddb are newer than these files";\ - echo "** Please investigate and copy manually if appropriate";\ - echo ;\ - fi - - + $(INSTALL) -m 444 $$i $(RADIUS_DIR)/$$i; \ + done @ 1.2 log @Updated to 1.6.5. * Bug fixes * Clean up BSD password file support again * Fixed bug in auth.c wrt decoding of short password attributes. * Server now replies to Status-Server inquiries. * Add "-v" switch to radzap (suggested by Dan Harkless). * Add "-Z" switch to radiusd, prevents logging of passwords for -y (suggested by Dan Harkless). * Change "duplicate detected" message to actually show _what_ authentication packet causes the duplicate * Wrote manualpages for radlast,radzap, radwho, radclient, radtest, radwatch and raduse. Yes, documentation! * Added -P pidfile option to radiusd and radrelay See the doc/ChangeLog file for a comple list of changes! @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.1 2001/10/11 09:57:21 martti Exp $ d10 1 a10 1 +RADIUS_DIR = ${PREFIX}/etc/raddb @ 1.1 log @Added radiusd-cistron which was submitted in pkg/13274. @ text @d1 1 a1 1 $NetBSD$ d3 2 a4 2 --- src/Make.inc.orig Mon Apr 3 11:00:59 2000 +++ src/Make.inc Wed May 3 18:56:35 2000 d9 2 a10 2 -RADIUS_DIR = /etc/raddb +RADIUS_DIR = ${PREFIX}/etc/raddb d12 3 a14 3 SERVER_OBJS = radiusd.o dict.o files.o util.o md5.o attrprint.o \ acct.o radius.o pam.o log.o version.o proxy.o \ @@@@ -111,21 +111,20 @@@@ d18 21 a38 19 - install -d $(SBINDIR) - install -d $(BINDIR) - install -d $(RADIUS_DIR) - install -m 755 -s radiusd $(SBINDIR)/radiusd - install -m 755 -s radwho $(BINDIR) - install -m 755 -s raduse $(BINDIR) - install -m 755 -s radzap $(BINDIR) - install -m 755 -s radtest $(BINDIR) - install -m 755 checkrad.pl $(SBINDIR)/checkrad - install -m 755 radlast $(BINDIR) + ${INSTALL} -d $(RADIUS_DIR) + ${BSD_INSTALL_PROGRAM} radiusd $(SBINDIR)/radiusd + ${BSD_INSTALL_PROGRAM} radwho $(BINDIR) + ${BSD_INSTALL_PROGRAM} raduse $(BINDIR) + ${BSD_INSTALL_PROGRAM} radzap $(BINDIR) + ${BSD_INSTALL_PROGRAM} radtest $(BINDIR) + ${BSD_INSTALL_SCRIPT} ../scripts/radwatch ${SBINDIR}/radwatch + ${BSD_INSTALL_SCRIPT} checkrad.pl $(SBINDIR)/checkrad + ${BSD_INSTALL_SCRIPT} radlast $(BINDIR) d40 1 a40 1 @@echo "Creating/updating files in $(RADIUS_DIR)"; \ d44 1 a44 1 + [ ! -f $(RADIUS_DIR)/$$i ] && cp $$i $(RADIUS_DIR)/$$i.sample; \ d47 5 a51 5 [ ! -f $(RADIUS_DIR)/$$i ] && cp $$i $(RADIUS_DIR)/$$i; \ @@@@ -133,8 +132,4 @@@@ echo "** $(RADIUS_DIR)/$$i"; \ nt=1; \ fi; \ d56 1 d58 4 a61 1 + done; @