freeradius.git
11 years agorlm_rediswho: return RLM_MODULE_FAIL on failure (including failed Expire)
Brian Candler [Thu, 14 Feb 2013 12:46:52 +0000 (12:46 +0000)]
rlm_rediswho: return RLM_MODULE_FAIL on failure (including failed Expire)

11 years agorlm_rediswho: fix trim functionality
Brian Candler [Thu, 14 Feb 2013 12:43:08 +0000 (12:43 +0000)]
rlm_rediswho: fix trim functionality

(note: query result is not available after redis_finish_query has been called)

11 years agorlm_rediswho: fix unlang conditional expansion
Brian Candler [Thu, 14 Feb 2013 16:19:03 +0000 (16:19 +0000)]
rlm_rediswho: fix unlang conditional expansion

11 years agorlm_redis: fix segfaults on connect
Brian Candler [Thu, 14 Feb 2013 16:02:17 +0000 (16:02 +0000)]
rlm_redis: fix segfaults on connect

11 years agoJust call the normal attr2vp function
Alan T. DeKok [Wed, 13 Feb 2013 02:24:49 +0000 (21:24 -0500)]
Just call the normal attr2vp function

11 years agoAdded -x, like other programs
Alan T. DeKok [Wed, 13 Feb 2013 01:21:49 +0000 (20:21 -0500)]
Added -x, like other programs

11 years agoFix typo.
Alan T. DeKok [Tue, 12 Feb 2013 22:29:32 +0000 (17:29 -0500)]
Fix typo.

Fail when NOT inserting attrs

11 years agoQuiet doxygen
Arran Cudbard-Bell [Wed, 13 Feb 2013 18:44:24 +0000 (13:44 -0500)]
Quiet doxygen

11 years agoUse xlat for generating the OTP challenge reply-message
Arran Cudbard-Bell [Wed, 13 Feb 2013 00:48:00 +0000 (19:48 -0500)]
Use xlat for generating the OTP challenge reply-message

Remove otp specific bin2hex hex2bin functions and use FR ones

Fix formatting

Fix warnings about signdedness of various strings.

Insert Reply-Message attribute with T_OP_SET instead of T_OP_EQ

Add basic code documentation for some functions

11 years agoTypo
Arran Cudbard-Bell [Wed, 13 Feb 2013 00:01:27 +0000 (19:01 -0500)]
Typo

11 years agoAdd CONST to functions that return DICT_ATTR
Arran Cudbard-Bell [Tue, 12 Feb 2013 23:58:51 +0000 (18:58 -0500)]
Add CONST to functions that return DICT_ATTR

Reformat documentation for some structs

Change VALUE_PAIR type from int to PW_TYPE

11 years agofree_dict_attr should set pointer to NULL after freeing
Arran Cudbard-Bell [Tue, 12 Feb 2013 22:38:17 +0000 (17:38 -0500)]
free_dict_attr should set pointer to NULL after freeing

11 years agoAdd function to create unknown attributes from text strings
Arran Cudbard-Bell [Tue, 12 Feb 2013 20:14:39 +0000 (15:14 -0500)]
Add function to create unknown attributes from text strings

11 years agoFix indentation in pairparsevalue
Arran Cudbard-Bell [Tue, 12 Feb 2013 19:20:31 +0000 (14:20 -0500)]
Fix indentation in pairparsevalue

11 years agoAdditional dictionary functions for working with dynamic attributes
Arran Cudbard-Bell [Tue, 12 Feb 2013 18:50:58 +0000 (13:50 -0500)]
Additional dictionary functions for working with dynamic attributes

11 years agoActually print out encoded options in debug mode.
Alan T. DeKok [Tue, 12 Feb 2013 15:10:21 +0000 (10:10 -0500)]
Actually print out encoded options in debug mode.

11 years agoAs found on the net
Alan T. DeKok [Mon, 11 Feb 2013 13:13:41 +0000 (08:13 -0500)]
As found on the net

11 years agoAdded radmin command "hup main.log". Closes issue #121
Alan T. DeKok [Tue, 12 Feb 2013 14:56:29 +0000 (09:56 -0500)]
Added radmin command "hup main.log".  Closes issue #121

11 years agoClarify decoding code
Alan T. DeKok [Tue, 12 Feb 2013 18:47:06 +0000 (13:47 -0500)]
Clarify decoding code

11 years agoAdded dict_attrbytype(attr, vendor, type)
Alan T. DeKok [Tue, 12 Feb 2013 18:46:32 +0000 (13:46 -0500)]
Added dict_attrbytype(attr, vendor, type)

for dealing with combo-ip attributes

