freeradius.git
10 years agoUpdate for 2.2.2 release_2_2_2
Alan T. DeKok [Wed, 30 Oct 2013 13:30:38 +0000 (09:30 -0400)]
Update for 2.2.2

10 years agoRemove duplicate
Alan T. DeKok [Wed, 30 Oct 2013 12:44:15 +0000 (08:44 -0400)]
Remove duplicate

10 years agoNote changes for 2.2.2
Alan T. DeKok [Wed, 30 Oct 2013 12:28:05 +0000 (08:28 -0400)]
Note changes for 2.2.2

10 years agoFix const ordering
Alan T. DeKok [Mon, 28 Oct 2013 21:23:04 +0000 (14:23 -0700)]
Fix const ordering

10 years agoFixes for v2.x.x
Alan T. DeKok [Mon, 28 Oct 2013 21:22:00 +0000 (14:22 -0700)]
Fixes for v2.x.x

10 years agoSanity check arguments
Alan T. DeKok [Mon, 28 Oct 2013 21:08:08 +0000 (17:08 -0400)]
Sanity check arguments

If there's no interface, don't update anything.  It will generate
an error.  Instead, return an error saying "no interface"

Manual merge of 56fbc3ae8

10 years agoVarious fixes for DHCP.
Alan T. DeKok [Mon, 28 Oct 2013 21:06:58 +0000 (17:06 -0400)]
Various fixes for DHCP.

- include sys/ioctl.h, so we know if the system supports SIOCSARP
- add listen_socket_t to dhcp_socket_t, so that we can use all of
  it's fields
- for systems supporting SIOCSARP, check if "interface" is defined,
  and if not, refuse to do ARP, as it requires an interface

Manual merge of 649cc4f12

10 years agoNote changes for Mavericks
Alan T. DeKok [Fri, 25 Oct 2013 14:08:36 +0000 (10:08 -0400)]
Note changes for Mavericks

10 years agoPort OpenSSL build fixes from master.
Alan T. DeKok [Fri, 25 Oct 2013 13:15:24 +0000 (09:15 -0400)]
Port OpenSSL build fixes from master.

All of the OpenSSL checks in configure.in have been replaced
with the code from master.

The sub-Makefiles which reference OPENSSL_* have had those
references deleted.  The CFLAGS and LIBS now have the requisite
definitions.

Set LTCFLAGS=" " to work around stupid libtool issues.
No, the libtool authors aren't smarter than me.  Their "magic"
actively breaks things I want to do.  Which are valid.  And which
work in a NORMAL CC/LD environment, without their idiocy.

I'm happy 3.x and "master" don't have libtoo.  It's a blight upon
the face of the earth.

10 years agoWork around autoconf and shell issues.
Alan T. DeKok [Fri, 25 Oct 2013 00:11:57 +0000 (20:11 -0400)]
Work around autoconf and shell issues.

Which expect paths to NOT have spaces in them.  Which they do
on OSX.

10 years agoRe-arrange paths for -I and -L.
Alan T. DeKok [Fri, 25 Oct 2013 00:10:54 +0000 (20:10 -0400)]
Re-arrange paths for -I and -L.

So that paths passed on the command line, or in ENV are preferred
to ones which we auto-add

Manual port of 74b688b39b

10 years agoFix typo in version.c
Arran Cudbard-Bell [Thu, 24 Oct 2013 16:07:25 +0000 (17:07 +0100)]
Fix typo in version.c

10 years agoIgnore dSYM extension
Arran Cudbard-Bell [Thu, 24 Oct 2013 16:06:43 +0000 (17:06 +0100)]
Ignore dSYM extension

10 years agoIgnore sw_vers subversion when selecting SDK
Arran Cudbard-Bell [Thu, 24 Oct 2013 15:18:19 +0000 (16:18 +0100)]
Ignore sw_vers subversion when selecting SDK

