freeradius.git
9 years agoThe old name is deprecated, not the new one
Alan T. DeKok [Fri, 23 Jan 2015 20:48:33 +0000 (15:48 -0500)]
The old name is deprecated, not the new one

9 years agoFix capitalisation in ssha2passwd
Arran Cudbard-Bell [Fri, 23 Jan 2015 18:06:28 +0000 (01:06 +0700)]
Fix capitalisation in ssha2passwd

9 years agoModernise logrotate configuration files and use copytruncate for the main server...
Arran Cudbard-Bell [Fri, 23 Jan 2015 17:46:37 +0000 (00:46 +0700)]
Modernise logrotate configuration files and use copytruncate for the main server logs

9 years agoDon't dereference NULL. Fixes #888
Alan T. DeKok [Thu, 22 Jan 2015 22:17:02 +0000 (17:17 -0500)]
Don't dereference NULL.  Fixes #888

An attribute may have zero length, but is still (sort of)
well formed.

9 years agoInitialise ldapai_info_version field of LDAPAPIInfo struct so the LDAP_OPT_API_INFO...
Arran Cudbard-Bell [Thu, 22 Jan 2015 19:53:32 +0000 (02:53 +0700)]
Initialise ldapai_info_version field of LDAPAPIInfo struct so the LDAP_OPT_API_INFO call works

9 years agoSanitize curl-config cflags
Arran Cudbard-Bell [Thu, 22 Jan 2015 15:58:12 +0000 (22:58 +0700)]
Sanitize curl-config cflags

9 years agoFix typo in base64 docs
Arran Cudbard-Bell [Thu, 22 Jan 2015 15:50:11 +0000 (22:50 +0700)]
Fix typo in base64 docs

9 years agoPass through LIBCURL_CPPFLAGS
Arran Cudbard-Bell [Thu, 22 Jan 2015 15:47:03 +0000 (22:47 +0700)]
Pass through LIBCURL_CPPFLAGS

9 years agoSet src/dst IP address prefix lengths correctly when copying their values from VALUE_...
Arran Cudbard-Bell [Thu, 22 Jan 2015 09:56:52 +0000 (16:56 +0700)]
Set src/dst IP address prefix lengths correctly when copying their values from VALUE_PAIRs Closes #887

9 years agoRemove extraneous semicolon
Alan T. DeKok [Wed, 21 Jan 2015 20:01:21 +0000 (15:01 -0500)]
Remove extraneous semicolon

9 years agoAttempt to remove failing test when there's no OpenSSL
Alan T. DeKok [Wed, 21 Jan 2015 19:06:31 +0000 (14:06 -0500)]
Attempt to remove failing test when there's no OpenSSL

9 years agoRemove unused variable
Alan T. DeKok [Wed, 21 Jan 2015 17:38:29 +0000 (12:38 -0500)]
Remove unused variable

9 years agoAdded rpad && lpad
Alan T. DeKok [Wed, 21 Jan 2015 16:40:32 +0000 (11:40 -0500)]
Added rpad && lpad

9 years agoRemove wrong assertion. "out" can be NULL
Alan T. DeKok [Wed, 21 Jan 2015 16:34:30 +0000 (11:34 -0500)]
Remove wrong assertion.  "out" can be NULL

9 years agoadd assert to normify_with_header, checking vp type
Arran Cudbard-Bell [Wed, 21 Jan 2015 05:37:12 +0000 (12:37 +0700)]
add assert to normify_with_header, checking vp type

9 years agoSkip if the server wasn't build with OpenSSL
Arran Cudbard-Bell [Wed, 21 Jan 2015 02:57:07 +0000 (09:57 +0700)]
Skip if the server wasn't build with OpenSSL

9 years agoAdd support for SSHA2 - Original patch by PDD
Arran Cudbard-Bell [Wed, 21 Jan 2015 02:38:58 +0000 (09:38 +0700)]
Add support for SSHA2 - Original patch by PDD

9 years agoMinor fixes in rlm_pap
Arran Cudbard-Bell [Wed, 21 Jan 2015 02:07:23 +0000 (09:07 +0700)]
Minor fixes in rlm_pap

9 years agoDocument and rename some configuration structure fields in rlm_sql
Arran Cudbard-Bell [Wed, 21 Jan 2015 01:41:11 +0000 (08:41 +0700)]
Document and rename some configuration structure fields in rlm_sql

9 years agoupdate rlm_passwd
Matthew Newton [Mon, 19 Jan 2015 23:59:05 +0000 (23:59 +0000)]
update rlm_passwd

