freeradius.git
11 years agoauto line ending and Id fixups
Matthew Newton [Wed, 7 Nov 2012 22:11:19 +0000 (22:11 +0000)]
auto line ending and Id fixups

11 years agoFix issue between boilermake, gcc, and perl compiler flags
Arran Cudbard-Bell [Wed, 7 Nov 2012 19:12:14 +0000 (19:12 +0000)]
Fix issue between boilermake, gcc, and perl compiler flags

11 years agoDon't print out commands we run
Alan T. DeKok [Wed, 7 Nov 2012 15:43:34 +0000 (10:43 -0500)]
Don't print out commands we run

11 years agoRemove dependency on directories for installation
Alan T. DeKok [Wed, 7 Nov 2012 15:37:41 +0000 (10:37 -0500)]
Remove dependency on directories for installation

just create the directory

11 years agoRemove dhcp.c from sources list
Arran Cudbard-Bell [Wed, 7 Nov 2012 15:27:41 +0000 (15:27 +0000)]
Remove dhcp.c from sources list

11 years agoA run-time error is an error, not an assert
Alan T. DeKok [Wed, 7 Nov 2012 14:14:26 +0000 (09:14 -0500)]
A run-time error is an error, not an assert

11 years agoFixup .gitignore files to ignore more things
Arran Cudbard-Bell [Wed, 7 Nov 2012 13:09:34 +0000 (13:09 +0000)]
Fixup .gitignore files to ignore more things

11 years agoRemove old feature defines from src/include/radiusd.h
Arran Cudbard-Bell [Wed, 7 Nov 2012 13:01:36 +0000 (13:01 +0000)]
Remove old feature defines from src/include/radiusd.h

11 years agoUpdate boiler make build system to generate dynamic headers
Arran Cudbard-Bell [Wed, 7 Nov 2012 13:01:03 +0000 (13:01 +0000)]
Update boiler make build system to generate dynamic headers

11 years agoAdd features template
Arran Cudbard-Bell [Tue, 6 Nov 2012 21:57:11 +0000 (21:57 +0000)]
Add features template

11 years agoAdd some additional defines to version output
Arran Cudbard-Bell [Tue, 6 Nov 2012 15:12:07 +0000 (15:12 +0000)]
Add some additional defines to version output

11 years agoMove static feature defines from radiusd.h to features-h and use them as a template...
Arran Cudbard-Bell [Tue, 6 Nov 2012 14:40:54 +0000 (14:40 +0000)]
Move static feature defines from radiusd.h to features-h and use them as a template for features.h as a temporary fix

Use -imacros to make features.h available everywhere

Commit missed autoconf.h.in file to include WITH_TCP and WITH_THREADS

11 years agoFixed typo in calculation of size of available buffer.
Vladimir Lettiev [Tue, 6 Nov 2012 08:21:21 +0000 (12:21 +0400)]
Fixed typo in calculation of size of available buffer.

This resolves issue when $INCLUDE directive ignores files with
relative path.

11 years agoMerge pull request #126 from arr2036/autoconf_fellation
Arran Cudbard-Bell [Tue, 6 Nov 2012 12:25:31 +0000 (04:25 -0800)]
Merge pull request #126 from arr2036/autoconf_fellation

Autoconf fellation

11 years agoFix typo that meant --with-ascend-binary=yes didn't set WITH_ASCEND_BINDARY
Arran Cudbard-Bell [Tue, 6 Nov 2012 12:10:06 +0000 (12:10 +0000)]
Fix typo that meant --with-ascend-binary=yes didn't set WITH_ASCEND_BINDARY

Use autoconf to set WITH_TCP value, and write WITH_TCP to autoconf.h (and therefore features.h)

Write WITH_THREADS to autoconf.h (and therefore features.h)

11 years agoRemove redundant #include <freeradius-devel/autoconf.h>
Arran Cudbard-Bell [Tue, 6 Nov 2012 09:54:06 +0000 (09:54 +0000)]
Remove redundant #include <freeradius-devel/autoconf.h>

11 years agoMake autoconf.h available everywhere implicitly using -imacros
Arran Cudbard-Bell [Mon, 5 Nov 2012 20:41:51 +0000 (20:41 +0000)]
Make autoconf.h available everywhere implicitly using -imacros