10 years agoFix clang build under mavericks (OSX 10.9)
Arran Cudbard-Bell [Wed, 23 Oct 2013 22:30:09 +0000 (23:30 +0100)]
Fix clang build under mavericks (OSX 10.9)

10 years agorecvfrom returns ssize_t, not size_t
Alan T. DeKok [Wed, 23 Oct 2013 15:18:36 +0000 (11:18 -0400)]
recvfrom returns ssize_t, not size_t

10 years agoRestore old behavior for if(...)
Alan T. DeKok [Mon, 21 Oct 2013 13:07:11 +0000 (09:07 -0400)]
Restore old behavior for if(...)

Manual pull of 4c389d44

10 years agoNote recent changes
Alan T. DeKok [Wed, 16 Oct 2013 15:39:24 +0000 (11:39 -0400)]
Note recent changes

10 years agoadd ntlm_auth_timeout option to rlm_mschap
Alan T. DeKok [Wed, 16 Oct 2013 15:34:32 +0000 (11:34 -0400)]
add ntlm_auth_timeout option to rlm_mschap

Manual port of commit #ab43d6a0

10 years agoadd timeout option to rlm_exec
Alan T. DeKok [Wed, 16 Oct 2013 15:31:03 +0000 (11:31 -0400)]
add timeout option to rlm_exec

Manual port of commit #16da20417

10 years agoAdd timeout arg to radius_exec_program, with default EXEC_TIMEOUT
Alan T. DeKok [Wed, 16 Oct 2013 15:25:57 +0000 (11:25 -0400)]
Add timeout arg to radius_exec_program, with default EXEC_TIMEOUT

Manual port of commit #1da1208

10 years agopArgs and pRet my legitimately be NULL on error, so we should use Py_XDECREF instead...
Arran Cudbard-Bell [Mon, 14 Oct 2013 11:37:35 +0000 (12:37 +0100)]
pArgs and pRet my legitimately be NULL on error, so we should use Py_XDECREF instead of Py_DECREF, Closes #449

10 years agoMove assert to run-time check
Alan T. DeKok [Mon, 7 Oct 2013 12:57:35 +0000 (08:57 -0400)]
Move assert to run-time check

10 years agoMake request->child_pid into request->thread_id
Alan T. DeKok [Sat, 5 Oct 2013 15:21:06 +0000 (11:21 -0400)]
Make request->child_pid into request->thread_id

There's no reason to use a pthread ID.  We can just expose
the thread number.  This makes it easier to debug threading issues

10 years agoMore cleanups of request_post_handler.
Alan T. DeKok [Fri, 4 Oct 2013 23:45:48 +0000 (19:45 -0400)]
More cleanups of request_post_handler.

In the forlorn hope that we can fix the proxy issue

10 years agoSet module to "" to avoid confusing debug output
Alan T. DeKok [Fri, 4 Oct 2013 23:32:07 +0000 (19:32 -0400)]
Set module to "" to avoid confusing debug output

10 years agoSet fr_log_fp when using '-l'
Alan T. DeKok [Fri, 11 Nov 2011 13:01:14 +0000 (14:01 +0100)]
Set fr_log_fp when using '-l'

So that we can get debugging from libfreeradius-radius

10 years agoPrint string with \n rather than doing it as a separate call
Alan T. DeKok [Fri, 4 Oct 2013 23:19:05 +0000 (19:19 -0400)]
Print string with \n rather than doing it as a separate call

Which makes threaded debugging easier to understand

10 years agoCatch one more corner case from previous commit
Alan T. DeKok [Thu, 3 Oct 2013 14:39:09 +0000 (10:39 -0400)]
Catch one more corner case from previous commit

10 years agoMark request as NO_SUCH_CHILD_PID on request done
Alan T. DeKok [Thu, 3 Oct 2013 14:19:44 +0000 (10:19 -0400)]
Mark request as NO_SUCH_CHILD_PID on request done