9 years agoupdate rlm_always
Matthew Newton [Sun, 11 Jan 2015 01:07:55 +0000 (01:07 +0000)]
update rlm_always

9 years agoNote that break means "break now"
Alan T. DeKok [Tue, 20 Jan 2015 20:40:02 +0000 (15:40 -0500)]
Note that break means "break now"

9 years agoModules cannot be named for reserved words in unlang
Alan T. DeKok [Tue, 20 Jan 2015 20:12:22 +0000 (15:12 -0500)]
Modules cannot be named for reserved words in unlang

9 years agoBuild debug package
Arran Cudbard-Bell [Tue, 20 Jan 2015 13:39:00 +0000 (20:39 +0700)]
Build debug package

9 years agoTypo
Arran Cudbard-Bell [Tue, 20 Jan 2015 12:40:17 +0000 (19:40 +0700)]
Typo

9 years agoUpdate redhat init scripts
Arran Cudbard-Bell [Tue, 20 Jan 2015 04:41:54 +0000 (11:41 +0700)]
Update redhat init scripts

Add the same additional options as debian (configtest, debug, debug-threaded)

9 years agoMax pending should be unsigned
Arran Cudbard-Bell [Mon, 19 Jan 2015 14:02:36 +0000 (21:02 +0700)]
Max pending should be unsigned

9 years agoFix weird indentation in connection.c
Arran Cudbard-Bell [Mon, 19 Jan 2015 13:22:14 +0000 (20:22 +0700)]
Fix weird indentation in connection.c

9 years agoRate-limit new connections after a failed attempt.
Alan T. DeKok [Mon, 19 Jan 2015 13:40:10 +0000 (08:40 -0500)]
Rate-limit new connections after a failed attempt.

If we fail to open a connection, we don't want N child threads
to block on opening new connections.  Instead, allow one connection
through.  If that succeeds, allow 2, then 3, etc.

9 years agoUse chmod permissions macros
Arran Cudbard-Bell [Mon, 19 Jan 2015 04:02:57 +0000 (11:02 +0700)]
Use chmod permissions macros

9 years agoFix coverity issues
Arran Cudbard-Bell [Mon, 19 Jan 2015 02:02:11 +0000 (09:02 +0700)]
Fix coverity issues

9 years agoNeed H: arg
Arran Cudbard-Bell [Sun, 18 Jan 2015 16:22:53 +0000 (23:22 +0700)]
Need H: arg

9 years agocall rad_mkdir to make the path for the control socket, and modify the default config...
Arran Cudbard-Bell [Sun, 18 Jan 2015 15:32:34 +0000 (22:32 +0700)]
call rad_mkdir to make the path for the control socket, and modify the default config to place the control socket into a 'control' subdirectory

If this works everywhere we should be able to manage control socket permissions using just the filesystem

9 years agoRemove UNUSED where the parameter is actually used
Alan T. DeKok [Sun, 18 Jan 2015 15:14:37 +0000 (10:14 -0500)]
Remove UNUSED where the parameter is actually used

9 years agoFix control socket permissions control for none Linux systems
Arran Cudbard-Bell [Sun, 18 Jan 2015 13:07:14 +0000 (20:07 +0700)]
Fix control socket permissions control for none Linux systems

chown() on Unix sockets errors out on all BSD systems including OSX.

9 years agoFix stupid redundant getgr* and getpw* functions
Arran Cudbard-Bell [Sun, 18 Jan 2015 12:32:01 +0000 (19:32 +0700)]
Fix stupid redundant getgr* and getpw* functions

We will *always* have the _r variants, and we should always have the headers. There's no need to check, there's no need to fallback.

9 years agoFixup rlm_ldap to use bind credentials from the module instance that created the...
Arran Cudbard-Bell [Sun, 18 Jan 2015 07:38:03 +0000 (14:38 +0700)]
Fixup rlm_ldap to use bind credentials from the module instance that created the connection pool, not the module referencing it

Allow server to be NULL if the module instance is using a connection pool reference

9 years agoAdd %{ldapquote:} to escape special chars in filters and DNs
Arran Cudbard-Bell [Sun, 18 Jan 2015 05:09:32 +0000 (12:09 +0700)]
Add %{ldapquote:} to escape special chars in filters and DNs

9 years agoTypo
Arran Cudbard-Bell [Sun, 18 Jan 2015 05:01:24 +0000 (12:01 +0700)]
Typo

9 years agoOptimise tmpl_expand to avoid copying to intermediary buffers when not required
Arran Cudbard-Bell [Sun, 18 Jan 2015 04:26:07 +0000 (11:26 +0700)]
Optimise tmpl_expand to avoid copying to intermediary buffers when not required