11 years agoUse hard-coded numbers for dictionary entries.
Alan T. DeKok [Tue, 12 Feb 2013 15:33:49 +0000 (10:33 -0500)]
Use hard-coded numbers for dictionary entries.

There's no reason to expect that the server binary will be incompatible
with the dictionaries

11 years agoRename unknown_attr to is_unkown (like is_tlv)
Arran Cudbard-Bell [Tue, 12 Feb 2013 14:56:07 +0000 (09:56 -0500)]
Rename unknown_attr to is_unkown (like is_tlv)

11 years agoIgnore warnings.txt (output of make warnings)
Arran Cudbard-Bell [Tue, 12 Feb 2013 14:55:03 +0000 (09:55 -0500)]
Ignore warnings.txt (output of make warnings)

11 years agoCheck return code of dict_addattr, and use correct argument order
Alan T. DeKok [Tue, 12 Feb 2013 14:24:33 +0000 (09:24 -0500)]
Check return code of dict_addattr, and use correct argument order

and print a useful error message

11 years agoAdded "default" to switch statement
Alan T. DeKok [Tue, 12 Feb 2013 01:45:12 +0000 (20:45 -0500)]
Added "default" to switch statement

11 years agoAdd dict_attrunknown function for when we don't have dictionary entries but still...
Arran Cudbard-Bell [Tue, 12 Feb 2013 01:37:17 +0000 (20:37 -0500)]
Add dict_attrunknown function for when we don't have dictionary entries but still need to assign a DA to a VP.

11 years agoDecode extended TLVs correctly.
Alan T. DeKok [Mon, 11 Feb 2013 23:51:02 +0000 (18:51 -0500)]
Decode extended TLVs correctly.

This uses the new dict_attrbyparent() API to avoid doing magic
on "nest".  The code becomes a bit easier to read.

11 years agoVP_TRACE using hex values for VID / attr
Alan T. DeKok [Mon, 11 Feb 2013 23:49:34 +0000 (18:49 -0500)]
VP_TRACE using hex values for VID / attr

It's easier to read

11 years agoLook for extended attrs before RFC format ones
Alan T. DeKok [Mon, 11 Feb 2013 23:47:22 +0000 (18:47 -0500)]
Look for extended attrs before RFC format ones

11 years agoAdded dict_attrbyparent()
Alan T. DeKok [Mon, 11 Feb 2013 22:47:44 +0000 (17:47 -0500)]
Added dict_attrbyparent()

Which gets a DICT_ATTR based on a parent reference, and an attr number

This is so that any magic of playing with attr/vendor is hidden
inside of one function, rather than being in multiple places

11 years agoRefer to cache_eap authorize method, not authenticate
Alan T. DeKok [Mon, 11 Feb 2013 22:31:08 +0000 (17:31 -0500)]
Refer to cache_eap authorize method, not authenticate

11 years agoEnable cache_eap module by default
Alan T. DeKok [Mon, 11 Feb 2013 22:29:39 +0000 (17:29 -0500)]
Enable cache_eap module by default

11 years agoDefine value types as an enum
Arran Cudbard-Bell [Tue, 12 Feb 2013 00:05:26 +0000 (19:05 -0500)]
Define value types as an enum

11 years agoFix horrible code and memory leak
Alan T. DeKok [Mon, 11 Feb 2013 15:40:11 +0000 (10:40 -0500)]
Fix horrible code and memory leak

11 years agoRemove maximum length checks in rad_packet_ok()
Alan T. DeKok [Sun, 10 Feb 2013 17:00:10 +0000 (12:00 -0500)]
Remove maximum length checks in rad_packet_ok()

If the network cwlayercode allows for more than 4K of data,
who are we to argue?  This code only checks to see if the packet
is "well formed"

11 years agoRemove examples for modules that have been removed from 3.0
Arran Cudbard-Bell [Sat, 9 Feb 2013 16:06:13 +0000 (11:06 -0500)]
Remove examples for modules that have been removed from 3.0

11 years agoReorder xlat, too
Alan T. DeKok [Fri, 8 Feb 2013 17:16:27 +0000 (12:16 -0500)]
Reorder xlat, too

11 years agoTrack priorities for default action return
Alan T. DeKok [Fri, 8 Feb 2013 17:08:01 +0000 (12:08 -0500)]
Track priorities for default action return

If the default action is return, take it ONLY if we're at priority 0

11 years agoClarify handling of priority and result.
Alan T. DeKok [Fri, 8 Feb 2013 16:50:30 +0000 (11:50 -0500)]
Clarify handling of priority and result.