11 years agoFix redefinition issues by undefining conflicting defines if were building a module
Arran Cudbard-Bell [Mon, 5 Nov 2012 20:38:25 +0000 (20:38 +0000)]
Fix redefinition issues by undefining conflicting defines if were building a module

11 years agoSubstitute autoconf defines in missing.h and tls.h at build time to avoid including...
Arran Cudbard-Bell [Mon, 5 Nov 2012 20:20:11 +0000 (20:20 +0000)]
Substitute autoconf defines in missing.h and tls.h at build time to avoid including autoconf.h

Move some function checks from libradius.h to missing.h

Rename ASCEND_BINARY to WITH_ASCEND_BINARY so it gets copied to features.h

11 years agoBasic language definition for bbedit
Arran Cudbard-Bell [Sun, 4 Nov 2012 17:40:06 +0000 (17:40 +0000)]
Basic language definition for bbedit

11 years agoEnable experimental module build on --enable-developer
Arran Cudbard-Bell [Sat, 3 Nov 2012 21:43:50 +0000 (21:43 +0000)]
Enable experimental module build on --enable-developer

11 years agoAdd missing rlm_dhcp module
Arran Cudbard-Bell [Sat, 3 Nov 2012 21:43:04 +0000 (21:43 +0000)]
Add missing rlm_dhcp module

11 years agoRemove acct_unique from raddb makefile
Arran Cudbard-Bell [Sat, 3 Nov 2012 18:46:11 +0000 (18:46 +0000)]
Remove acct_unique from raddb makefile

11 years agoAdded missing space
Alan T. DeKok [Sat, 3 Nov 2012 19:40:17 +0000 (15:40 -0400)]
Added missing space

11 years agoAdd Tmp-Octets-*
Arran Cudbard-Bell [Sat, 3 Nov 2012 17:38:56 +0000 (17:38 +0000)]
Add Tmp-Octets-*

11 years agoFix quoting for git program check
Arran Cudbard-Bell [Sat, 3 Nov 2012 15:30:51 +0000 (15:30 +0000)]
Fix quoting for git program check

11 years agoERX-Dhcp-Options is actually raw options from the DHCP packet
Arran Cudbard-Bell [Sat, 3 Nov 2012 15:26:32 +0000 (15:26 +0000)]
ERX-Dhcp-Options is actually raw options from the DHCP packet

11 years agoSkip compile sources if they won't be linked to a lib/exe
Alan T. DeKok [Sat, 3 Nov 2012 12:53:12 +0000 (08:53 -0400)]
Skip compile sources if they won't be linked to a lib/exe

11 years agoAdd warning if we don't have json-c
Arran Cudbard-Bell [Fri, 2 Nov 2012 11:42:43 +0000 (11:42 +0000)]
Add warning if we don't have json-c

11 years agoUse official libcurl macros to configure libcurl
Arran Cudbard-Bell [Fri, 2 Nov 2012 11:15:11 +0000 (11:15 +0000)]
Use official libcurl macros to configure libcurl

11 years agoDon't pass --enable-developer by default
Arran Cudbard-Bell [Fri, 2 Nov 2012 10:10:22 +0000 (10:10 +0000)]
Don't pass --enable-developer by default

11 years agoRemove -O2 and replace -g with -g3 if building from git or configured with --enable...
Arran Cudbard-Bell [Fri, 2 Nov 2012 09:53:35 +0000 (09:53 +0000)]
Remove -O2 and replace -g with -g3 if building from git or configured with --enable-developer
Fix warning in libreadline autoconf macro

11 years agoMore $Id$ fixes
Arran Cudbard-Bell [Thu, 1 Nov 2012 15:36:20 +0000 (15:36 +0000)]
More $Id$ fixes

11 years agoFixup $Id header for rlm_securid.c
Arran Cudbard-Bell [Thu, 1 Nov 2012 15:32:20 +0000 (15:32 +0000)]
Fixup $Id header for rlm_securid.c

11 years agoFix for autoconf 2.69
Arran Cudbard-Bell [Thu, 1 Nov 2012 15:26:24 +0000 (15:26 +0000)]
Fix for autoconf 2.69