10 years agoSilently skip empty subgroups
Alan T. DeKok [Mon, 30 Sep 2013 19:57:32 +0000 (15:57 -0400)]
Silently skip empty subgroups

10 years agoNote recent changes
Alan T. DeKok [Mon, 30 Sep 2013 15:11:23 +0000 (11:11 -0400)]
Note recent changes

10 years agoDon't set parent priority when calling a child
Alan T. DeKok [Mon, 30 Sep 2013 15:01:48 +0000 (11:01 -0400)]
Don't set parent priority when calling a child

It's wrong.

10 years agoFix crazy indentation
Arran Cudbard-Bell [Sun, 29 Sep 2013 14:41:20 +0000 (15:41 +0100)]
Fix crazy indentation

10 years agoSegfault in libperl when doing perl_xlat(). Fix by kvainkainen. Closes #436
Arran Cudbard-Bell [Sun, 29 Sep 2013 14:38:52 +0000 (15:38 +0100)]
Segfault in libperl when doing perl_xlat(). Fix by kvainkainen. Closes #436

In rlm_perl.c Perl interpreter cloning is controlled by #ifdef USE_ITHREADS.
However, for some unknown reason in perl_xlat() #ifndef WITH_ITHREADS is
used instead. At least my Perl does not have WITH_ITHREADS compile option,
meaning all perl_xlat() calls are handled by same Perl instance.

If you run Freeradius in multithread mode, this causes segfault in libperl
when two threads do perl_xlat() simultaneously.

10 years agoWhitespace fixes in rlm_perl.c
Arran Cudbard-Bell [Sun, 29 Sep 2013 14:35:17 +0000 (15:35 +0100)]
Whitespace fixes in rlm_perl.c

10 years agoMinor change to use update actions
Alan T. DeKok [Sun, 29 Sep 2013 13:07:51 +0000 (09:07 -0400)]
Minor change to use update actions

10 years agoInitialize actions for UPDATE sections
Alan T. DeKok [Sun, 29 Sep 2013 13:07:40 +0000 (09:07 -0400)]
Initialize actions for UPDATE sections

10 years agoAdd missing close brace
Alan T. DeKok [Sun, 29 Sep 2013 00:03:05 +0000 (20:03 -0400)]
Add missing close brace

10 years agoFix priority handling.
Alan T. DeKok [Sat, 28 Sep 2013 14:37:54 +0000 (10:37 -0400)]
Fix priority handling.

10 years agoFreeRADIUS 2.2.1: check_cert_issuer in EAP-TLS broken in presence of X509v3 extension...
Arran Cudbard-Bell [Fri, 20 Sep 2013 16:49:30 +0000 (17:49 +0100)]
FreeRADIUS 2.2.1: check_cert_issuer in EAP-TLS broken in presence of X509v3 extensions - Patch from David Wood

10 years agoRemove spurious whitespace
Arran Cudbard-Bell [Fri, 20 Sep 2013 16:42:48 +0000 (17:42 +0100)]
Remove spurious whitespace

10 years agoBump for version 2.2.2
Alan T. DeKok [Fri, 20 Sep 2013 00:02:51 +0000 (20:02 -0400)]
Bump for version 2.2.2

10 years agoFix typo
Alan T. DeKok [Thu, 19 Sep 2013 01:57:22 +0000 (21:57 -0400)]
Fix typo

10 years agoShort-circuit "case"
Alan T. DeKok [Thu, 19 Sep 2013 01:54:25 +0000 (21:54 -0400)]
Short-circuit "case"

10 years agoUpdate branch name for 2.x.x release_2_2_1
Alan T. DeKok [Tue, 17 Sep 2013 21:06:40 +0000 (17:06 -0400)]
Update branch name for 2.x.x

10 years agoDelete trailing space
Alan T. DeKok [Tue, 17 Sep 2013 21:05:53 +0000 (17:05 -0400)]
Delete trailing space