11 years agoUse rlm_cache to deal with proxy failovers
Arran Cudbard-Bell [Fri, 8 Feb 2013 15:23:17 +0000 (10:23 -0500)]
Use rlm_cache to deal with proxy failovers

11 years agoUpdate share/dictionary.erx
guydavies [Wed, 6 Feb 2013 14:13:54 +0000 (15:13 +0100)]
Update share/dictionary.erx

11 years agoFree modules before mainconfig
Alan T. DeKok [Thu, 7 Feb 2013 18:36:21 +0000 (13:36 -0500)]
Free modules before mainconfig

some modules may have pointer to CONF_SECTIONS buried.
If the order is different, then the CONF_SECTION is free'd out
from under the module

11 years agomap -> vpm, to use the loop variable
Alan T. DeKok [Thu, 7 Feb 2013 18:23:09 +0000 (13:23 -0500)]
map -> vpm, to use the loop variable

11 years agofix typo
Arran Cudbard-Bell [Thu, 7 Feb 2013 17:18:55 +0000 (12:18 -0500)]
fix typo

11 years agoAlways send Message-Authenticator for proxied Access-Requests
Alan T. DeKok [Thu, 7 Feb 2013 03:41:26 +0000 (22:41 -0500)]
Always send Message-Authenticator for proxied Access-Requests

It's 2013.  There's no reason avoid security

11 years agoLimit the number of entries in the cache. Closes #156
Alan T. DeKok [Wed, 6 Feb 2013 18:07:13 +0000 (13:07 -0500)]
Limit the number of entries in the cache.  Closes #156

11 years agoFix typo
Alan T. DeKok [Wed, 6 Feb 2013 17:57:17 +0000 (12:57 -0500)]
Fix typo

11 years agoUpdate sections inherit actions *and* priority
Alan T. DeKok [Wed, 6 Feb 2013 17:49:46 +0000 (12:49 -0500)]
Update sections inherit actions *and* priority

Closs #107

11 years agoStartup check for mismatched OpenSSL library versions
Arran Cudbard-Bell [Wed, 6 Feb 2013 01:19:50 +0000 (20:19 -0500)]
Startup check for mismatched OpenSSL library versions

Print OpenSSL version in debug output

11 years agoUpdate to match last commit
Alan T. DeKok [Mon, 4 Feb 2013 13:50:15 +0000 (08:50 -0500)]
Update to match last commit

11 years agoUpdated EAP types to match IANA
Alan T. DeKok [Mon, 4 Feb 2013 13:45:23 +0000 (08:45 -0500)]
Updated EAP types to match IANA

11 years agoRun post-auth on Access-Challenge if there's a Post-Auth-Type Challenge {} section
Arran Cudbard-Bell [Sun, 3 Feb 2013 01:17:17 +0000 (20:17 -0500)]
Run post-auth on Access-Challenge if there's a Post-Auth-Type Challenge {} section

11 years agoHack to make rlm_perl RTLD_GLOBAL
Alan T. DeKok [Tue, 29 Jan 2013 23:02:05 +0000 (18:02 -0500)]
Hack to make rlm_perl RTLD_GLOBAL

Closes #118

11 years agoUse dict_valnamebyattr to get Post-Proxy-Type value
Arran Cudbard-Bell [Sun, 27 Jan 2013 16:21:25 +0000 (08:21 -0800)]
Use dict_valnamebyattr to get Post-Proxy-Type value

11 years agoMerge pull request #177 from olivierbeytrison/master
Arran Cudbard-Bell [Sun, 27 Jan 2013 16:02:36 +0000 (08:02 -0800)]
Merge pull request #177 from olivierbeytrison/master

fix debian build system

11 years agoCheck for NULL pointers. Fixes #178
Alan T. DeKok [Sun, 27 Jan 2013 14:09:21 +0000 (09:09 -0500)]
Check for NULL pointers.  Fixes #178

11 years agofix debian build system
Olivier Beytrison [Sun, 27 Jan 2013 09:17:29 +0000 (10:17 +0100)]
fix debian build system

11 years agoMerge pull request #175 from FabioPedretti/red-hat_radutmp_logrotate
Arran Cudbard-Bell [Sun, 27 Jan 2013 06:39:56 +0000 (22:39 -0800)]
Merge pull request #175 from FabioPedretti/red-hat_radutmp_logrotate

Don't rotate Red Hat radutmp. Fix #174