11 years agoMove dhcp_options: xlat to rlm_dhcp module
Arran Cudbard-Bell [Thu, 1 Nov 2012 14:18:01 +0000 (14:18 +0000)]
Move dhcp_options: xlat to rlm_dhcp module

11 years agoMake $Id$ work again
Arran Cudbard-Bell [Thu, 1 Nov 2012 12:57:15 +0000 (12:57 +0000)]
Make $Id$ work again

11 years agoAdded rad_data2vp() to mirror rad_vp2data()
Alan T. DeKok [Thu, 1 Nov 2012 08:23:55 +0000 (09:23 +0100)]
Added rad_data2vp() to mirror rad_vp2data()

11 years agoFix whitespace
Arran Cudbard-Bell [Thu, 1 Nov 2012 08:02:38 +0000 (08:02 +0000)]
Fix whitespace

11 years agoFix some lazily resolved symbol named
Arran Cudbard-Bell [Wed, 31 Oct 2012 21:56:26 +0000 (21:56 +0000)]
Fix some lazily resolved symbol named

11 years agoAdd dhcp_option: xlat to decode DHCP options packed into RADIUS attributes
Arran Cudbard-Bell [Wed, 31 Oct 2012 18:04:05 +0000 (18:04 +0000)]
Add dhcp_option: xlat to decode DHCP options packed into RADIUS attributes

11 years agoMake rlm_rest build without cjson
Arran Cudbard-Bell [Tue, 30 Oct 2012 19:28:54 +0000 (19:28 +0000)]
Make rlm_rest build without cjson

11 years agoUpdate TLS section to conform to standard used in rlm_ldap and other places...
Arran Cudbard-Bell [Tue, 30 Oct 2012 19:07:12 +0000 (19:07 +0000)]
Update TLS section to conform to standard used in rlm_ldap and other places...

11 years agoFixup rlm_rest escape function
Arran Cudbard-Bell [Tue, 30 Oct 2012 19:08:53 +0000 (19:08 +0000)]
Fixup rlm_rest escape function

11 years agoIgnore config.h files
Arran Cudbard-Bell [Tue, 30 Oct 2012 19:10:46 +0000 (19:10 +0000)]
Ignore config.h files

11 years agore-add the expect_password option
Arran Cudbard-Bell [Tue, 30 Oct 2012 13:00:08 +0000 (13:00 +0000)]
re-add the expect_password option

11 years agoFixup xlat calls in rlm_ldap to work with new function prototypes
Arran Cudbard-Bell [Tue, 30 Oct 2012 12:29:13 +0000 (12:29 +0000)]
Fixup xlat calls in rlm_ldap to work with new function prototypes

11 years agoMassive rewrite of the LDAP module.
Alan T. DeKok [Thu, 13 Sep 2012 10:54:15 +0000 (12:54 +0200)]
Massive rewrite of the LDAP module.

It now uses the connection pool API.  The code is MUCH clearer.

11 years agoC != PHP
Arran Cudbard-Bell [Mon, 29 Oct 2012 15:32:19 +0000 (15:32 +0000)]
C != PHP

11 years agoarg needs to be a buffer
Arran Cudbard-Bell [Mon, 29 Oct 2012 06:41:06 +0000 (06:41 +0000)]
arg needs to be a buffer

11 years agoMark home server zombie only after response_window
Alan T. DeKok [Sun, 28 Oct 2012 09:10:46 +0000 (10:10 +0100)]
Mark home server zombie only after response_window

When the "response_window" has been hit, THEN go mark the home
server zombie.  Not before.

11 years agoSet the home server "last packet" only on original packets
Alan T. DeKok [Sun, 28 Oct 2012 09:06:36 +0000 (10:06 +0100)]
Set the home server "last packet" only on original packets

And not on retransmits.

11 years agoFixup some warnings in rlm_perl
Arran Cudbard-Bell [Sun, 28 Oct 2012 12:56:13 +0000 (12:56 +0000)]
Fixup some warnings in rlm_perl

11 years agoHandle tagged attributes with multiple values in rlm_perl.
Chris Mikkelson [Wed, 8 Feb 2012 19:14:11 +0000 (13:14 -0600)]
Handle tagged attributes with multiple values in rlm_perl.

