freeradius.git
10 years agoFix ref to release branch release_3_0_1
Alan T. DeKok [Tue, 14 Jan 2014 01:13:56 +0000 (20:13 -0500)]
Fix ref to release branch

10 years agoThis is no longer true
Alan T. DeKok [Mon, 13 Jan 2014 19:22:11 +0000 (14:22 -0500)]
This is no longer true

10 years agoFinal before 3.0.1
Alan T. DeKok [Mon, 13 Jan 2014 19:20:03 +0000 (14:20 -0500)]
Final before 3.0.1

10 years ago<sigh> Gnu Make is enormously stupid
Alan T. DeKok [Mon, 13 Jan 2014 15:55:17 +0000 (10:55 -0500)]
<sigh>  Gnu Make is enormously stupid

10 years agoFix the build by working around GNU Make's issues
Alan T. DeKok [Mon, 13 Jan 2014 15:35:53 +0000 (10:35 -0500)]
Fix the build by working around GNU Make's issues

10 years agoRevert "Revert "Move dependency checks to one-time build""
Alan T. DeKok [Sun, 12 Jan 2014 00:03:59 +0000 (19:03 -0500)]
Revert "Revert "Move dependency checks to one-time build""

This reverts commit f0b9b43d9a2c73bbf1c43a372a0397cb83d32f7d.

Which was erroneously blamed for breaking the build

10 years agoBuilding the objects requires the headers
Alan T. DeKok [Sat, 11 Jan 2014 21:24:49 +0000 (16:24 -0500)]
Building the objects requires the headers

Not C / H files

10 years agoUpdate the bugs document
Arran Cudbard-Bell [Tue, 7 Jan 2014 11:36:28 +0000 (11:36 +0000)]
Update the bugs document

10 years agoUpdate changelog
Arran Cudbard-Bell [Fri, 10 Jan 2014 11:50:25 +0000 (11:50 +0000)]
Update changelog

10 years agoCorrect declarations for 'check_config' global
Arran Cudbard-Bell [Fri, 10 Jan 2014 11:39:17 +0000 (11:39 +0000)]
Correct declarations for 'check_config' global

sizeof(int) != sizeof(bool) on some systems

10 years agoRevert "Move dependency checks to one-time build"
Arran Cudbard-Bell [Fri, 10 Jan 2014 11:26:49 +0000 (11:26 +0000)]
Revert "Move dependency checks to one-time build"

This reverts commit fe77ef86428a31db3088ec7435440a31e37c685c.

10 years agoFix the other snprintf in rlm_sqlcounter. Closes #498
Arran Cudbard-Bell [Fri, 10 Jan 2014 10:55:40 +0000 (10:55 +0000)]
Fix the other snprintf in rlm_sqlcounter. Closes #498

10 years agoAcctsession time is unsigned int
Alan T. DeKok [Thu, 9 Jan 2014 13:32:10 +0000 (08:32 -0500)]
Acctsession time is unsigned int

10 years agoStupid warnings when building under ubuntu
Arran Cudbard-Bell [Tue, 7 Jan 2014 23:08:29 +0000 (23:08 +0000)]
Stupid warnings when building under ubuntu

10 years agoMove dependency checks to one-time build
Alan T. DeKok [Tue, 7 Jan 2014 21:36:31 +0000 (16:36 -0500)]
Move dependency checks to one-time build

So we don't re-run "shell ... grep ... sed ..." on every make

This makes "time make -j 4 all" on a clean build drop ~50% in
time

10 years agoTemporarily remove static build from matrix until it's properly supported
Arran Cudbard-Bell [Tue, 7 Jan 2014 21:35:22 +0000 (21:35 +0000)]
Temporarily remove static build from matrix until it's properly supported

10 years agoTypos in comment
Alan T. DeKok [Tue, 7 Jan 2014 21:19:13 +0000 (16:19 -0500)]
Typos in comment

10 years agoUpdate ChangeLog
Arran Cudbard-Bell [Tue, 7 Jan 2014 20:18:04 +0000 (15:18 -0500)]
Update ChangeLog

10 years agoFix issues with previous commit
Arran Cudbard-Bell [Tue, 7 Jan 2014 20:00:50 +0000 (20:00 +0000)]
Fix issues with previous commit

10 years agoBuild fixes WITHOUT_ACCOUNTING
Alan T. DeKok [Tue, 7 Jan 2014 19:54:15 +0000 (14:54 -0500)]
Build fixes WITHOUT_ACCOUNTING