11 years ago[fixes #176] Shouldn't return if we fail to create the auth-type because the reject...
Arran Cudbard-Bell [Sun, 27 Jan 2013 00:17:42 +0000 (16:17 -0800)]
[fixes #176] Shouldn't return if we fail to create the auth-type because the reject section doesn't exist

11 years agoDon't rotate Red Hat radutmp. Fix #174
Fabio Pedretti [Sat, 26 Jan 2013 19:16:40 +0000 (20:16 +0100)]
Don't rotate Red Hat radutmp. Fix #174

11 years agoMerge pull request #171 from arr2036/master
Arran Cudbard-Bell [Thu, 24 Jan 2013 16:28:06 +0000 (08:28 -0800)]
Merge pull request #171 from arr2036/master

Man pages say you shouldn't set sticky bits with mkdir

11 years agoSet initial rdebug level from debug_flag
Arran Cudbard-Bell [Thu, 24 Jan 2013 15:32:11 +0000 (07:32 -0800)]
Set initial rdebug level from debug_flag

11 years agoSet sticky bit properly on dir creation
Arran Cudbard-Bell [Wed, 23 Jan 2013 15:39:13 +0000 (15:39 +0000)]
Set sticky bit properly on dir creation

11 years agoAdd docs
Arran Cudbard-Bell [Wed, 23 Jan 2013 15:41:52 +0000 (15:41 +0000)]
Add docs

11 years agoMore forgiving way of making CA depend on index && serial
Alan T. DeKok [Wed, 23 Jan 2013 20:08:34 +0000 (15:08 -0500)]
More forgiving way of making CA depend on index && serial

If they don't exist, we create them.
If they do exist, we don't care if they changed.

11 years agoMake sure these are deleted, too
Alan T. DeKok [Wed, 23 Jan 2013 20:11:31 +0000 (15:11 -0500)]
Make sure these are deleted, too

11 years agoFix some typos
Arran Cudbard-Bell [Tue, 22 Jan 2013 09:21:58 +0000 (09:21 +0000)]
Fix some typos

11 years agoAdd doxygen headers to all module files
Arran Cudbard-Bell [Tue, 22 Jan 2013 00:05:43 +0000 (00:05 +0000)]
Add doxygen headers to all module files

11 years agoRemove rlm_acctlog
Arran Cudbard-Bell [Mon, 21 Jan 2013 22:29:43 +0000 (22:29 +0000)]
Remove rlm_acctlog

11 years agoMake rlm_krb5 threadsafe.
Arran Cudbard-Bell [Wed, 9 Jan 2013 18:52:32 +0000 (18:52 +0000)]
Make rlm_krb5 threadsafe.

11 years agoRemove dialup admin
Arran Cudbard-Bell [Mon, 21 Jan 2013 19:35:07 +0000 (19:35 +0000)]
Remove dialup admin

11 years agoEnable with_ntdomain_hack by default in mschap
Arran Cudbard-Bell [Mon, 21 Jan 2013 19:15:35 +0000 (19:15 +0000)]
Enable with_ntdomain_hack by default in mschap

11 years agoNote edir changes
Alan T. DeKok [Mon, 21 Jan 2013 19:13:30 +0000 (14:13 -0500)]
Note edir changes

11 years agoDon't quote yes/no
Alan T. DeKok [Mon, 21 Jan 2013 19:13:18 +0000 (14:13 -0500)]
Don't quote yes/no

11 years agoselected array should be reinitialized on each
Arran Cudbard-Bell [Mon, 21 Jan 2013 11:29:22 +0000 (11:29 +0000)]
selected array should be reinitialized on each
iteration of i to avoid more than one "selected" operator
in the dropdown.

As posted by Octavio Alvarez.

11 years agoUpdate src/main/version.c
Arran Cudbard-Bell [Mon, 21 Jan 2013 00:40:23 +0000 (00:40 +0000)]
Update src/main/version.c

11 years agoUpdate COPYRIGHT
Arran Cudbard-Bell [Mon, 21 Jan 2013 00:37:35 +0000 (00:37 +0000)]
Update COPYRIGHT

11 years agoReplace credits with a link to the Acknowledgements wiki page
Arran Cudbard-Bell [Sun, 20 Jan 2013 22:25:20 +0000 (22:25 +0000)]
Replace credits with a link to the Acknowledgements wiki page

11 years agoUse of 'op' instead of 'operator', and declare it as an FR_TOKEN.
Arran Cudbard-Bell [Sun, 20 Jan 2013 13:09:57 +0000 (13:09 +0000)]
Use of 'op' instead of 'operator', and declare it as an FR_TOKEN.

Operator conflicts with a C++ keyword.

11 years agoRemove @version, doxygen seems to parse $id ok
Arran Cudbard-Bell [Sun, 20 Jan 2013 12:42:55 +0000 (12:42 +0000)]
Remove @version, doxygen seems to parse $id ok

Add callback docs for connection API

11 years agoDecode VSA TLVs, too
Alan T. DeKok [Sat, 19 Jan 2013 14:19:53 +0000 (09:19 -0500)]
Decode VSA TLVs, too

11 years agoMerge pull request #169 from olivierbeytrison/master
Arran Cudbard-Bell [Thu, 17 Jan 2013 07:15:21 +0000 (23:15 -0800)]
Merge pull request #169 from olivierbeytrison/master

Logic was incorrect in cache_add if control:Cache-Merge was set to no

11 years agowrong logic for cache merge
Olivier Beytrison [Thu, 17 Jan 2013 07:12:38 +0000 (08:12 +0100)]
wrong logic for cache merge

11 years agoDynamically resolve dictionary entrys for control attrs
Arran Cudbard-Bell [Wed, 16 Jan 2013 19:44:17 +0000 (19:44 +0000)]
Dynamically resolve dictionary entrys for control attrs

Add control:Cache-Merge, when set to no makes the cache 'wo'

11 years agoFix minor issues
Arran Cudbard-Bell [Wed, 16 Jan 2013 17:06:11 +0000 (17:06 +0000)]
Fix minor issues

11 years agoUpdate LDAP default config
Arran Cudbard-Bell [Wed, 16 Jan 2013 17:04:01 +0000 (17:04 +0000)]
Update LDAP default config

11 years agoSwitch to using explicit template types
Arran Cudbard-Bell [Wed, 16 Jan 2013 14:30:08 +0000 (14:30 +0000)]
Switch to using explicit template types

Add support for copying lists to rlm_cache

Add more sanity checks to rlm_ldap and rlm_cache

Reformat more code in rlm_ldap

11 years agoFixup documentation for valuepair.c
Arran Cudbard-Bell [Tue, 15 Jan 2013 17:58:48 +0000 (17:58 +0000)]
Fixup documentation for valuepair.c

11 years agoUpdate rlm_cache to use the attrmap API
Arran Cudbard-Bell [Tue, 15 Jan 2013 17:49:04 +0000 (17:49 +0000)]
Update rlm_cache to use the attrmap API

Improve rlm_cache debugging

Make copying attributes into current requests dependent on whether the src/dst lists are not the same

11 years agoMinor formatting
Arran Cudbard-Bell [Tue, 15 Jan 2013 17:47:33 +0000 (17:47 +0000)]
Minor formatting

11 years agoUpdate attrmap functions to be more flexible, and add CS to map function from rlm_ldap
Arran Cudbard-Bell [Tue, 15 Jan 2013 17:47:10 +0000 (17:47 +0000)]
Update attrmap functions to be more flexible, and add CS to map function from rlm_ldap

11 years agoFix typo in cache config item name
Arran Cudbard-Bell [Tue, 15 Jan 2013 17:45:09 +0000 (17:45 +0000)]
Fix typo in cache config item name

11 years agoAdd function for printing lists to request debug log
Arran Cudbard-Bell [Tue, 15 Jan 2013 17:42:57 +0000 (17:42 +0000)]
Add function for printing lists to request debug log

11 years agoMerge pull request #166 from olivierbeytrison/master
Arran Cudbard-Bell [Mon, 14 Jan 2013 10:51:47 +0000 (02:51 -0800)]
Merge pull request #166 from olivierbeytrison/master

rlm_cache : Operator not retrieved in cache_verify

11 years agoAdd missing cf_pair_operator to cache_verify
Olivier Beytrison [Mon, 14 Jan 2013 10:48:31 +0000 (11:48 +0100)]
Add missing cf_pair_operator to cache_verify

11 years agoAdd index files for module and client
Arran Cudbard-Bell [Fri, 11 Jan 2013 23:24:48 +0000 (23:24 +0000)]
Add index files for module and client

11 years agoMove license declarations outside of file descriptions
Arran Cudbard-Bell [Fri, 11 Jan 2013 23:17:53 +0000 (23:17 +0000)]
Move license declarations outside of file descriptions

11 years agoDefine HAVE_JSON when generating docs
Arran Cudbard-Bell [Fri, 11 Jan 2013 20:16:16 +0000 (20:16 +0000)]
Define HAVE_JSON when generating docs

11 years agoFix minor formatting issue
Arran Cudbard-Bell [Fri, 11 Jan 2013 20:01:00 +0000 (20:01 +0000)]
Fix minor formatting issue

11 years agoMore doxygen tweaking
Arran Cudbard-Bell [Fri, 11 Jan 2013 19:10:58 +0000 (19:10 +0000)]
More doxygen tweaking