10 years agoMark rlm_python as THREAD_UNSAFE for the 2.2.1 release, as TLS is not currently worki...
Arran Cudbard-Bell [Mon, 16 Sep 2013 14:57:28 +0000 (15:57 +0100)]
Mark rlm_python as THREAD_UNSAFE for the 2.2.1 release, as TLS is not currently working correctly.  This will be fixed later

10 years agoNote final changes for v2.2.1
Alan T. DeKok [Mon, 16 Sep 2013 13:17:24 +0000 (09:17 -0400)]
Note final changes for v2.2.1

10 years agoMake max_requests_per_server work
Alan T. DeKok [Fri, 13 Sep 2013 12:44:37 +0000 (08:44 -0400)]
Make max_requests_per_server work

10 years agoWrap ASCTIME_R
Arran Cudbard-Bell [Mon, 9 Sep 2013 23:46:05 +0000 (00:46 +0100)]
Wrap ASCTIME_R

10 years agoLatest updates
Alan T. DeKok [Sat, 7 Sep 2013 15:36:25 +0000 (11:36 -0400)]
Latest updates

10 years agoPort fix for #425 from commit d9c798b4e
Alan T. DeKok [Sat, 7 Sep 2013 15:30:37 +0000 (11:30 -0400)]
Port fix for #425 from commit d9c798b4e

10 years agoPort the new modcall code from v3.
Alan T. DeKok [Fri, 6 Sep 2013 21:08:08 +0000 (17:08 -0400)]
Port the new modcall code from v3.

It's smaller and simpler than the previous code

10 years agoand one more..
Arran Cudbard-Bell [Wed, 28 Aug 2013 08:26:56 +0000 (09:26 +0100)]
and one more..

10 years agoFixup dictionary formatting
Arran Cudbard-Bell [Wed, 28 Aug 2013 08:15:12 +0000 (09:15 +0100)]
Fixup dictionary formatting

10 years agoAdd brocade dictionary
Arran Cudbard-Bell [Wed, 28 Aug 2013 08:13:43 +0000 (09:13 +0100)]
Add brocade dictionary

10 years agoUpdates
Alan T. DeKok [Sat, 17 Aug 2013 18:10:09 +0000 (14:10 -0400)]
Updates

10 years ago%{foo:1} is a module if "foo" isn't a dictionary attribute
Alan T. DeKok [Sat, 10 Aug 2013 01:38:24 +0000 (21:38 -0400)]
%{foo:1} is a module if "foo" isn't a dictionary attribute

10 years agoRemove from the proxy list if we can't insert it
Alan T. DeKok [Fri, 9 Aug 2013 15:15:44 +0000 (11:15 -0400)]
Remove from the proxy list if we can't insert it

10 years agoUpdates from latest doc
Alan T. DeKok [Wed, 7 Aug 2013 01:05:07 +0000 (21:05 -0400)]
Updates from latest doc

10 years agoBroadsoft dictionary
Alan T. DeKok [Tue, 6 Aug 2013 20:10:19 +0000 (16:10 -0400)]
Broadsoft dictionary

10 years agoPrint correct value
Alan T. DeKok [Tue, 23 Jul 2013 11:44:09 +0000 (07:44 -0400)]
Print correct value

10 years agoFix warnings
Arran Cudbard-Bell [Mon, 22 Jul 2013 10:48:34 +0000 (11:48 +0100)]
Fix warnings

10 years agoUse internal function for hex encoding, sprintf gives odd results
Arran Cudbard-Bell [Mon, 22 Jul 2013 10:18:45 +0000 (11:18 +0100)]
Use internal function for hex encoding, sprintf gives odd results

10 years agoFix typo in TLS macros
Arran Cudbard-Bell [Fri, 19 Jul 2013 21:35:19 +0000 (22:35 +0100)]
Fix typo in TLS macros

10 years agoNote TLS fixes for python
Arran Cudbard-Bell [Thu, 18 Jul 2013 16:40:22 +0000 (12:40 -0400)]
Note TLS fixes for python