10 years agoBuild fixes WITHOUT_ACCOUNTING
Alan T. DeKok [Tue, 7 Jan 2014 19:53:00 +0000 (14:53 -0500)]
Build fixes WITHOUT_ACCOUNTING

10 years agoBuild fixes WITH_ACCOUNTING
Alan T. DeKok [Tue, 7 Jan 2014 19:52:26 +0000 (14:52 -0500)]
Build fixes WITH_ACCOUNTING

10 years agoBuild warnings WITHOUT_ACCOUNTING
Alan T. DeKok [Tue, 7 Jan 2014 19:50:25 +0000 (14:50 -0500)]
Build warnings WITHOUT_ACCOUNTING

10 years agoBuild fixes WITHOUT_ACCOUNTING
Alan T. DeKok [Tue, 7 Jan 2014 19:49:34 +0000 (14:49 -0500)]
Build fixes WITHOUT_ACCOUNTING

10 years agoBuild fixes WITHOUT_ACCOUNTING
Alan T. DeKok [Tue, 7 Jan 2014 19:48:21 +0000 (14:48 -0500)]
Build fixes WITHOUT_ACCOUNTING

10 years agoReport a non-zero exit status if after forking, the child encounters an error during...
Arran Cudbard-Bell [Tue, 7 Jan 2014 19:47:28 +0000 (19:47 +0000)]
Report a non-zero exit status if after forking, the child encounters an error during the rest of server initialisation

Tests to follow

10 years agoBuild fixes WITHOUT_UNLANG
Alan T. DeKok [Tue, 7 Jan 2014 19:46:39 +0000 (14:46 -0500)]
Build fixes WITHOUT_UNLANG

10 years agoBuild warnings WITHOUT_UNLANG
Alan T. DeKok [Tue, 7 Jan 2014 19:46:26 +0000 (14:46 -0500)]
Build warnings WITHOUT_UNLANG

10 years agoBuild fixes for WITHOUT_PROXY
Alan T. DeKok [Tue, 7 Jan 2014 19:39:56 +0000 (14:39 -0500)]
Build fixes for WITHOUT_PROXY

10 years agoBuild fixes for WITHOUT_PROXY
Alan T. DeKok [Tue, 7 Jan 2014 19:38:44 +0000 (14:38 -0500)]
Build fixes for WITHOUT_PROXY

10 years agoBuild fixes for WITHOUT_PROXY
Alan T. DeKok [Tue, 7 Jan 2014 19:37:41 +0000 (14:37 -0500)]
Build fixes for WITHOUT_PROXY

10 years agoWalk the main packet list, not the proxy one
Alan T. DeKok [Tue, 7 Jan 2014 19:36:16 +0000 (14:36 -0500)]
Walk the main packet list, not the proxy one

When we're closing inbound non-proxy TCP sockets

10 years agoBuild warnings WITHOUT_PROXY
Alan T. DeKok [Tue, 7 Jan 2014 19:33:44 +0000 (14:33 -0500)]
Build warnings WITHOUT_PROXY

10 years agoBuild warnings WITHOUT_PROXY
Alan T. DeKok [Tue, 7 Jan 2014 19:32:47 +0000 (14:32 -0500)]
Build warnings WITHOUT_PROXY

10 years agoBuild warnings WITHOUT_PROXY
Alan T. DeKok [Tue, 7 Jan 2014 19:32:35 +0000 (14:32 -0500)]
Build warnings WITHOUT_PROXY

10 years agoShould fail if attribute doesn't exist...
Arran Cudbard-Bell [Tue, 7 Jan 2014 16:38:47 +0000 (16:38 +0000)]
Should fail if attribute doesn't exist...

10 years agoMore minor fixes (From aland)
Arran Cudbard-Bell [Tue, 7 Jan 2014 16:34:32 +0000 (16:34 +0000)]
More minor fixes (From aland)

10 years agoOutput debug when inserting suppressed attributes into the hash table
Arran Cudbard-Bell [Tue, 7 Jan 2014 16:09:03 +0000 (16:09 +0000)]
Output debug when inserting suppressed attributes into the hash table

10 years agoIf there's no da, don't insert it into the hash table
Alan T. DeKok [Tue, 7 Jan 2014 15:19:08 +0000 (10:19 -0500)]
If there's no da, don't insert it into the hash table

10 years agoUpdate ChangeLog
Arran Cudbard-Bell [Mon, 6 Jan 2014 18:21:25 +0000 (13:21 -0500)]
Update ChangeLog

10 years agoUpdate ChangeLog
Arran Cudbard-Bell [Mon, 6 Jan 2014 18:15:07 +0000 (13:15 -0500)]
Update ChangeLog

