Jorge Pereira [Wed, 22 Jul 2015 21:26:01 +0000 (18:26 -0300)]
Fix missing %{Packet-Src-IPv6-Address} in the policy insert_acct_class
Arran Cudbard-Bell [Wed, 22 Jul 2015 21:25:49 +0000 (17:25 -0400)]
Update ChangeLog
Arran Cudbard-Bell [Wed, 22 Jul 2015 21:22:00 +0000 (17:22 -0400)]
Merge pull request #1160 from jpereira/dict/alcatel7750-1
Add 'Alc-Nas-Filter-Rule-Shared' for Alcatel7750
Arran Cudbard-Bell [Wed, 22 Jul 2015 20:38:57 +0000 (16:38 -0400)]
Don't check pointer in FR_TIMEVAL_TO_MS
Herwin Weststrate [Tue, 21 Jul 2015 12:32:46 +0000 (14:32 +0200)]
Add NULL check in originate-coa
This prevents segfaults that may occur when the COA list could not be created, either by a lack of memory, or a request that is not an Access-Request/Accounting-Request
Jorge Pereira [Wed, 22 Jul 2015 19:09:06 +0000 (16:09 -0300)]
Add 'Alc-Nas-Filter-Rule-Shared' for Alcatel7750
Arran Cudbard-Bell [Wed, 22 Jul 2015 12:02:00 +0000 (08:02 -0400)]
Merge pull request #1159 from qnet-herwin/servicetype_authorizeonly_symbolic
Use define for Service-Type value check
Herwin Weststrate [Wed, 22 Jul 2015 09:57:16 +0000 (11:57 +0200)]
Use define for Service-Type value check
The value 17 (Authorize-Only) has been added in RFC3576, the other values were already present in RFC 2865, most likely that's the reason the symbolic name was missing.
Arran Cudbard-Bell [Tue, 21 Jul 2015 15:24:57 +0000 (11:24 -0400)]
Update ChangeLog
Arran Cudbard-Bell [Tue, 21 Jul 2015 15:02:15 +0000 (11:02 -0400)]
Avoid modifying dst until we're sure unescaping has succeeded in value_data_from_str. Closes #1157
Arran Cudbard-Bell [Mon, 20 Jul 2015 15:48:13 +0000 (11:48 -0400)]
Always set error messages in ip_hton
Arran Cudbard-Bell [Mon, 20 Jul 2015 18:37:49 +0000 (14:37 -0400)]
Update ChangeLog
Arran Cudbard-Bell [Mon, 20 Jul 2015 18:23:35 +0000 (14:23 -0400)]
Move radclient to use fr_pton_port for its host and port parsing
fr_pton_port seems to work, whereas what was there before didn't...
Arran Cudbard-Bell [Mon, 20 Jul 2015 18:23:04 +0000 (14:23 -0400)]
Fix v6 address printing in from/to messages
Arran Cudbard-Bell [Mon, 20 Jul 2015 18:03:44 +0000 (14:03 -0400)]
Allow an af to be specified for fr_pton
This controls which record we use if the address doesn't look like a v4 or v6 address.
Additionally inet_pton doesn't like addresses being wrapped in [], so strip them off in fr_pton_port.
Arran Cudbard-Bell [Mon, 20 Jul 2015 15:48:43 +0000 (11:48 -0400)]
Add fr_pton_port which parses a v4/v6 ipaddress or host and port
Arran Cudbard-Bell [Mon, 20 Jul 2015 15:39:05 +0000 (11:39 -0400)]
Use temporary value buffer in fr_pton4/6
Arran Cudbard-Bell [Mon, 20 Jul 2015 14:58:50 +0000 (10:58 -0400)]
Rename json_fr_pair_make back to json_pair_make
Arran Cudbard-Bell [Mon, 20 Jul 2015 14:52:56 +0000 (10:52 -0400)]
Need libsasl to build SASL capable rlm_ldap
Arran Cudbard-Bell [Mon, 20 Jul 2015 14:47:49 +0000 (10:47 -0400)]
Check for sasl/sasl.h too
Arran Cudbard-Bell [Sun, 19 Jul 2015 17:14:56 +0000 (13:14 -0400)]
Formatting
Arran Cudbard-Bell [Sun, 19 Jul 2015 17:14:49 +0000 (13:14 -0400)]
Only check if config items are deprecated if they exist
Arran Cudbard-Bell [Sun, 19 Jul 2015 05:56:25 +0000 (01:56 -0400)]
Use inst->pool not inst->conn_pool
Arran Cudbard-Bell [Sun, 19 Jul 2015 05:51:05 +0000 (01:51 -0400)]
Normalise conn field names in iodbc
Arran Cudbard-Bell [Sun, 19 Jul 2015 05:47:40 +0000 (01:47 -0400)]
Additional macros to simplify timeval to ms conversions, and marking things as deprecated whilst removing the fields from the struct
Alan T. DeKok [Fri, 17 Jul 2015 01:07:14 +0000 (21:07 -0400)]
Globbing across directories is not supported. Fixes #1149.
The rest of the "filename_work" code assumes that the detail.work
file is in the same directory as the files being globbed. In order
to support globbing for directories, the code will have to be updated
to *not* open detail.work, but instead to do a *second* file
globbing() on .../*/detail.work, in order to get the real filename
of the detail.work file.
In the short term it's easier to just enforce the assumptions
in the rest of the code.
Arran Cudbard-Bell [Thu, 16 Jul 2015 23:43:28 +0000 (19:43 -0400)]
s/fr_pair_make_any/fr_pair_make_unknown
Arran Cudbard-Bell [Thu, 16 Jul 2015 23:38:57 +0000 (19:38 -0400)]
Use modern list names
Alan T. DeKok [Thu, 16 Jul 2015 20:54:32 +0000 (16:54 -0400)]
If proxying to public IPs, skip link local sockets. Fixes #1148
Nicolas C [Thu, 16 Jul 2015 16:02:59 +0000 (18:02 +0200)]
fixed message "hex string is not even"
Length of Hex String is not even, got 7 bytes
Is better than:
Length of Hex String is not even, got
18446744073709551615 bytes
Alan T. DeKok [Thu, 16 Jul 2015 17:17:42 +0000 (13:17 -0400)]
More byte fixes
Alan T. DeKok [Thu, 16 Jul 2015 12:11:22 +0000 (08:11 -0400)]
More short fixes
Nicolas C [Thu, 16 Jul 2015 09:50:50 +0000 (11:50 +0200)]
dhcp secs is a short
Properly encode DHCP field "secs" (using htons instead of htonl).
Also I think in this case using "vp_short" is more correct than
"vp_integer" for a short (even though it still works with "vp_integer").
Arran Cudbard-Bell [Wed, 15 Jul 2015 16:57:58 +0000 (12:57 -0400)]
Merge pull request #1133 from jpereira/devel/add-sql_fields-freetds
Add sql_fields function for freetds refs #993
Alan T. DeKok [Wed, 15 Jul 2015 15:32:18 +0000 (11:32 -0400)]
note recent changes
Alan T. DeKok [Wed, 15 Jul 2015 13:41:11 +0000 (09:41 -0400)]
Clarify message
Arran Cudbard-Bell [Wed, 15 Jul 2015 03:36:16 +0000 (23:36 -0400)]
Alternate where we write errors in fr_strerror_printf to allow error messages to be appended to
Arran Cudbard-Bell [Wed, 15 Jul 2015 02:53:17 +0000 (22:53 -0400)]
Formatting in getaddrinfo.c
Arran Cudbard-Bell [Wed, 15 Jul 2015 01:57:53 +0000 (21:57 -0400)]
s/fr_isbase64/fr_is_base64
Arran Cudbard-Bell [Tue, 14 Jul 2015 20:38:19 +0000 (16:38 -0400)]
Rename functions in pair.c to be consistent with the established naming scheme
s/pairalloc/fr_pair_afrom_da/;
s/paircreate/fr_pair_afrom_num/;
s/pair2unknown/fr_pair_to_unknown/;
s/pairfree/fr_pair_list_free/;
s/pairfind/fr_pair_find_by_num/;
s/pair_find_by_da/fr_pair_find_by_da/;
s/pairdelete/fr_pair_delete_by_num/;
s/pairadd/fr_pair_add/;
s/pairreplace/fr_pair_replace/;
s/paircmp/fr_pair_cmp/;
s/pairlistcmp/fr_pair_list_cmp/;
s/attrtagcmp/fr_pair_cmp_by_da_tag/;
s/pairsort/fr_pair_list_sort/;
s/pairvalidate_debug/fr_pair_validate_debug/;
s/pairvalidate/fr_pair_validate/;
s/pairvalidate_relaxed/fr_pair_validate_relaxed/;
s/paircopyvp/fr_pair_copy/;
s/paircopy/fr_pair_list_copy/;
s/paircopy_by_num/fr_pair_list_copy_by_num/;
s/pairsteam/fr_pair_steal/;
s/pairmemcpy/fr_pair_value_memcpy/;
s/pairmemsteal/fr_pair_value_memsteal/;
s/pairstrcpy/fr_pair_value_strcpy/;
s/pairbstrncpy/fr_pair_value_bstrncpy/;
s/pairsprintf/fr_pair_value_sprintf/;
s/pairmove/fr_pair_list_move/;
s/pairfilter/fr_pair_list_move_by_num/;
s/pairmakeip/fr_pair_afrom_ip_str/;
s/pairparsevalue/fr_pair_value_from_str/;
s/pairmake/fr_pair_make/;
s/pairmark_xlat/fr_pair_mark_xlat/;
s/pairread/fr_pair_raw_from_str/;
s/userparse/fr_pair_list_afrom_str/;
s/readvp2/fr_pair_list_afrom_file/;
s/fr_pair_verify_vp/fr_pair_verify/;
s/fr_pair_verify_list/fr_pair_list_verify/;
s/radius_pairecreate/radius_pair_create/;
s/pairmake_packet/pair_make_packet/;
s/pairmake_reply/pair_make_reply/;
s/pairmake_config/pair_make_config/;
# Conflicts:
# src/lib/pair.c
Arran Cudbard-Bell [Tue, 14 Jul 2015 17:07:49 +0000 (13:07 -0400)]
Remove module_safe grouping
Jorge Pereira [Mon, 13 Jul 2015 19:54:10 +0000 (16:54 -0300)]
Updating man rlm_attr_filter
Arran Cudbard-Bell [Tue, 14 Jul 2015 03:36:34 +0000 (23:36 -0400)]
Add the module creation guide to the CONTRIBUTING file
Arran Cudbard-Bell [Tue, 14 Jul 2015 03:06:13 +0000 (23:06 -0400)]
Mark v1.x.x and 2.x.x as EOL in doxygen docs
Alan T. DeKok [Tue, 14 Jul 2015 01:10:27 +0000 (21:10 -0400)]
Fix files module so there's no collisions.
Move to an rbtree, so each entry is unique.
More talloc work.
Alan T. DeKok [Tue, 14 Jul 2015 00:53:56 +0000 (20:53 -0400)]
Set lineno correctly
Alan T. DeKok [Tue, 14 Jul 2015 00:51:39 +0000 (20:51 -0400)]
We can use "lineno" instead of "order"
Alan T. DeKok [Tue, 14 Jul 2015 00:47:17 +0000 (20:47 -0400)]
Remove unused field
Alan T. DeKok [Tue, 14 Jul 2015 00:09:54 +0000 (20:09 -0400)]
Remove default cistron compatibility.
Alan T. DeKok [Mon, 13 Jul 2015 13:10:27 +0000 (09:10 -0400)]
note recent changes
Arran Cudbard-Bell [Mon, 13 Jul 2015 18:18:25 +0000 (14:18 -0400)]
Add PW_TYPE to data type mapping table
Arran Cudbard-Bell [Mon, 13 Jul 2015 17:36:02 +0000 (13:36 -0400)]
Add doxygen headers for some important enums
Arran Cudbard-Bell [Mon, 13 Jul 2015 14:56:17 +0000 (10:56 -0400)]
Mention the Git tutorial
Arran Cudbard-Bell [Mon, 13 Jul 2015 14:47:15 +0000 (10:47 -0400)]
Whitespace
Arran Cudbard-Bell [Mon, 13 Jul 2015 14:46:30 +0000 (10:46 -0400)]
Mention putting log output in backticks
Arran Cudbard-Bell [Mon, 13 Jul 2015 14:42:58 +0000 (10:42 -0400)]
Refine the contributing document a little
Arran Cudbard-Bell [Mon, 13 Jul 2015 01:34:18 +0000 (21:34 -0400)]
Add contributing document
Arran Cudbard-Bell [Sun, 12 Jul 2015 22:04:57 +0000 (18:04 -0400)]
Add notes to README.rst about commercial support and abusing the GitHub issue tracker
Alan T. DeKok [Fri, 10 Jul 2015 21:26:02 +0000 (17:26 -0400)]
More optimizations
After converting "%{Attr}" to &Attr, do more parsing of the RHS,
and check if teh RHS is an empty string. If so, the string expansion
and comparison to empty string is just an existence check for the
attribute.
Alan T. DeKok [Fri, 10 Jul 2015 21:06:11 +0000 (17:06 -0400)]
Standardize warning messages
Alan T. DeKok [Fri, 10 Jul 2015 15:21:47 +0000 (11:21 -0400)]
check_config is now in conffile.c
Alan T. DeKok [Fri, 10 Jul 2015 13:02:12 +0000 (09:02 -0400)]
Move check_config to conffile.c
config things should arguably be here...
Alan T. DeKok [Fri, 10 Jul 2015 12:54:09 +0000 (08:54 -0400)]
Don't complain on deprecated. Closes #1131
Jorge Pereira [Fri, 8 May 2015 00:35:32 +0000 (21:35 -0300)]
Add sql_fields function for freetds refs #993
Alan T. DeKok [Thu, 9 Jul 2015 17:57:15 +0000 (13:57 -0400)]
Don't convert RHS to data if RHS is empty
FIXME: The test should really be converted to an existence check
Alan T. DeKok [Thu, 9 Jul 2015 17:56:54 +0000 (13:56 -0400)]
Don't convert LIST to ATTRIBUTE
Alan T. DeKok [Thu, 9 Jul 2015 17:27:04 +0000 (13:27 -0400)]
Do more optimizations
If LHS XLAT was converted to an attribute reference, AND the
RHS is a literal, then convert the RHS to type-specific data, too
Alan T. DeKok [Thu, 9 Jul 2015 17:26:13 +0000 (13:26 -0400)]
Always recurse in pass2
even if the node is marked as PASS2_FIXUP_NONE. So that
xlat's can be compiled to attribute references
Alan T. DeKok [Thu, 9 Jul 2015 17:25:27 +0000 (13:25 -0400)]
Explictly handle more condition types
And recurse on children
Alan T. DeKok [Thu, 9 Jul 2015 17:24:22 +0000 (13:24 -0400)]
label should always be defined
Alan T. DeKok [Thu, 9 Jul 2015 17:22:06 +0000 (13:22 -0400)]
Don't include the '}' in the xlat name
Alan T. DeKok [Thu, 9 Jul 2015 17:21:49 +0000 (13:21 -0400)]
Manual clean up on error.
Talloc will do this for us, but it's good practice
Alan T. DeKok [Thu, 9 Jul 2015 16:40:41 +0000 (12:40 -0400)]
Bump for 3.0.10
Arran Cudbard-Bell [Thu, 9 Jul 2015 03:48:19 +0000 (23:48 -0400)]
Always free clients list if we allocated it Closes #1130
Alan T. DeKok [Wed, 8 Jul 2015 17:58:22 +0000 (13:58 -0400)]
Bump for 3.0.10
Arran Cudbard-Bell [Wed, 8 Jul 2015 15:44:37 +0000 (11:44 -0400)]
map_to_request handles indentation already
Arran Cudbard-Bell [Wed, 8 Jul 2015 15:42:31 +0000 (11:42 -0400)]
Cached memberships go in control
Alan T. DeKok [Wed, 8 Jul 2015 15:41:12 +0000 (11:41 -0400)]
note recent changes
Alan T. DeKok [Wed, 8 Jul 2015 15:31:48 +0000 (11:31 -0400)]
Added file. Part of #1126
Arran Cudbard-Bell [Wed, 8 Jul 2015 15:24:48 +0000 (11:24 -0400)]
Use standard VP debugging format when adding cached group memberships
Arran Cudbard-Bell [Wed, 8 Jul 2015 15:24:29 +0000 (11:24 -0400)]
Don't double indent debug output
Arran Cudbard-Bell [Wed, 8 Jul 2015 14:53:20 +0000 (10:53 -0400)]
Split out group tests
Alan T. DeKok [Wed, 8 Jul 2015 14:24:11 +0000 (10:24 -0400)]
Be more careful about talloc parent. Fixes #1129
Arran Cudbard-Bell [Wed, 8 Jul 2015 04:10:02 +0000 (00:10 -0400)]
bind_dn references need to be double quoted else they're not expanded
Arran Cudbard-Bell [Tue, 7 Jul 2015 21:44:14 +0000 (17:44 -0400)]
Fix leak that wasn't really a leak Closes #1122
The server would immediately exit anyway, but for code cleanliness we should probably fix it. As reported by jpereira.
Alan DeKok [Tue, 7 Jul 2015 20:36:20 +0000 (16:36 -0400)]
Merge pull request #1124 from jpereira/devel/radattr-usage
Added the option -h for 'radattr' tool. refs #1123
Alan DeKok [Tue, 7 Jul 2015 20:36:16 +0000 (16:36 -0400)]
Merge pull request #1117 from jpereira/doc/radsniff1
Fix radsniff man
Alan T. DeKok [Tue, 7 Jul 2015 20:16:51 +0000 (16:16 -0400)]
Define HAVE_DLADDR
Jorge Pereira [Mon, 6 Jul 2015 20:27:22 +0000 (17:27 -0300)]
Added the option -h for 'radattr' tool. refs #1123
Arran Cudbard-Bell [Mon, 6 Jul 2015 13:25:47 +0000 (09:25 -0400)]
Merge pull request #1121 from jpereira/bug/wrong-message1
Fix wrong message for -dl check
Jorge Pereira [Sun, 5 Jul 2015 15:39:50 +0000 (12:39 -0300)]
Fix wrong message for -dl check
Jorge Pereira [Fri, 3 Jul 2015 16:37:37 +0000 (13:37 -0300)]
Update radsniff man
Alan T. DeKok [Fri, 3 Jul 2015 14:26:43 +0000 (10:26 -0400)]
dladdr() isn't posix. Fixes #1113
Alan T. DeKok [Fri, 3 Jul 2015 13:17:33 +0000 (09:17 -0400)]
Show where we load the modules from. Fixes #1113
Hua Zhong [Wed, 1 Jul 2015 08:13:34 +0000 (01:13 -0700)]
Add dictionary for Arista Networks
Arran Cudbard-Bell [Wed, 1 Jul 2015 18:33:27 +0000 (14:33 -0400)]
Rename to .txt to .mib
Arran Cudbard-Bell [Wed, 1 Jul 2015 15:32:47 +0000 (11:32 -0400)]
Formatting
Arran Cudbard-Bell [Wed, 1 Jul 2015 15:33:04 +0000 (11:33 -0400)]
Backwards compatibility?!
Alan T. DeKok [Wed, 1 Jul 2015 12:43:20 +0000 (08:43 -0400)]
Include proto*.so
Arran Cudbard-Bell [Wed, 1 Jul 2015 05:37:50 +0000 (01:37 -0400)]
ldap_parse_urls sets the default port, so check the port string to determine if we need the overwrite the port in the url structure