11 years agoAdd tag matching to pairdelete and paircopy2
Arran Cudbard-Bell [Sun, 28 Oct 2012 11:47:46 +0000 (11:47 +0000)]
Add tag matching to pairdelete and paircopy2

11 years agoMore version fixes for master branch
Arran Cudbard-Bell [Sat, 27 Oct 2012 21:05:55 +0000 (22:05 +0100)]
More version fixes for master branch

Should pass RADIUSD_VERSION_STRING as release

11 years agoUpdate configure script
Arran Cudbard-Bell [Sat, 27 Oct 2012 20:21:52 +0000 (22:21 +0200)]
Update configure script

11 years agoChange version constants to be more useful
Arran Cudbard-Bell [Sat, 27 Oct 2012 20:07:58 +0000 (21:07 +0100)]
Change version constants to be more useful

Configure script now sets:
* RADIUSD_MAJOR_VERSION
* RADIUSD_MINOR_VERSION
* RADIUSD_INCRM_VERSION
* RADIUSD_VERSION (integer representation of version)
* RADIUSD_VERSION_STRING
* RADIUSD_VERSION_COMMIT (latest commit hash if building from a git repo)

Git hash is also displayed in utilities that display version

11 years agoMore fixes to make it work with system libtool && jlibtool
Alan T. DeKok [Sat, 27 Oct 2012 15:57:19 +0000 (17:57 +0200)]
More fixes to make it work with system libtool && jlibtool

11 years agoTry to fix "home server dead" code
Alan T. DeKok [Sat, 27 Oct 2012 11:45:43 +0000 (13:45 +0200)]
Try to fix "home server dead" code

It was pretty horrific, and didn't make sense.  This simplification
seems to work

11 years agoMinor formatting fixes
Arran Cudbard-Bell [Sat, 27 Oct 2012 10:26:35 +0000 (11:26 +0100)]
Minor formatting fixes

11 years agoMerge pull request #118 from philmayers/cache-locking
Arran Cudbard-Bell [Sat, 27 Oct 2012 10:14:55 +0000 (03:14 -0700)]
Merge pull request #118 from philmayers/cache-locking

add locking to rlm_cache

11 years agoadd locking to rlm_cache
Phil Mayers [Fri, 26 Oct 2012 15:47:35 +0000 (16:47 +0100)]
add locking to rlm_cache

11 years agoAfter running it through the formatter
Alan T. DeKok [Sat, 27 Oct 2012 08:00:36 +0000 (10:00 +0200)]
After running it through the formatter

11 years agoFixes to work with system libtool
Alan T. DeKok [Sat, 27 Oct 2012 07:08:18 +0000 (09:08 +0200)]
Fixes to work with system libtool

11 years agoRemove last shred of libtool
Alan T. DeKok [Sat, 27 Oct 2012 06:59:06 +0000 (08:59 +0200)]
Remove last shred of libtool

WARNING: don't do "autoreconf", as it adds libtool back!
Instead, do "autoconf".

11 years agoUse redis escape function
Alan T. DeKok [Fri, 26 Oct 2012 11:46:05 +0000 (13:46 +0200)]
Use redis escape function

11 years agoUnderstand extended format attrs, too
Alan T. DeKok [Thu, 25 Oct 2012 12:03:56 +0000 (14:03 +0200)]
Understand extended format attrs, too

11 years agoCreate threads as joinable, not detached.
Iliya Peregoudov [Thu, 25 Oct 2012 07:29:42 +0000 (11:29 +0400)]
Create threads as joinable, not detached.
Stop and join all threads before detaching modules.

This prevents a crash on exit where the modules are free'd before
the threads stop using them.

11 years agoAdd proxim dictionary
Arran Cudbard-Bell [Thu, 25 Oct 2012 09:53:36 +0000 (10:53 +0100)]
Add proxim dictionary

11 years agoPass correct arguments to memcpy
Alan T. DeKok [Thu, 25 Oct 2012 08:10:22 +0000 (10:10 +0200)]
Pass correct arguments to memcpy

Copying pointers means you pass a pointer to the pointer.

11 years agoMerge branch 'master' of github.com:FreeRADIUS/freeradius-server
Alan T. DeKok [Thu, 25 Oct 2012 08:04:48 +0000 (10:04 +0200)]
Merge branch 'master' of github.com:FreeRADIUS/freeradius-server