10 years agoWe need the value of the da pointer, not a pointer to the value of the da pointer...
Arran Cudbard-Bell [Mon, 6 Jan 2014 18:11:39 +0000 (18:11 +0000)]
We need the value of the da pointer, not a pointer to the value of the da pointer (when checking for surpressed attributes)

10 years agoand mschap...
Arran Cudbard-Bell [Mon, 6 Jan 2014 17:56:06 +0000 (17:56 +0000)]
and mschap...

10 years agoand one more...
Arran Cudbard-Bell [Mon, 6 Jan 2014 17:49:46 +0000 (17:49 +0000)]
and one more...

10 years agoMore stupid Apple deprecated warnings...
Arran Cudbard-Bell [Mon, 6 Jan 2014 17:45:26 +0000 (17:45 +0000)]
More stupid Apple deprecated warnings...

10 years agoDisable proxy loopback check
Arran Cudbard-Bell [Mon, 6 Jan 2014 15:03:10 +0000 (15:03 +0000)]
Disable proxy loopback check

10 years agoAdd freeradius-config package
Arran Cudbard-Bell [Sun, 5 Jan 2014 19:24:10 +0000 (19:24 +0000)]
Add freeradius-config package

10 years agoFix travis configure line...
Arran Cudbard-Bell [Sun, 5 Jan 2014 15:15:51 +0000 (15:15 +0000)]
Fix travis configure line...

10 years agoDon't use wrapper headers
Arran Cudbard-Bell [Sun, 5 Jan 2014 14:36:23 +0000 (14:36 +0000)]
Don't use wrapper headers

10 years agoAdd radpaths to radsniff.c
Arran Cudbard-Bell [Sun, 5 Jan 2014 13:26:34 +0000 (13:26 +0000)]
Add radpaths to radsniff.c

10 years agoRevert "Add "wrapper" files for system headers which produce errors."
Arran Cudbard-Bell [Sun, 5 Jan 2014 13:24:35 +0000 (13:24 +0000)]
Revert "Add "wrapper" files for system headers which produce errors."

This reverts commit c8796ab211d7806b2dc616e2f33b73260848f19a.

10 years agoDon't always add $(OPENSSL_LIBS) to LIBS, this makes the debian dependency stuff...
Arran Cudbard-Bell [Sun, 5 Jan 2014 12:54:26 +0000 (12:54 +0000)]
Don't always add $(OPENSSL_LIBS) to LIBS, this makes the debian dependency stuff complain

10 years agoAllow user to specify locations of libpcap includes/libs, and use FR_SMART_INCLUDE...
Arran Cudbard-Bell [Sun, 5 Jan 2014 12:53:47 +0000 (12:53 +0000)]
Allow user to specify locations of libpcap includes/libs, and use FR_SMART_INCLUDE to locate headers so non-standard directories get added with -isystem

10 years agoCustom openssl include dir should be included with -isystem not -I
Arran Cudbard-Bell [Sat, 4 Jan 2014 17:29:22 +0000 (17:29 +0000)]
Custom openssl include dir should be included with -isystem not -I

10 years agoAdd "wrapper" files for system headers which produce errors.
Alan T. DeKok [Sat, 4 Jan 2014 15:27:02 +0000 (10:27 -0500)]
Add "wrapper" files for system headers which produce errors.

This allows us to build with ZERO compile-time warnings.

10 years agoMake tests depend on each other
Alan T. DeKok [Fri, 3 Jan 2014 16:50:26 +0000 (11:50 -0500)]
Make tests depend on each other

10 years agokrb5-config doesn't provide -I flag (in CFLAGS) for directory containing comm_err...
Arran Cudbard-Bell [Fri, 3 Jan 2014 17:44:27 +0000 (17:44 +0000)]
krb5-config doesn't provide -I flag (in CFLAGS) for directory containing comm_err.h, so we need to search for it ourselves

10 years agoFix for clean rules with libtool, too
Alan T. DeKok [Fri, 3 Jan 2014 16:48:19 +0000 (11:48 -0500)]
Fix for clean rules with libtool, too

10 years agoSet the directory && method for calling test binaries
Alan T. DeKok [Fri, 3 Jan 2014 15:21:14 +0000 (10:21 -0500)]
Set the directory && method for calling test binaries

10 years agoThe "add relink target" code should also add a clean rule
Alan T. DeKok [Fri, 3 Jan 2014 15:07:24 +0000 (10:07 -0500)]
The "add relink target" code should also add a clean rule

So that the main clean rule doesn't get polluted with libtool crap

10 years agoFix more debian package paths
Arran Cudbard-Bell [Fri, 3 Jan 2014 12:42:24 +0000 (12:42 +0000)]
Fix more debian package paths