This has two positive side effects. Firstly the LDAP code is marginally faster.

Second, when using attribute references or literals for DNs and filters the length is unlimited.

9 years agoShould be jsonquote to match urlquote (not tojson)
Arran Cudbard-Bell [Sun, 18 Jan 2015 04:21:33 +0000 (11:21 +0700)]
Should be jsonquote to match urlquote (not tojson)

9 years agoxlat.h needs conffile.h for xlat_register_redundant
Arran Cudbard-Bell [Sun, 18 Jan 2015 02:52:26 +0000 (09:52 +0700)]
xlat.h needs conffile.h for xlat_register_redundant

9 years agoRemove restriction on assigning return codes only to module calls
Arran Cudbard-Bell [Sun, 18 Jan 2015 02:34:54 +0000 (09:34 +0700)]
Remove restriction on assigning return codes only to module calls

9 years agoNo more hacks for xlat
Arran Cudbard-Bell [Sun, 18 Jan 2015 02:34:16 +0000 (09:34 +0700)]
No more hacks for xlat

9 years agocf_item_parse type should be unsigned to match PW_TYPE enum
Arran Cudbard-Bell [Sun, 18 Jan 2015 00:55:03 +0000 (07:55 +0700)]
cf_item_parse type should be unsigned to match PW_TYPE enum

9 years agoSwitch relevant config items in rlm_ldap to tmpls
Arran Cudbard-Bell [Sat, 17 Jan 2015 16:10:04 +0000 (23:10 +0700)]
Switch relevant config items in rlm_ldap to tmpls

9 years agoAdd PW_TYPE_TMPL which parses a conf item directly as a value_pair_tmpl_t
Arran Cudbard-Bell [Sat, 17 Jan 2015 16:09:26 +0000 (23:09 +0700)]
Add PW_TYPE_TMPL which parses a conf item directly as a value_pair_tmpl_t

9 years agoMove xlat functions into a separate header file
Arran Cudbard-Bell [Sat, 17 Jan 2015 16:07:17 +0000 (23:07 +0700)]
Move xlat functions into a separate header file

9 years agoAdd nexttime xlat, for calculating number of seconds before next hour, day, week...
Arran Cudbard-Bell [Sat, 17 Jan 2015 09:59:02 +0000 (16:59 +0700)]
Add nexttime xlat, for calculating number of seconds before next hour, day, week, month or year

9 years agoMore useful default control policies
Arran Cudbard-Bell [Sat, 17 Jan 2015 03:24:01 +0000 (10:24 +0700)]
More useful default control policies

9 years agoFix for CID #1104360
Arran Cudbard-Bell [Sat, 17 Jan 2015 02:20:22 +0000 (09:20 +0700)]
Fix for CID #1104360

9 years agoCorrect fix for #878
Arran Cudbard-Bell [Sat, 17 Jan 2015 00:24:05 +0000 (07:24 +0700)]
Correct fix for #878

9 years agoSet length correctly. Fixes #878
Alan T. DeKok [Fri, 16 Jan 2015 16:09:34 +0000 (11:09 -0500)]
Set length correctly.  Fixes #878

9 years agoSave session-state after proxying. Fixes #854
Alan T. DeKok [Fri, 16 Jan 2015 15:08:30 +0000 (10:08 -0500)]
Save session-state after proxying.  Fixes #854

9 years agoTest for "return { ...}"
Alan T. DeKok [Fri, 16 Jan 2015 14:49:41 +0000 (09:49 -0500)]
Test for "return { ...}"

Hm... the test framework doesn't check for false successes.
If a test contains "ERROR", it should fail if unittest.c succeeds

9 years agoReturn on parse error for break / return
Alan T. DeKok [Fri, 16 Jan 2015 14:44:25 +0000 (09:44 -0500)]
Return on parse error for break / return

9 years agoAdd tojson xlat for escaping json strings
Arran Cudbard-Bell [Fri, 16 Jan 2015 11:18:57 +0000 (18:18 +0700)]
Add tojson xlat for escaping json strings

9 years agoPrint out info for MySQL server and libmysql client version
Arran Cudbard-Bell [Fri, 16 Jan 2015 10:39:49 +0000 (17:39 +0700)]
Print out info for MySQL server and libmysql client version

9 years agoStop server INFOing about empty sections
Arran Cudbard-Bell [Fri, 16 Jan 2015 10:13:26 +0000 (17:13 +0700)]
Stop server INFOing about empty sections

9 years agoReturn updated if rlm_ldap updated the request
Arran Cudbard-Bell [Fri, 16 Jan 2015 10:02:53 +0000 (17:02 +0700)]
Return updated if rlm_ldap updated the request