11 years agoMerge pull request #112 from armitasp/master
Arran Cudbard-Bell [Wed, 24 Oct 2012 07:13:34 +0000 (00:13 -0700)]
Merge pull request #112 from armitasp/master

Minor formatting fix. add_cui should be add-cui

11 years agoMinor formatting fix. add_cui should be add-cui
Scott Armitage [Tue, 23 Oct 2012 19:36:11 +0000 (20:36 +0100)]
Minor formatting fix. add_cui should be add-cui

11 years agoMore formatting fixes
Arran Cudbard-Bell [Tue, 23 Oct 2012 13:08:19 +0000 (14:08 +0100)]
More formatting fixes

11 years agoImprove Kerberos support when using Heimdal
Ryan Steinmetz [Tue, 23 Oct 2012 11:30:33 +0000 (12:30 +0100)]
Improve Kerberos support when using Heimdal

- Allow specifying a keytab location
- Improved logging

Patch obtained from Thomas Kula <kula@tproa.net>

- Fix krb_auth parameters/casting
- Use strlcpy() instead of strncpy()
- Fix style issues

11 years agoDon't complain if there are triggers don't exist
Alan T. DeKok [Mon, 22 Oct 2012 15:45:44 +0000 (17:45 +0200)]
Don't complain if there are triggers don't exist

11 years agoFixup formatting and errors in cui policy and dependencies
Arran Cudbard-Bell [Mon, 22 Oct 2012 09:23:07 +0000 (10:23 +0100)]
Fixup formatting and errors in cui policy and dependencies

Include sql cui queries by default, as the cuisql module won't be
instantiated in the default config.

Change cui_has_key value to make it clear that it should be changed.

Use string (yes/no) for bool in cui_require_operator_name for consistancy,
ideally the parser would pre-evaluate comparisons between literal strings,
but the performance hit does not outweigh consistency.

Remove spurious spaces around conditions.

Literal strings should be literal (i.e. single quotes).

Packet-Type is still provided by a magic xlat expension.

Substitute 8 spaces for tabs (config files have same formatting rules as C src)

Use outer.request:EAP-Message to check whether were in an inner or outer tunnel,
should be forwards compatible.

${} values are pre-expanded, so do not require double quotes.

control:Proxy-To-Realm is not a magic attribute, it's a standard attribute in the
control list (even when set by rlm_realm).

cui virtual module does not have xlat method, should use cuisql.

11 years agoMerge branch 'master' of github.com:FreeRADIUS/freeradius-server
Arran Cudbard-Bell [Mon, 22 Oct 2012 08:34:42 +0000 (09:34 +0100)]
Merge branch 'master' of github.com:FreeRADIUS/freeradius-server

11 years agoMerge pull request #110 from armitasp/master
Arran Cudbard-Bell [Mon, 22 Oct 2012 08:33:44 +0000 (01:33 -0700)]
Merge pull request #110 from armitasp/master

Updated CUI Policy

11 years agoMinor formatting fixes
Arran Cudbard-Bell [Sun, 21 Oct 2012 16:58:18 +0000 (17:58 +0100)]
Minor formatting fixes

11 years agoChanged sites-available/default. Documented the use of cui
Scott Armitage [Sun, 21 Oct 2012 16:49:56 +0000 (17:49 +0100)]
Changed sites-available/default. Documented the use of cui

11 years agoChanged sites-available/inner-tunnel. Documented the use of cui
Scott Armitage [Sun, 21 Oct 2012 16:28:17 +0000 (17:28 +0100)]
Changed sites-available/inner-tunnel. Documented the use of cui

11 years agoChanged cui policy. Changed the updating of the cui in the database to occur in the...
Scott Armitage [Sun, 21 Oct 2012 16:13:31 +0000 (17:13 +0100)]
Changed cui policy. Changed the updating of the cui in the database to occur in the cui.post-auth.  Changed mods-available/cui module name

11 years agoChanged cui policy. Added settings to (optionally) make requirement of operator name...
Scott Armitage [Sun, 21 Oct 2012 15:58:19 +0000 (16:58 +0100)]
Changed cui policy. Added settings to (optionally) make requirement of operator name a pre-requisite for cui generation