10 years agoChange path in debian monit patch
Arran Cudbard-Bell [Fri, 3 Jan 2014 12:21:27 +0000 (12:21 +0000)]
Change path in debian monit patch

10 years agoRemoved "vpiter" test.
Alan T. DeKok [Thu, 2 Jan 2014 18:15:28 +0000 (13:15 -0500)]
Removed "vpiter" test.

The new test framework has better tests for "foreach"

10 years agoMove Wimax tests to the new framework
Alan T. DeKok [Thu, 2 Jan 2014 18:04:24 +0000 (13:04 -0500)]
Move Wimax tests to the new framework

10 years agoMove CHAP to the new framework
Alan T. DeKok [Thu, 2 Jan 2014 17:53:55 +0000 (12:53 -0500)]
Move CHAP to the new framework

And make unittest.c calculate CHAP-Password

10 years agoMove User-password tests to the new framework
Alan T. DeKok [Thu, 2 Jan 2014 17:52:48 +0000 (12:52 -0500)]
Move User-password tests to the new framework

10 years agoReorganise the scripts directory
Arran Cudbard-Bell [Wed, 1 Jan 2014 21:06:43 +0000 (21:06 +0000)]
Reorganise the scripts directory

10 years agoWoo 2014!
Arran Cudbard-Bell [Wed, 1 Jan 2014 00:13:04 +0000 (00:13 +0000)]
Woo 2014!

10 years agoVarious whitespace fixes
Arran Cudbard-Bell [Mon, 30 Dec 2013 16:41:52 +0000 (16:41 +0000)]
Various whitespace fixes

- Don't mix up tabs and spaces, this will lead to unreadable code
- Removed trailing whitespace

10 years agoDon't re-use a flag for multiple purposes.
Alan T. DeKok [Fri, 20 Dec 2013 22:24:34 +0000 (17:24 -0500)]
Don't re-use a flag for multiple purposes.

A packet can NOT be in the request hash, and still valid for
a reply.  e.g. TCP

10 years agoUse talloc_free
Alan T. DeKok [Fri, 20 Dec 2013 22:14:25 +0000 (17:14 -0500)]
Use talloc_free

10 years agoRemoved unnecessary listen block
Alan T. DeKok [Fri, 20 Dec 2013 22:10:28 +0000 (17:10 -0500)]
Removed unnecessary listen block

10 years agoFix places where tls field was used in listen.c without WITH_TLS being defined
Arran Cudbard-Bell [Fri, 20 Dec 2013 00:55:47 +0000 (00:55 +0000)]
Fix places where tls field was used in listen.c without WITH_TLS being defined

10 years agoTry setting multiple vars for each row in the matrix
Arran Cudbard-Bell [Fri, 20 Dec 2013 00:43:06 +0000 (00:43 +0000)]
Try setting multiple vars for each row in the matrix

10 years agoMark tls_required as unused if were building without tls...
Arran Cudbard-Bell [Fri, 20 Dec 2013 00:39:13 +0000 (00:39 +0000)]
Mark tls_required as unused if were building without tls...

10 years agoMark nt_password parameter in do_mschap_cpw as unused if were building without openssl
Arran Cudbard-Bell [Fri, 20 Dec 2013 00:21:34 +0000 (00:21 +0000)]
Mark nt_password parameter in do_mschap_cpw as unused if were building without openssl

10 years agoMore cbuff fixes...
Arran Cudbard-Bell [Fri, 20 Dec 2013 00:20:12 +0000 (00:20 +0000)]
More cbuff fixes...

10 years agoFixup formatting
Arran Cudbard-Bell [Fri, 20 Dec 2013 00:09:45 +0000 (00:09 +0000)]
Fixup formatting

10 years ago#include <sys/wait.h> if were using waitpid
Arran Cudbard-Bell [Fri, 20 Dec 2013 00:09:37 +0000 (00:09 +0000)]
#include <sys/wait.h> if were using waitpid

10 years agoFix comments in our version of md5.c
Arran Cudbard-Bell [Fri, 20 Dec 2013 00:04:57 +0000 (00:04 +0000)]
Fix comments in our version of md5.c

10 years agoFix issues in cbuff when building without threads with GCC
Arran Cudbard-Bell [Thu, 19 Dec 2013 23:48:59 +0000 (23:48 +0000)]
Fix issues in cbuff when building without threads with GCC

10 years agoExpand the matrix to build with and without shared libs
Arran Cudbard-Bell [Thu, 19 Dec 2013 23:40:14 +0000 (23:40 +0000)]
Expand the matrix to build with and without shared libs