Also pass back more error conditions from the profile mapping code

9 years agoChange severity and return code for DN not found
Arran Cudbard-Bell [Fri, 16 Jan 2015 07:26:28 +0000 (14:26 +0700)]
Change severity and return code for DN not found

When searching for a user, not finding the base DN is normal and should be converted to a notfound return code

9 years agoTypo
Arran Cudbard-Bell [Thu, 15 Jan 2015 11:20:32 +0000 (18:20 +0700)]
Typo

9 years agoAllow action over-rides for all modules. Fixes #876
Alan T. DeKok [Fri, 16 Jan 2015 03:59:44 +0000 (22:59 -0500)]
Allow action over-rides for all modules.  Fixes #876

For modules, policies, and things in the "instantiate" section.

9 years agoFix marked unused complains in mysql driver
Arran Cudbard-Bell [Thu, 15 Jan 2015 11:18:03 +0000 (18:18 +0700)]
Fix marked unused complains in mysql driver

9 years agoCheck for destination IP, too. Closes #873
Alan T. DeKok [Wed, 14 Jan 2015 16:32:00 +0000 (11:32 -0500)]
Check for destination IP, too.  Closes #873

9 years agohome_pool may be NULL when packets go directly to an IP
Alan T. DeKok [Wed, 14 Jan 2015 16:28:34 +0000 (11:28 -0500)]
home_pool may be NULL when packets go directly to an IP

9 years agoAdd connection timeout for rlm_rest
Arran Cudbard-Bell [Wed, 14 Jan 2015 14:02:46 +0000 (21:02 +0700)]
Add connection timeout for rlm_rest

9 years agoDoxygen
Arran Cudbard-Bell [Wed, 14 Jan 2015 09:41:34 +0000 (16:41 +0700)]
Doxygen

9 years agoSupport subsecond timeout values in rlm_rest
Arran Cudbard-Bell [Wed, 14 Jan 2015 09:08:30 +0000 (16:08 +0700)]
Support subsecond timeout values in rlm_rest

9 years agoAdd explode xlat %{explode:&ref <delim>}
Arran Cudbard-Bell [Wed, 14 Jan 2015 06:33:00 +0000 (13:33 +0700)]
Add explode xlat %{explode:&ref <delim>}

Useful for breaking out values shoved into Class and User-Name

9 years agoRevert "Convert error to warning. So we don't break configs"
Arran Cudbard-Bell [Wed, 14 Jan 2015 01:28:26 +0000 (08:28 +0700)]
Revert "Convert error to warning.  So we don't break configs"

We want it to be an error in master

This reverts commit 639bee258bc0f9e2778fd32a7ebfbab95e29e495.

9 years agoSQL counter query should be xlat'd
Arran Cudbard-Bell [Wed, 14 Jan 2015 01:18:18 +0000 (08:18 +0700)]
SQL counter query should be xlat'd

9 years agoAdd support for PATCH in rest
Arran Cudbard-Bell [Wed, 14 Jan 2015 01:18:05 +0000 (08:18 +0700)]
Add support for PATCH in rest

9 years agoMarkup sqlippol fields as xlat
Arran Cudbard-Bell [Wed, 14 Jan 2015 00:43:05 +0000 (07:43 +0700)]
Markup sqlippol fields as xlat

9 years agoMarkup more fields in rlm_sql as xlat'd
Arran Cudbard-Bell [Wed, 14 Jan 2015 00:22:25 +0000 (07:22 +0700)]
Markup more fields in rlm_sql as xlat'd

9 years agoMarkup xlat'd fields in rlm_ldap
Arran Cudbard-Bell [Wed, 14 Jan 2015 00:06:14 +0000 (07:06 +0700)]
Markup xlat'd fields in rlm_ldap

9 years agoConvert error to warning. So we don't break configs
Alan T. DeKok [Tue, 13 Jan 2015 23:44:30 +0000 (18:44 -0500)]
Convert error to warning.  So we don't break configs

9 years agoStrings NOT dynamically expanded shouldn't have %{ in them.
Alan T. DeKok [Tue, 13 Jan 2015 21:47:20 +0000 (16:47 -0500)]
Strings NOT dynamically expanded shouldn't have %{ in them.

9 years agoMark more strings as dynamically expanded
Alan T. DeKok [Tue, 13 Jan 2015 21:44:49 +0000 (16:44 -0500)]
Mark more strings as dynamically expanded

9 years agoSignal the main detail thread if we get a bad packet
Alan T. DeKok [Tue, 13 Jan 2015 16:45:24 +0000 (11:45 -0500)]
Signal the main detail thread if we get a bad packet

