freeradius.git
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

10 years agoFix error in libreadline check
Arran Cudbard-Bell [Wed, 19 Jun 2013 21:04:01 +0000 (22:04 +0100)]
Fix error in libreadline check

10 years agoRemove .cache file from libltld on make distclean
Arran Cudbard-Bell [Wed, 19 Jun 2013 10:50:06 +0000 (11:50 +0100)]
Remove .cache file from libltld on make distclean

10 years agoNote recent changes
Alan T. DeKok [Wed, 19 Jun 2013 20:12:27 +0000 (16:12 -0400)]
Note recent changes

10 years agoConvert error to warning.
Alan T. DeKok [Wed, 19 Jun 2013 20:01:59 +0000 (16:01 -0400)]
Convert error to warning.

Apparently the User-Name and MS-CHAP identity can be of completely
different character sets.  Ouch!

10 years agoFix digest size for sha1
Arran Cudbard-Bell [Thu, 13 Jun 2013 09:26:05 +0000 (10:26 +0100)]
Fix digest size for sha1

10 years agoDo the lookups only for client certificates
Alan T. DeKok [Thu, 6 Jun 2013 16:48:52 +0000 (12:48 -0400)]
Do the lookups only for client certificates

10 years agoPort TLS-Client-Cert-X509v3* from "master" branch
Alan T. DeKok [Thu, 6 Jun 2013 16:40:23 +0000 (12:40 -0400)]
Port TLS-Client-Cert-X509v3* from "master" branch

10 years agoUpdated VSAs for Nomadix Access Gateway
Ethan Hayon [Tue, 4 Jun 2013 17:27:58 +0000 (13:27 -0400)]
Updated VSAs for Nomadix Access Gateway

10 years agoIt's stupid to use assertions for run-time syntax checks
Alan T. DeKok [Mon, 3 Jun 2013 14:23:11 +0000 (10:23 -0400)]
It's stupid to use assertions for run-time syntax checks

11 years agoNote recent changes
Alan T. DeKok [Thu, 23 May 2013 13:39:02 +0000 (09:39 -0400)]
Note recent changes

11 years agoUpdates
Alan T. DeKok [Tue, 21 May 2013 17:03:59 +0000 (13:03 -0400)]
Updates

11 years agoMerge pull request #293 from fajarnugraha/v2.x.x-suse-20130510
Alan DeKok [Tue, 21 May 2013 13:10:57 +0000 (06:10 -0700)]
Merge pull request #293 from fajarnugraha/v2.x.x-suse-20130510

Fix suse package to build and run cleanly for current v2.x.x branch

11 years agosuse: build fixes
Fajar A. Nugraha [Tue, 21 May 2013 09:05:48 +0000 (16:05 +0700)]
suse: build fixes

* Bump version to 2.2.1
* Only requires sqlite3-devel and libpcap-devel on Suse 11.x and above
* README was renamed to README.rst

11 years agoMake radlog available in the "init" function of the Perl code
Alan T. DeKok [Mon, 13 May 2013 16:31:20 +0000 (12:31 -0400)]
Make radlog available in the "init" function of the Perl code

11 years agoMerge pull request #286 from fajarnugraha/v2.x.x-redhat-20130509
Arran Cudbard-Bell [Thu, 9 May 2013 22:51:15 +0000 (15:51 -0700)]
Merge pull request #286 from fajarnugraha/v2.x.x-redhat-20130509

Fix redhat package to build and run cleanly for current v2.x.x branch

11 years agoRFC 6930 and dictionary
Alan T. DeKok [Thu, 9 May 2013 17:45:47 +0000 (13:45 -0400)]
RFC 6930 and dictionary

11 years agoRFC 6911 and dictionary
Alan T. DeKok [Thu, 9 May 2013 17:43:51 +0000 (13:43 -0400)]
RFC 6911 and dictionary

11 years agoredhat: package all modules in freeradius RPM
Fajar A. Nugraha [Thu, 9 May 2013 11:11:18 +0000 (18:11 +0700)]
redhat: package all modules in freeradius RPM

11 years agoredhat: only keep the last changelog from original spec file
Fajar A. Nugraha [Thu, 9 May 2013 11:09:57 +0000 (18:09 +0700)]
redhat: only keep the last changelog from original spec file

11 years agoredhat: package everything in freeradius rpm
Fajar A. Nugraha [Thu, 9 May 2013 11:04:05 +0000 (18:04 +0700)]
redhat: package everything in freeradius rpm

11 years agoredhat: removed obsolete patches
Fajar A. Nugraha [Thu, 9 May 2013 08:52:59 +0000 (15:52 +0700)]
redhat: removed obsolete patches

11 years agoredhat: README was renamed to README.rst
Fajar A. Nugraha [Thu, 9 May 2013 08:54:03 +0000 (15:54 +0700)]
redhat: README was renamed to README.rst

11 years agoredhat: refresh freeradius-cert-config.patch
Fajar A. Nugraha [Thu, 9 May 2013 09:19:35 +0000 (16:19 +0700)]
redhat: refresh freeradius-cert-config.patch