10 years agoCreate a small build matrix with optional libraries disabled
Arran Cudbard-Bell [Thu, 19 Dec 2013 23:33:23 +0000 (23:33 +0000)]
Create a small build matrix with optional libraries disabled

10 years agoOnly setup should have a semi colon after it in threads.h
Arran Cudbard-Bell [Thu, 19 Dec 2013 23:12:50 +0000 (23:12 +0000)]
Only setup should have a semi colon after it in threads.h

10 years agoFix typos, and some slightly incorrect assumptions
Arran Cudbard-Bell [Thu, 19 Dec 2013 23:00:03 +0000 (23:00 +0000)]
Fix typos, and some slightly incorrect assumptions

The last time I saw this in the wild it was the supplicant, it's actually pretty unlikely the NAS would modify the EAP type

10 years agoVarious fixes to allow building without threads
Arran Cudbard-Bell [Thu, 19 Dec 2013 20:17:49 +0000 (20:17 +0000)]
Various fixes to allow building without threads

10 years agoWe need to set LDFLAGS and CFLAGS from SMART_CFLAGS and SMART_LDFLAGS when linking...
Arran Cudbard-Bell [Thu, 19 Dec 2013 19:11:31 +0000 (19:11 +0000)]
We need to set LDFLAGS and CFLAGS from SMART_CFLAGS and SMART_LDFLAGS when linking the krb5_thread_safe test program (else it might pick up the wrong version of the library)

We can now remove the dependency on MIT KRB5 > 1.11.4

10 years agoAdd connection pool support to rlm_krb5
Arran Cudbard-Bell [Thu, 19 Dec 2013 19:16:30 +0000 (19:16 +0000)]
Add connection pool support to rlm_krb5

This allows us  to remove the dependency on krb5_copy_context, and support threaded operation for more versions of MIT krb5

10 years agoMore descriptive error message
Alan T. DeKok [Thu, 19 Dec 2013 16:20:51 +0000 (11:20 -0500)]
More descriptive error message

10 years agoUse correct ifdef
Alan T. DeKok [Thu, 19 Dec 2013 14:03:32 +0000 (09:03 -0500)]
Use correct ifdef

10 years agoFailed to do this earlier
Alan T. DeKok [Thu, 19 Dec 2013 14:02:07 +0000 (09:02 -0500)]
Failed to do this earlier

10 years agoAllow auth+acct for TCP / TLS sockets
Alan T. DeKok [Thu, 19 Dec 2013 13:59:16 +0000 (08:59 -0500)]
Allow auth+acct for TCP / TLS sockets

10 years agoAutomatically figure out which modules need enabling
Alan T. DeKok [Thu, 19 Dec 2013 13:30:57 +0000 (08:30 -0500)]
Automatically figure out which modules need enabling

10 years agoRemove extraneous #ifdef's
Alan T. DeKok [Thu, 19 Dec 2013 13:28:13 +0000 (08:28 -0500)]
Remove extraneous #ifdef's

10 years agoMove "digest" to new authentication test framework
Alan T. DeKok [Thu, 19 Dec 2013 13:17:28 +0000 (08:17 -0500)]
Move "digest" to new authentication test framework

10 years agoAdded Response-Packet-Type to output VPs
Alan T. DeKok [Thu, 19 Dec 2013 13:15:24 +0000 (08:15 -0500)]
Added Response-Packet-Type to output VPs

10 years agoAllow Packet-Type, Digest-*, etc.
Alan T. DeKok [Thu, 19 Dec 2013 13:15:01 +0000 (08:15 -0500)]
Allow Packet-Type, Digest-*, etc.

Code copied from radclient

10 years agorlm_ldap_modify returns and ldap_rcode_t NOT and rlm_rcode_t. Static analysis should...
Arran Cudbard-Bell [Wed, 18 Dec 2013 14:52:38 +0000 (14:52 +0000)]
rlm_ldap_modify returns and ldap_rcode_t NOT and rlm_rcode_t. Static analysis should of caught this...

10 years agoUse correct operator in eDirectory debug message
Arran Cudbard-Bell [Wed, 18 Dec 2013 12:29:01 +0000 (12:29 +0000)]
Use correct operator in eDirectory debug message

10 years agoCleanup formatting in rlm_mschap, and add some additional debug messages to make...
Arran Cudbard-Bell [Wed, 18 Dec 2013 11:57:37 +0000 (11:57 +0000)]
Cleanup formatting in rlm_mschap, and add some additional debug messages to make it clear what's going on with NT-Password and LM-Password