9 years agoSet prefix for CoA, too
Alan T. DeKok [Tue, 13 Jan 2015 16:35:13 +0000 (11:35 -0500)]
Set prefix for CoA, too

9 years agoHandle CoA packets, too
Alan T. DeKok [Tue, 13 Jan 2015 16:32:56 +0000 (11:32 -0500)]
Handle CoA packets, too

9 years agoCopy the VPs earlier, so that we can access them
Alan T. DeKok [Tue, 13 Jan 2015 16:22:10 +0000 (11:22 -0500)]
Copy the VPs earlier, so that we can access them

9 years agoCleanup PAM code, and use the correct logging functions
Arran Cudbard-Bell [Tue, 13 Jan 2015 13:53:18 +0000 (20:53 +0700)]
Cleanup PAM code, and use the correct logging functions

9 years agoFix typo in VQP license
Arran Cudbard-Bell [Tue, 13 Jan 2015 04:42:00 +0000 (11:42 +0700)]
Fix typo in VQP license

9 years agoFix license to be GPLv2.
Alan T. DeKok [Tue, 13 Jan 2015 04:07:31 +0000 (23:07 -0500)]
Fix license to be GPLv2.

As author, I allow this change.

9 years agoFix license erroneously updated by commit 23d838445
Alan T. DeKok [Tue, 13 Jan 2015 04:01:12 +0000 (23:01 -0500)]
Fix license erroneously updated by commit 23d838445

The main LICENSE file and all in-code licenses are GPLv2 or later,
except for rlm_opendirectory.  Apple insisted on GPLv2 for that.

9 years agos/if/of/ in the GPL license
Alan T. DeKok [Tue, 13 Jan 2015 03:51:26 +0000 (22:51 -0500)]
s/if/of/ in the GPL license

9 years agoDefine "Auth-Type foo" before loading the modules.
Alan T. DeKok [Tue, 13 Jan 2015 03:50:23 +0000 (22:50 -0500)]
Define "Auth-Type foo" before loading the modules.

Because some modules (e.g. EAP-GTC) may refer to them.
So we need to have the types defined before the module loads.

9 years agoDon't install rlm_test
Alan T. DeKok [Mon, 12 Jan 2015 18:07:34 +0000 (13:07 -0500)]
Don't install rlm_test

9 years agoMerge pull request #871 from pwdng/master
Alan DeKok [Mon, 12 Jan 2015 16:51:07 +0000 (11:51 -0500)]
Merge pull request #871 from pwdng/master

Link libfreeradius-server against openssl to that linker can include ver...

9 years agoLink libfreeradius-server against openssl to that linker can include version of SSLea...
Philippe Wooding [Mon, 12 Jan 2015 11:05:31 +0000 (12:05 +0100)]
Link libfreeradius-server against openssl to that linker can include version of SSLeay functions to use. Since version.c was moved to libfreeradius-server, the wrong version was being used on RadHat.

9 years agoAdd test script for radclient
Arran Cudbard-Bell [Mon, 12 Jan 2015 01:04:04 +0000 (08:04 +0700)]
Add test script for radclient

9 years agoNeed to use static vendor, else it doesn't work when we've removed all the Broadsoft...
Arran Cudbard-Bell [Sun, 11 Jan 2015 04:28:38 +0000 (11:28 +0700)]
Need to use static vendor, else it doesn't work when we've removed all the Broadsoft attributes

9 years agoAdd foreach isolation test
Arran Cudbard-Bell [Sun, 11 Jan 2015 04:04:17 +0000 (11:04 +0700)]
Add foreach isolation test

Foreach should copy all target attributes, so modifying the list being iterated over shouldn't change how foreach behaves

9 years agoDoxygen
Arran Cudbard-Bell [Sat, 10 Jan 2015 06:38:36 +0000 (13:38 +0700)]
Doxygen

9 years agoAdd 'internal' flag as discussed in #867
Arran Cudbard-Bell [Sat, 10 Jan 2015 06:29:12 +0000 (13:29 +0700)]
Add 'internal' flag as discussed in #867

9 years agoTypo
Arran Cudbard-Bell [Sat, 10 Jan 2015 03:14:43 +0000 (10:14 +0700)]
Typo

9 years agoFormatting
Arran Cudbard-Bell [Thu, 8 Jan 2015 21:57:15 +0000 (04:57 +0700)]
Formatting

9 years agobring rlm_pap man page up-to-date
Matthew Newton [Sat, 10 Jan 2015 02:10:22 +0000 (02:10 +0000)]
bring rlm_pap man page up-to-date