Commit graph

83 commits

Author SHA1 Message Date
joerg
dea558d552 DESTDIR support 2010-06-28 22:43:50 +00:00
joerg
2d997407ce Properly link libradius. 2010-05-29 08:51:11 +00:00
wiz
579796a3e5 Recursive PKGREVISION bump for jpeg update to 8. 2010-01-17 12:02:03 +00:00
joerg
2fd3cae7fb Bump revisions for libltdl update. 2009-12-21 20:34:05 +00:00
adrianp
2ae6078ec7 Give up MAINTAINER 2009-07-17 18:00:13 +00:00
joerg
c569c6a51f Mark packages as MAKE_JOBS_SAFE=no that failed in a bulk build with
MAKE_JOBS=2 and worked without.
2009-06-30 00:07:09 +00:00
joerg
62d1ba2bac Remove @dirrm entries from PLISTs 2009-06-14 18:03:28 +00:00
adrianp
8c4d899e87 Add CONFLICTS for upcoming freeradius 2.x import 2008-05-15 19:40:58 +00:00
tnn
ad6ceadd25 Per the process outlined in revbump(1), perform a recursive revbump
on packages that are affected by the switch from the openssl 0.9.7
branch to the 0.9.8 branch. ok jlam@
2008-01-18 05:06:18 +00:00
wiz
0ef636a244 Remove Ex-MASTER_SITE. From Zafer Aydogan. 2007-12-02 11:25:02 +00:00
adrianp
d5faee3467 Fix builds on Solaris using the SunPRO compiler. This should fix PR# 36186.
Also do some pkglintification while we are here.
2007-11-24 17:40:36 +00:00
adrianp
3e8393cbde Update to 1.1.7
Feature Improvements
* Updated LDAP documentation.
* Added note on DH parameters in eap.conf, and debugging messages which complain if DH is used, but not configured properly.
* Updated the Mikrotik dictionary. Added a note that the sample dictionary they supply is broken.
* Output more information on blocked threads, which should help narrow down which modules is causing the problem.
* Added more eDirectory support.
* rlm_ldap now prints out attributes in the standard format
* Enabled server-side handling of procedures in MySQL

Bug Fixes
* Added NT-Hash support for mschap_xlat.
* Corrected documentation to point to correct location of files.
* Checks for more recent FreeBSD versions.
* uses -DLDAP_DEPRECATED to avoid OpenLDAP crashes.
* Use correct value for authentication name in rlm_mschap.
* Fix over-ride for usernames when use_tunneled_reply = yes.
2007-09-18 22:15:07 +00:00
jlam
4390d56940 Make it easier to build and install packages "unprivileged", where
the owner of all installed files is a non-root user.  This change
affects most packages that require special users or groups by making
them use the specified unprivileged user and group instead.

(1) Add two new variables PKG_GROUPS_VARS and PKG_USERS_VARS to
    unprivileged.mk.  These two variables are lists of other bmake
    variables that define package-specific users and groups.  Packages
    that have user-settable variables for users and groups, e.g. apache
    and APACHE_{USER,GROUP}, courier-mta and COURIER_{USER,GROUP},
    etc., should list these variables in PKG_USERS_VARS and PKG_GROUPS_VARS
    so that unprivileged.mk can know to set them to ${UNPRIVILEGED_USER}
    and ${UNPRIVILEGED_GROUP}.

(2) Modify packages to use PKG_GROUPS_VARS and PKG_USERS_VARS.
2007-07-04 20:54:31 +00:00
adrianp
e6894832f1 Update to 1.1.6
Feature Improvements
* Added more dictionaries