10 years agomod_error needs to be called with the GIL even though the server is running in single...
Arran Cudbard-Bell [Thu, 18 Jul 2013 16:20:16 +0000 (17:20 +0100)]
mod_error needs to be called with the GIL even though the server is running in single threaded mode, and the error is during instantiation

10 years agoTrip whitespace from base64 strings
Arran Cudbard-Bell [Thu, 18 Jul 2013 16:08:41 +0000 (17:08 +0100)]
Trip whitespace from base64 strings

10 years agoMore python fixes
Arran Cudbard-Bell [Thu, 18 Jul 2013 16:08:27 +0000 (17:08 +0100)]
More python fixes

10 years agoDo python cleanup properly on thread exit
Arran Cudbard-Bell [Thu, 18 Jul 2013 12:16:30 +0000 (13:16 +0100)]
Do python cleanup properly on thread exit

10 years agoAdd support for registering destructors for TLS
Arran Cudbard-Bell [Thu, 18 Jul 2013 12:13:06 +0000 (13:13 +0100)]
Add support for registering destructors for TLS

10 years agoBackport fixes for thread local storage in rlm_python #291
Arran Cudbard-Bell [Wed, 17 Jul 2013 17:30:48 +0000 (18:30 +0100)]
Backport fixes for thread local storage in rlm_python #291

10 years agoMore audits of the code
Alan T. DeKok [Wed, 17 Jul 2013 10:00:22 +0000 (12:00 +0200)]
More audits of the code

for the same problem as the last commit

10 years agoProper checks on group-type sections
Alan T. DeKok [Wed, 17 Jul 2013 09:45:04 +0000 (11:45 +0200)]
Proper checks on group-type sections

This should really be a flag rather than a compile-time check

10 years agoUpdate capitalization of CalledStationId (and others) Closes #217
Arran Cudbard-Bell [Sat, 13 Jul 2013 14:14:34 +0000 (15:14 +0100)]
Update capitalization of CalledStationId (and others) Closes #217

10 years agoMerge pull request #363 from mcnewton/v2.x.x
Arran Cudbard-Bell [Fri, 12 Jul 2013 10:26:37 +0000 (03:26 -0700)]
Merge pull request #363 from mcnewton/v2.x.x

add more error messages when config error in realms or home servers

10 years agoadd more error messages when config error in realms or home servers
Matthew Newton [Fri, 12 Jul 2013 10:18:07 +0000 (11:18 +0100)]
add more error messages when config error in realms or home servers

10 years agoMerge pull request #362 from alanbuxey/v2.x.x
Arran Cudbard-Bell [Thu, 11 Jul 2013 22:02:12 +0000 (15:02 -0700)]
Merge pull request #362 from alanbuxey/v2.x.x

windows phone doesn't accept vert for validation if it doesn't contain CRLCP

10 years agowindows phone doesn't accept vert for validation if it doesn't contain CRLCP
Alan Buxey [Thu, 11 Jul 2013 21:46:41 +0000 (22:46 +0100)]
windows phone doesn't accept vert for validation if it doesn't contain CRLCP

CRLDP attribute needs to be present in CA/RADIUS vert or Windows Phone
won't validate the cert. as found by eduroam people struggling with
windows phone (same fix in 3.x)

10 years agoRun virtual server post-auth
Arran Cudbard-Bell [Thu, 11 Jul 2013 13:22:06 +0000 (14:22 +0100)]
Run virtual server post-auth

10 years agoA section may have no children
Alan T. DeKok [Thu, 11 Jul 2013 09:56:07 +0000 (11:56 +0200)]
A section may have no children

10 years agoMerge pull request #350 from alanbuxey/v2.x.x
Arran Cudbard-Bell [Mon, 8 Jul 2013 18:35:53 +0000 (11:35 -0700)]
Merge pull request #350 from alanbuxey/v2.x.x