11 years agoChanged cui policy. Added a cui.pre-proxy section to request a cui when proxying...
Scott Armitage [Sun, 21 Oct 2012 15:39:54 +0000 (16:39 +0100)]
Changed cui policy. Added a cui.pre-proxy section to request a cui when proxying authentication requests

11 years agoChanged cui policy. cui.authorize requires a flag is set in client definition. This...
Scott Armitage [Sun, 21 Oct 2012 15:28:23 +0000 (16:28 +0100)]
Changed cui policy. cui.authorize requires a flag is set in client definition.  This allows cui request on a per client basis

11 years agoAdded the cui hash to cui policy
Scott Armitage [Sun, 21 Oct 2012 15:20:13 +0000 (16:20 +0100)]
Added the cui hash to cui policy

11 years agoMade packet data len "size_t".
Alan T. DeKok [Sat, 20 Oct 2012 07:37:36 +0000 (09:37 +0200)]
Made packet data len "size_t".

Only one place needs it to be negative: the read from the socket.
For the rest of the code, it is ALWAYS positive.

As part of this, changed a few other variables, too.
And uses "%zu" for printing "size_t" variables.  C99 is everywhere.
If you want to build the server on a non-C99 compiler, go away.

11 years agoFix compiler warnings
Alan T. DeKok [Sat, 20 Oct 2012 07:26:22 +0000 (09:26 +0200)]
Fix compiler warnings

11 years agoMerge branch 'master' of github.com:FreeRADIUS/freeradius-server
Alan T. DeKok [Sat, 20 Oct 2012 07:05:41 +0000 (09:05 +0200)]
Merge branch 'master' of github.com:FreeRADIUS/freeradius-server

11 years agoSubstitute 'signature' for 'Request Authenticator' or 'Response Authenticator' where...
Arran Cudbard-Bell [Thu, 18 Oct 2012 10:39:42 +0000 (11:39 +0100)]
Substitute 'signature' for 'Request Authenticator' or 'Response Authenticator' where appropriate

11 years agoAdd base64tohex to allow values to be written to IP addresses, integers etc
Arran Cudbard-Bell [Wed, 17 Oct 2012 14:59:47 +0000 (15:59 +0100)]
Add base64tohex to allow values to be written to IP addresses, integers etc

Remove base64tostr (will add tostring expansion later)

Rename strtobase64 to tobase64

11 years agofixes #108 Add function to convert FR value pair types to network byte order
Arran Cudbard-Bell [Wed, 17 Oct 2012 14:32:41 +0000 (15:32 +0100)]
fixes #108 Add function to convert FR value pair types to network byte order

11 years agoRemove dependency on stdbool and use FRs bool constants
Arran Cudbard-Bell [Tue, 16 Oct 2012 09:45:39 +0000 (10:45 +0100)]
Remove dependency on stdbool and use FRs bool constants

11 years agoMove boolean constants to libradius
Arran Cudbard-Bell [Tue, 16 Oct 2012 09:43:05 +0000 (10:43 +0100)]
Move boolean constants to libradius

11 years agofixup formatting/warning
Arran Cudbard-Bell [Mon, 15 Oct 2012 20:43:57 +0000 (21:43 +0100)]
fixup formatting/warning

11 years agoAdd different operators handle to rlm_python
Metasov [Fri, 14 Oct 2011 14:49:23 +0000 (17:49 +0300)]
Add different operators handle to rlm_python

11 years agoremove compilation error messages (As noted by Alan Buxey)
Arran Cudbard-Bell [Mon, 15 Oct 2012 13:47:42 +0000 (14:47 +0100)]
remove compilation error messages (As noted by Alan Buxey)

removes the following at compile time:

dhcp.c: In function ‘fr_dhcp_add_arp_entry’:
dhcp.c:1561: warning: format ‘%lu’ expects type ‘long unsigned int’,
but argument 2 has type ‘unsigned int’
dhcp.c:1561: warning: format ‘%lu’ expects type ‘long unsigned int’,
but argument 3 has type ‘size_t’

11 years agoOnly print out user authorized message if the ldap module is actually being used...
Arran Cudbard-Bell [Mon, 15 Oct 2012 08:42:22 +0000 (09:42 +0100)]
Only print out user authorized message if the ldap module is actually being used for user authorization