Bug Fixes
* Corrected typo in rlm_pap.c (closes #440)
* Corrected typo in src/main/auth.c (closes #437)
* Suppress SSL error messages if error is zero. (closes #436)
* Don't complain about "Error in read client certificate A" if we expect to
  read it in the next packet. Fix based on patch by Dan Lukes.
* Corrected nearly 30 bugs found by Coverity See also http://scan.coverity.com
* Don't die on HUP. Instead leak memory (sorry). After a few hundred HUP's, the
  server will have leaked a few megabytes of memory, and you should probably
  re-start it. It's ugly, but better than dying. (Closes #426)
* Corrected a few double free's
* Corrected typo in radrelay, which prevented it from working
* Made Firebird module build
* Fixed bug in PostgreSQL module that caused server crash.
* Fixed bug in SQL module that could cause server to crash.
2007-04-14 10:16:47 +00:00
adrianp
9884d95634 Update to 1.1.5
2006.03.05 Version 1.1.5 has been released.
The focus of this release is stability.

Feature Improvements
* Added more dictionaries
* Dictionary files now MUST NOT be globally writable.
* Configuration files now MUST NOT be globally writable.
* Be more aggressive about freeing memory on clean exit.
* Updated rlm_python.
* Added another experimental SQL IP Pool module

Bug Fixes
* Corrected base64 decoding in rlm_pap
* Don't retransmit accounting packets. The NAS should do this.
* Handle Client-Error in EAP-SIM. (Closes #419)
* Port OpenSSL locking fixes from CVS head. This makes PEAP more stable on i
  some systems.
* Require Message-Authenticator in Status-Server packets.
* Correct Tunnel-Medium-Type VALUEs in dictionary.rfc2868.
* Increase buffer size for dynamic expansion, which allows longer SQL queries.
  (Closes #405)
* Use correct line number when there's a parse error in one of the
  configuration sections. (Closes #421)
* Terminate SSL sessions in EAP on error, rather than continuing in some cases.
* Increase buffer size to allow parsing of long octet strings,
* Fix string termination on xlat in rlm_perl.
2007-04-09 15:56:26 +00:00
wiz
601583c320 Whitespace cleanup, courtesy of pkglint.
Patch provided by Sergey Svishchev in private mail.
2007-02-22 19:26:05 +00:00
adrianp
0043c7d545 Update to 1.1.4
* Major enhancements to rlm_pap, that make "encryption_scheme"
a think of the past.  See "man rlm_pap" for details.
* Added SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS flag to use
work-arounds that enable Windows Vista clients to work.
* Added preliminary code to support Firebird.
Use at your own risk!
* Send MS-CHAP2-Success, which makes EAP-TTLS/MSCHAP work on more
platforms.
* Add a new "reply-name" directive in rlm_sqlcounter to define the
name of the reply attribute.
* Added more dictionaries and attributes
* Print ntlm_auth failure reason in Module-Failure-Message
* radsqlrelay is able to get the DB password from a file instead
of command line.

Bug fixes
* Fix a parse error in the digest module, where malformed
digest requests would result in the user being accepted.  Oops...
* VALUEs can only be defined for 'integer', to catch mistakes
with setting VALUEs for type 'string'.
* Better parsing of VALUE names, so that values starting with
a digit work correctly.
* Check return from malloc
* Fix a double free() in rlm_eap_tls.c
* Check return code of malloc() during initialization.
* Fix a corner case where the proxy port isn't set either in
radiusd.conf or in proxy.conf.
2007-02-17 18:36:23 +00:00
hira
2f44d282ef Fix PLIST for pgsql option. 2006-11-21 11:46:29 +00:00
adrianp
c0d722be51 Update to 1.1.3:
This version has been released to fix build issues in 1.1.2. The build
tools (autoconf, libtool, libltld) have been upgraded to a recent version,
and the server now builds "out of the box" on more platforms. Other fixes
include:

  * More dictionary updates
  * Oracle support for radsqlrelay
  * Security and portability fixes to rlm_otp
  * Experimental module to store IP's in an SQL table.
  * Miscellaneous bug fixes
2006-09-10 22:35:22 +00:00
adrianp
e3dc051511 Whitespace police. 2006-08-11 16:23:39 +00:00
adrianp
4849af0b30 Add an extra MESSAGE if the user has selected to compile freeradius with
PAM support.
From discussions with John Nemeth.
2006-08-11 16:22:04 +00:00
adrianp
8ea989d41f Default to running radiusd as a non-root user
bump to nb2
2006-08-10 10:55:51 +00:00
adrianp
d9be77c8ee Add in PAM support
Fix mySQL PLIST
Fix all PLISTs to avoid a nightmare when the nb number is changed
Bump to nb1
2006-08-09 16:42:09 +00:00
adrianp
94c358342b Update to 1.1.2
* Updated dictionaries (as always),
* Extended Ascend "abinary" support for Juniper,
* Configurable "cipher_list" for EAP methods that use TLS,
* Additional checks on cert issuer validation for EAP methods that use TLS,
* SQL IODBC bug fixes,
* Updates to the LDAP module,
* Better catching of errors in the config files,
* Miscellaneous other fixes

In addition to this add an extra option to options.mk which is
"freeradius-simul-use".  This will enable Simultaneous-Use and is
enabled by default.  If you disable it freeradius can be built without
depending on the net-snmp package.  Original idea from John Nemeth.
2006-07-14 22:10:01 +00:00
adrianp
354706327a pkglintification
Add kerberos support - Patch from Kevin Sullivan in PR #33732
Bump to nb4
2006-07-13 22:20:35 +00:00
jlam
ee68c93314 LIBTOOL_OVERRIDE generally doesn't need to be specified anymore... just
set OVERRIDE_DIRDEPTH to find any libtool scripts deeper in the WRKSRC
tree unless they're named something other than "libtool".

SHLIBTOOL_OVERRIDE generally doesn't need to be specified either -- just
define it to the empty list and shlibtool-override will look for libtool
scripts.
2006-07-07 15:49:30 +00:00
ghen
2eca3d9f2c The databases/openldap package has been split in -client and -server component
packages.  Convert LDAP-based applications to depend on openldap-client, and
bump PKGREVISION for those that depend on it by default.
2006-05-31 18:22:23 +00:00
joerg
6bd31fd65e Add missing files to PLIST. Fix interpreter path in bin/radsqlrelay.
Bump revision.
2006-04-10 15:25:04 +00:00
reed
5abef9be14 Over 1200 files touched but no revisions bumped :)
RECOMMENDED is removed. It becomes ABI_DEPENDS.

BUILDLINK_RECOMMENDED.foo becomes BUILDLINK_ABI_DEPENDS.foo.

BUILDLINK_DEPENDS.foo becomes BUILDLINK_API_DEPENDS.foo.

BUILDLINK_DEPENDS does not change.

IGNORE_RECOMMENDED (which defaulted to "no") becomes USE_ABI_DEPENDS
which defaults to "yes".

Added to obsolete.mk checking for IGNORE_RECOMMENDED.

I did not manually go through and fix any aesthetic tab/spacing issues.

I have tested the above patch on DragonFly building and packaging
subversion and pkglint and their many dependencies.

I have also tested USE_ABI_DEPENDS=no on my NetBSD workstation (where I
have used IGNORE_RECOMMENDED for a long time). I have been an active user
of IGNORE_RECOMMENDED since it was available.

As suggested, I removed the documentation sentences suggesting bumping for
"security" issues.

As discussed on tech-pkg.

I will commit to revbump, pkglint, pkg_install, createbuildlink separately.

Note that if you use wip, it will fail!  I will commit to pkgsrc-wip
later (within day).
2006-04-06 06:21:32 +00:00
joerg
fba5c2863b Use libtool PLIST handling, it works now. Add some missing symlinks
for libtool archives, remove the .a and .so entries. Bump revision.
Add DragonFly detection for shared libraries. Always try to find -lssl
with -lcrypto, unbreaking the test at least on DragonFly, but should
not harm elsewhere.
2006-03-22 20:53:41 +00:00
adrianp
ba374271a4 Fix typo which resulted in a failed install.
Issue found by Wolfgang Solfrank.
2006-03-22 15:07:41 +00:00
adrianp
3b80fce15a Remove some old hacks that are no longer needed
Use our libtool
Update to 1.1.1

Fixes security issue (DoS):
	http://secunia.com/advisories/19300/

>         Security fixes
>         * Additional state checking in the EAP-MSCHAPv2 module.
>           Bug found by Steffen Schuster.
>
>         Feature improvements
>         * More dictionary updates
>         * Additional tests and fixes for Digest module from Phillipe Sultan.
>         * Add new "phone" response mode to rlm_otp/cryptocard.
>         * Put the eap sessions into a tree, so that looking them up is very
>           fast, and no longer O(n) in the number of sessions.
>         * Install the schema examples for a set of backends with the rest
>           of the documentation.
>         * Add support for xlat expansion of attributes from LDAP.
>
>         Bug fixes
>         * Fix rlm_perl crash. (closes: #348)
>         * Fix handling of CoA-Request packets (close #344).  Also correct
>           name of CoA packets.
>         * Fix an error on x86_64 machines when reading dictionaries.
>           (closes: #312)
>         * Fix compilation errors on FreeBSD and NetBSD because of rlm_otp
>           module. (closes: #314 #328)
>         * Workaround Cisco bug in State attribute handling in rlm_otp.
>         * Support LP64 for async mode in rlm_otp.
>         * Fix libtool problems on Debian with rlm_eap_peap and rlm_eap_ttls
>           modules. (closes: #75)
>         * Make "use_tunneled_reply" work properly for PEAP.
>         * Copy the whole string when getting a one-to-one-mapped attribute
>           from LDAP (closes: #261)
>         * Fix net-snmp's ucd-snmp compatibility mode.
2006-03-21 23:08:08 +00:00
joerg
5911def816 Recursive revision bump / recommended bump for gettext ABI change. 2006-02-05 23:08:03 +00:00
adrianp
e9103962d4 Update to 1.1.0
> FreeRADIUS 1.1.0 ; $Date: 2006/01/04 05:55:19 $, urgency=low
>         Feature improvements
>         * rlm_ldap has "set_auth_type" configuration option, which should
>           address some configuration problems when using it.
>         * Fix MIT Kerberos bug
>         * Modules can be load balanced, both in isolation and redundantly.
>           See doc/load-balance.txt for more information.
>         * rlm_perl is now marked "stable"
>         * N-tier certificate patch from Mohammed Petiwala.
>         * Copied dictionaries from the CVS head (many, many, more vendors)
>         * Enabled support for weird VSA formats, like Lucent and Starent.
>         * Support encrypted IP address and integers, for Juniper clients.
>         * Add PEAP machine authentication support in module "rlm_mschap".
>         * Support User-Password field encryption in digest mode.
>         * rlm_x99_token has become rlm_otp (with lots of changes).
>         * Add rlm_sqlcounter to the list of stable modules.
>         * Read MySQL specific options in sections [freeradius] and [client]
>           from file "my.cnf".
>         * Support the ${Cisco-AVPair[n]} syntax.
>         * Execute modules in {Pre,Post}-Proxy-Type stanzas.
>         * Add new options to radclient to run stress tests on the server.
>         * New module "rlm_sql_log" to postpone the storage of accounting data
>           in a SQL database. See rlm_sql_log(5) manpage.
>         * New program "radsqlrelay" which sends the SQL logfile according to
>           the SQL server's capabilities.
>
>         Bug fixes
>         * 306 (HUP when built with threads, but executed with -s)
>         * 285 (more attributes in dictionary.cisco.vpn3000)
>         * rlm_digest has a number of bug fixes to authentication types.
>         * Don't leak memory in module "rlm_sql".
>         * Update the dictionaries, so that VALUEs with the same name,
>           but different numbers, aren't allowed.
>         * Queue the request before looking for available threads.
>         * Don't free the check items after we received the proxy reply.
>         * Expand config variables in included files, too.
>         * Check the return value of accounting modules and don't proxy
>           invalid requests.
>         * In rlm_passwd, don't close a file stream more than once.
>         * Fix format string errors in rlm_sql.c, spotted by Primoz Bratanic.
>         * Walk the whole string in when escaping strings in rlm_ldap.
>         * Include crypt.h if it is available so we get a prototype for crypt(),
>           spotted by Konstantin Kubatkin.
>         * Removed (for almost all uses) length restrictions on vendor names
>           and VALUE names.
>         * Don't leak memory when proxying an Access-Challenge response.
>         * Make the sleep time user-defined, so radrelay can send more than
>           7 requests/s.
>         * Fix a memory leak in rlm_checkval.
>         * radclient doesn't resend countless times packets with invalid
>           signature.
>         * Fix segfault and mem leak in rlm_pam.
2006-02-05 15:34:08 +00:00
xtraeme
eadc9131c8 Bump PKGREVISION due to mysql.buildlink3.mk changes (default mysql
pkg has been changed to 5.x). Reminded by wiz... thanks.
2006-01-08 18:35:08 +00:00
jlam
dc9594e09d Remove USE_PKGINSTALL from pkgsrc now that mk/install/pkginstall.mk
automatically detects whether we want the pkginstall machinery to be
used by the package Makefile.
2005-12-29 06:21:30 +00:00
rillig
579e977969 Ran "pkglint --autofix", which corrected some of the quoting issues in
CONFIGURE_ARGS.
2005-12-05 23:55:01 +00:00
rillig
b71a1d488b Fixed pkglint warnings. The warnings are mostly quoting issues, for
example MAKE_ENV+=FOO=${BAR} is changed to MAKE_ENV+=FOO=${BAR:Q}. Some
other changes are outlined in

    http://mail-index.netbsd.org/tech-pkg/2005/12/02/0034.html
2005-12-05 20:49:47 +00:00
adrianp
8e27982cd1 Remove unneeded undef
Add -fPIC for amd64 platform to fix build.  Reported in PR 31225 by Eric Radman
2005-11-28 23:44:02 +00:00
adrianp
30aa02b2ea PLIST fixes pointed out by bulk builds
Bump to nb2
2005-09-22 16:13:17 +00:00
adrianp
814d8edbba Add logging fix from FreeRADIUS CVS pointed out by aland (at) ox.org
Bump to nb1
2005-09-20 18:46:32 +00:00
adrianp
83e0875b78 Update to 1.0.5
>         Security Fixes
>         * SQL injection attack in the module "rlm_sqlcounter".
>         * Buffer overflows in the module "rlm_sqlcounter".
>         * Expansion of variable %t may write 26 bytes beyond the buffer
>           bound. Primoz Bratanic is credited with the discovery of these
>           three bugs.
>
>         Bug fixes
>         * Don't de-reference a NULL pointer if the auth-type is unknown
>           in the function rad_check_password().
>         * Escape more characters in the LDAP queries.
>           Bug found by Suse engineers.
>         * In rlm_sql_unixodbc, don't call rad_malloc from sql_error(),
>           it leaks memory.
>         * Fix an off-by-one error in the module rlm_sql_unixodbc.
>           Bug found by Suse engineers.
>         * In rlm_sql, resize the buffer for the value of SQL-User-Name.
>         * Initialize memory for a new SQL socket in the module rlm_sql.
>         * Don't add too many attributes after running an external program.
>           Bug found by Suse engineers.
>         * Fix an off-by-one error in the function getthing().
>         * snprintf() and vsnprintf() replacements were not compiled if
>           the autoconf tests didn't find the functions.
>         * Don't use vsprintf() anymore, but the replacement for vsnprintf()
>           in libradius instead.
>         * The function decode_attribute() may write beyond buffer bounds.
>           Bug found by Suse engineers.
>         * Fix a memset() in the function request_enqueue() which was
>           begining at the wrong address. Bug found by Matthias Ruttman.
>         * Fix an off-by-one error in the function xlat_copy().
>           Bug found by Primoz Bratanic.
>         * Fix other off-by-one errors in module "rlm_unix", too.
>           Bug found by Allan Bazinet.
>         * Fix a 2-byte over-run read in function rad_decode().
>         * Update thread pool queue properly.
>         * Autonconf tests try first any user-specified directory,
>           otherwise they may pick up the wrong version.
>         * Delete the autoconf tests for the libldap dependancies.
>         * Install all the regular files under the "doc" directory.
>         * Distinguish between exit code <0 (failure) and >0 (reject)
>           in Exec-Program-Wait. Patch from Thor Spruyt.
>         * Make Expiration work.
>         * Clean up the code for opening a proxy socket.
>         * When finding a realm to proxy to, if all are dead, wake them
>           if wake_all_if_all_dead is true.
>         * In radwho, print the NAS-Port as unsigned int.
>         * Use extended regex instead of basic regex in rlm_attr_filter.
>         * Catch the case where someone deletes a directory that rlm_detail
>           is using.
>         * Use the variable $(LDFLAGS) when linking a module.
>         * Ignore the Stripped-User-Name when a realm has the "nostrip"
>           directive.
>         * Add support for NT-Password in rlm_pap.
>         * In rlm_sqlcounter, use the time left to the next reset if it's
>           inferior to the time left in the counter.
>         * Calculate Message-Authenticator correctly for Accounting-Request
>           and Accounting-Response.  Bug found by Paolo Rotela.
>         * Build on MAC OS X.  Still need --disable-shared, though.
>         * Fix bug #255 (crash with expired CRL's, etc.)
>         * Fix quote removal of the values from a SQL database.
>         * Reap the zombie process after a command run from "Exec-Program".
>         * Allow to cancel proxy of accounting with "Proxy-To-Realm := LOCAL".
>         * Don't copy VSA's to an Access-Reject packet.
2005-09-11 12:57:34 +00:00
tv
b8b30c4d80 Convert to PKG_OPTIONS_GROUP syntax. 2005-08-31 18:32:47 +00:00
tv
8bae39f01e - Make gdbm optional, but keep it as default. (Partial dbm support using
a builtin Berkeley DB 1.8x can now be used with option "bdb -gdbm"; no
  dbm support at all can be selected with "-gdbm".)

- Specify --with/--without exactly once per option.

- Merge postgresql support to a single option (pgsql), and correspondingly
  use pgsql.buildlink3.mk to pick the builder's desired implementation.
  This aligns freeradius with the rest of pkgsrc, wrt pgsql support.
2005-08-29 14:28:12 +00:00
adrianp
933cb5b445 PLIST fix as pointed out by Krister on pkgsrc-bulk@
Bump PKGREVISION
2005-08-14 18:01:54 +00:00
jlam
3e474a90d8 Get rid of USE_PERL5. The new way to express needing the Perl executable
around at either build-time or at run-time is:

	USE_TOOLS+=	perl		# build-time
	USE_TOOLS+=	perl:run	# run-time

Also remove some places where perl5/buildlink3.mk was being included
by a package Makefile, but all that the package wanted was the Perl
executable.
2005-07-16 01:19:06 +00:00
adrianp
491f4fd604 - Update to freeradius 1.0.4
- The security issues mentioned in this update were incorporated
  into patch-ak previously and a security advisory was already
  made in regards to this.
> FreeRADIUS 1.0.4 ; Date: 2005/06/11 22:46:52, urgency=medium
>
>         * Fix installation problem.
>         * Increase a buffer size, so radrelay doesn't truncate values.
>         * Updates in the documentation. Patches from Thor Spruyt.
>
> FreeRADIUS 1.0.3 ; Date: 2005/06/03 17:15:11, urgency=high
>         Security Fixes
>         * Always escape the strings in the SQL module.
>         * Check buffer bound when input character needs escaping in
>           the SQL module. Bug found by Primoz Bratanic.
>
>         Bug fixes
>         * Return EAP-Fail in Access-Reject, rather than an empty Access-Reject
>         * Don't send Proxy-State from home server in TTLS.
>         * Fixes for forking external programs, so the server doesn't
>           suddenly stop processing requests, or stop forking programs.
>         * radzap now works, but it's command-line options have changed
>           completely, and it's a shell script.
>         * radwho has updated command-line options, and no longer reads
>           Unix "utmp" files.
>         * Fix bug in calling checkrad script with NAS port > 9999999
>         * Fix long-standing bug when both crypt and pthreads are in use
>         * Don't SEGV when rlm_sql gets 'NULL' value from request.
>         * Re-arrange code in radrelay to not duplicate accounting packets.
>         * In rlm_attr_rewrite, change the value when the attribute type
>           is different from string.
2005-07-09 17:25:00 +00:00
jlam
585534220c Remove USE_GNU_TOOLS and replace with the correct USE_TOOLS definitions:
USE_GNU_TOOLS	-> USE_TOOLS
	awk		-> gawk
	m4		-> gm4
	make		-> gmake
	sed		-> gsed
	yacc		-> bison
2005-05-22 20:07:36 +00:00
adrianp
70936778cc - Add fix for recent security issue 2005-05-18 21:58:45 +00:00
reed
ee8be9d0c1 RCD_SCRIPTS_EXAMPLEDIR is no longer customizable.
And always is defined as share/examples/rc.d
which was the default before.

This rc.d scripts are not automatically added to PLISTs now also.
So add to each corresponding PLIST as required.

This was discussed on tech-pkg in late January and late April.

Todo: remove the RCD_SCRIPTS_EXAMPLEDIR uses in MESSAGES and elsewhere
and remove the RCD_SCRIPTS_EXAMPLEDIR itself.
2005-05-02 20:33:57 +00:00