DANTE VSA dictionary added

10 years agoDANTE VSA dictionary added
Alan Buxey [Fri, 5 Jul 2013 20:29:57 +0000 (21:29 +0100)]
DANTE VSA dictionary added

DANTE - IANA number 27262 - first attribute released is RADSEC TTL to
stop loops - like TCP TTL...

10 years agoAdd note on rlm_expr
Arran Cudbard-Bell [Fri, 5 Jul 2013 12:59:56 +0000 (08:59 -0400)]
Add note on rlm_expr

10 years agoMore notes on rlm_expr
Arran Cudbard-Bell [Fri, 5 Jul 2013 12:54:55 +0000 (08:54 -0400)]
More notes on rlm_expr

10 years agoAlways fixup after deleting a black child node in rbtree
skids [Tue, 25 Jun 2013 00:40:48 +0000 (20:40 -0400)]
Always fixup after deleting a black child node in rbtree

This prevents rbtree_delete from creating unbalanced/illegal rbtrees.

10 years agoUse a consistent callback return code
skids [Thu, 20 Jun 2013 20:54:31 +0000 (16:54 -0400)]
Use a consistent callback return code

  This is the one place in the codebase where a positive return code
  is used in an rbtree_walk callback.  Changing it negative should have no
  effect, and keeps options open as to whether to introduce new symbols
  for the next patch to follow, or to change the libfreeradius API
  slightly WRT rbtree callback return codes.

  Whether any third-party add-ons may use positive return codes is not
  known.

10 years agoFix obvious pasto in PostOrder walk.
skids [Thu, 20 Jun 2013 02:47:33 +0000 (22:47 -0400)]
Fix obvious pasto in PostOrder walk.

10 years agoMerge pull request #334 from leprechau/patch-1
Arran Cudbard-Bell [Thu, 27 Jun 2013 12:47:01 +0000 (05:47 -0700)]
Merge pull request #334 from leprechau/patch-1

fix typo

10 years agoFix typo
Alan T. DeKok [Thu, 27 Jun 2013 12:45:24 +0000 (08:45 -0400)]
Fix typo

10 years agofix typo
Aaron Hurt [Thu, 27 Jun 2013 12:44:50 +0000 (07:44 -0500)]
fix typo

10 years agoCatch invalid attribute names for idiots
Alan T. DeKok [Tue, 25 Jun 2013 14:05:12 +0000 (10:05 -0400)]
Catch invalid attribute names for idiots

10 years agocopyright
Arran Cudbard-Bell [Tue, 25 Jun 2013 06:21:29 +0000 (08:21 +0200)]
copyright

10 years agoadd aerohive dictionary
Aaron Hurt [Tue, 25 Jun 2013 05:29:01 +0000 (00:29 -0500)]
add aerohive dictionary

10 years agoerror if wait is not enabled and exec xlat is called
Arran Cudbard-Bell [Mon, 24 Jun 2013 19:40:53 +0000 (20:40 +0100)]
error if wait is not enabled and exec xlat is called

10 years agoMerge pull request #324 from isp-sns-bskyb/v2.x.x
Arran Cudbard-Bell [Mon, 24 Jun 2013 12:28:49 +0000 (05:28 -0700)]
Merge pull request #324 from isp-sns-bskyb/v2.x.x

Changed attributes to octets type

10 years agoChanged attributes to octets type
Rob McAuley [Mon, 24 Jun 2013 12:24:59 +0000 (13:24 +0100)]
Changed attributes to octets type

10 years agoFix lib readline check
Arran Cudbard-Bell [Fri, 21 Jun 2013 11:10:31 +0000 (12:10 +0100)]
Fix lib readline check

10 years agoAdded 3GPP-RAT-Type values from 3GPP TS 29.274
Semih [Thu, 20 Jun 2013 17:51:33 +0000 (20:51 +0300)]
Added 3GPP-RAT-Type values from 3GPP TS 29.274