freeradius.git
10 years agoRemove reference to certs patch
Arran Cudbard-Bell [Tue, 2 Jul 2013 14:47:41 +0000 (10:47 -0400)]
Remove reference to certs patch

10 years agonas_query is deprecated, replaced by client_query
Arran Cudbard-Bell [Tue, 2 Jul 2013 14:32:42 +0000 (15:32 +0100)]
nas_query is deprecated, replaced by client_query

10 years agosafe-charcters is deprecated, replaced by safe_characters
Arran Cudbard-Bell [Tue, 2 Jul 2013 14:17:24 +0000 (15:17 +0100)]
safe-charcters is deprecated, replaced by safe_characters
deletestalesessions is deprecated, replaced by delete_stale_sessions
readclients is deprecated, replaced by read_clients

10 years agoCleanup things in modcall and fix missing closing brace
Arran Cudbard-Bell [Tue, 2 Jul 2013 13:37:48 +0000 (14:37 +0100)]
Cleanup things in modcall and fix missing closing brace

10 years agoSQL functions now use ssize_t so that they can indicate actual error conditions
Arran Cudbard-Bell [Tue, 2 Jul 2013 12:36:17 +0000 (13:36 +0100)]
SQL functions now use ssize_t so that they can indicate actual error conditions

A module expanding to a 0 length string is no longer considered and error condition

If a module xlat returns < 0 update sections will return fail

10 years agoDon't shadow a global symbol
Alan T. DeKok [Tue, 2 Jul 2013 12:35:08 +0000 (08:35 -0400)]
Don't shadow a global symbol

10 years agoReorder arguments to radius_exec_program so they make more sense
Arran Cudbard-Bell [Tue, 2 Jul 2013 11:00:56 +0000 (12:00 +0100)]
Reorder arguments to radius_exec_program so they make more sense

Use a single function to deal with status codes and module failure messages

Have fork return 2 (translates to RLM_MODULE_FAIL)

10 years agoMerge pull request #342 from fajarnugraha/master-suse-20130510
Arran Cudbard-Bell [Tue, 2 Jul 2013 07:31:00 +0000 (00:31 -0700)]
Merge pull request #342 from fajarnugraha/master-suse-20130510

Fix suse package to build and run cleanly for current master branch

10 years agosuse: enable parallel build
Fajar A. Nugraha [Tue, 2 Jul 2013 02:37:56 +0000 (09:37 +0700)]
suse: enable parallel build

10 years agosuse: add --disable-developer
Fajar A. Nugraha [Tue, 2 Jul 2013 02:36:21 +0000 (09:36 +0700)]
suse: add --disable-developer

10 years agosuse: cleanup CFLAGS
Fajar A. Nugraha [Tue, 2 Jul 2013 02:34:33 +0000 (09:34 +0700)]
suse: cleanup CFLAGS

Removed '-fstack-protector -fno-strict-aliasing'. Already
included by default, no need to include it manually.

10 years agosuse: link to wiki page for authors credit
Fajar A. Nugraha [Tue, 2 Jul 2013 02:24:46 +0000 (09:24 +0700)]
suse: link to wiki page for authors credit

10 years agoAdd PW_TYPE_FILE_INPUT (which verifies the file exists) and PW_TYPE_FILE_OUTPUT ...
Arran Cudbard-Bell [Mon, 1 Jul 2013 16:48:08 +0000 (17:48 +0100)]
Add PW_TYPE_FILE_INPUT (which verifies the file exists) and PW_TYPE_FILE_OUTPUT , which is still a file, but not required to exist

10 years agoWhitespace changes rlm_exec
Arran Cudbard-Bell [Mon, 1 Jul 2013 13:44:01 +0000 (14:44 +0100)]
Whitespace changes rlm_exec

10 years agoAdd PW_TYPE_EXISTS
Arran Cudbard-Bell [Mon, 1 Jul 2013 13:41:46 +0000 (14:41 +0100)]
Add PW_TYPE_EXISTS

Which requires the file specified to exist on startup

10 years agoMark more things as filenames
Arran Cudbard-Bell [Mon, 1 Jul 2013 13:41:03 +0000 (14:41 +0100)]
Mark more things as filenames

10 years agoRemove unecessary configure arguments
Arran Cudbard-Bell [Mon, 1 Jul 2013 11:27:58 +0000 (04:27 -0700)]
Remove unecessary configure arguments

10 years agoMay as well make it official
Arran Cudbard-Bell [Mon, 1 Jul 2013 09:47:53 +0000 (10:47 +0100)]
May as well make it official

10 years agosuse: build fixes
Fajar A. Nugraha [Mon, 1 Jul 2013 08:28:32 +0000 (15:28 +0700)]
suse: build fixes

* Merge most changes to suse/freeradius.spec from v2.x.x branch.
* Add suse/freeradius-server-rpmlintrc and
  suse/freeradius-server-tmpfiles.conf from v2.x.x branch.
* Merge changes on suse/freeradius-server-2.1.6-suseinit.patch.
* Add BuildRequires: libtalloc-devel.
* Remove BuildRequires: apache2-devel. Dialup admin was removed.
* Remove BuildRequires: cyrus-sasl-devel, openssl. Already installed
  as requirement for other BuildRequires.
* Remove BuildRequires: gettext-devel, libtool, net-snmp-devel.
  No longer needed.
* Remove unneeded configure flags.
* Make main package more generic by using wildcard in %files. For
  example, it will put resulting oracle libs (if enabled during build)
  on the main package.

10 years agoloc is not options
Arran Cudbard-Bell [Mon, 1 Jul 2013 05:30:05 +0000 (06:30 +0100)]
loc is not options

10 years agoIf anything exists don't create the link...
Arran Cudbard-Bell [Sun, 30 Jun 2013 19:08:06 +0000 (20:08 +0100)]
If anything exists don't create the link...

10 years agoUpdate README.rst
Arran Cudbard-Bell [Sun, 30 Jun 2013 16:49:25 +0000 (12:49 -0400)]
Update README.rst

10 years agoUpdate README.rst
Arran Cudbard-Bell [Sun, 30 Jun 2013 16:47:26 +0000 (12:47 -0400)]
Update README.rst

10 years agoApparently making the symlink targets as order only dependencies isnt good enough
Arran Cudbard-Bell [Sun, 30 Jun 2013 16:36:10 +0000 (17:36 +0100)]
Apparently making the symlink targets as order only dependencies isnt good enough

10 years agoDon't start if the configuration contains deprecated config items
Arran Cudbard-Bell [Sun, 30 Jun 2013 16:19:49 +0000 (17:19 +0100)]
Don't start if the configuration contains deprecated config items

10 years agoDon't try and link if legacy files exist already. Fixes #341
Arran Cudbard-Bell [Sun, 30 Jun 2013 15:55:33 +0000 (16:55 +0100)]
Don't try and link if legacy files exist already. Fixes #341

10 years agoNon-existent attrs expand to "". Closes #308
Alan T. DeKok [Sun, 30 Jun 2013 14:53:36 +0000 (10:53 -0400)]
Non-existent attrs expand to "".  Closes #308

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 agoWhen a socket is closed, just mark the requests as STOP
Alan T. DeKok [Sat, 29 Jun 2013 13:14:31 +0000 (09:14 -0400)]
When a socket is closed, just mark the requests as STOP

Someone else will take care of cleaning them up.  Calling
request_done() appears to cause issues

10 years agoMake auto_limit_acct probabalistic
Alan T. DeKok [Sat, 29 Jun 2013 02:59:29 +0000 (22:59 -0400)]
Make auto_limit_acct probabalistic

10 years agoMinor cleanup to cleanup code
Alan T. DeKok [Sat, 29 Jun 2013 02:37:37 +0000 (22:37 -0400)]
Minor cleanup to cleanup code

10 years agoMake requests NULL talloc context
Alan T. DeKok [Sat, 29 Jun 2013 02:33:42 +0000 (22:33 -0400)]
Make requests NULL talloc context

there are just too many cases where the socket could go away,
and the request is still referenced somewhere else in the code.

10 years agoNote changes to configuration item names
Alan T. DeKok [Sat, 29 Jun 2013 02:08:23 +0000 (22:08 -0400)]
Note changes to configuration item names

10 years agoBe consistent with common config_item names
Arran Cudbard-Bell [Fri, 28 Jun 2013 17:40:43 +0000 (18:40 +0100)]
Be consistent with common config_item names

If a file is being referenced or created the config item 'filename' is used.

If a file is being created, the initial permissions are set by the 'permissions' config item.

If a directory hierarchy needs to be created the permissions are set by 'dir_permissions'

If an external host is referenced in the context of a module the 'server' config item is used.

file, script_file, module, detail, detailfile, attrsfile, perm, dirperm, detailperm,
hostname are all deprecated.

10 years agoRemove debug macro
Alan T. DeKok [Fri, 28 Jun 2013 21:03:57 +0000 (17:03 -0400)]
Remove debug macro

10 years agoMore docs on recent changes
Alan T. DeKok [Fri, 28 Jun 2013 17:21:19 +0000 (13:21 -0400)]
More docs on recent changes

10 years agoAlways set reply timestamp.
Alan T. DeKok [Fri, 28 Jun 2013 17:20:29 +0000 (13:20 -0400)]
Always set reply timestamp.

This allows TCP rejects to be sent.  (oops)

10 years agoSteal the packet so we don't leak memory
Alan T. DeKok [Fri, 28 Jun 2013 13:37:11 +0000 (09:37 -0400)]
Steal the packet so we don't leak memory

10 years agoRemove refcount on mainconfig. It's not used
Alan T. DeKok [Fri, 28 Jun 2013 12:08:59 +0000 (08:08 -0400)]
Remove refcount on mainconfig.  It's not used

10 years agoSimplify request_free() now that we use talloc everywhere
Alan T. DeKok [Fri, 28 Jun 2013 12:07:21 +0000 (08:07 -0400)]
Simplify request_free() now that we use talloc everywhere

10 years agoSteal the CoA packet when we reparent it
Alan T. DeKok [Fri, 28 Jun 2013 12:06:14 +0000 (08:06 -0400)]
Steal the CoA packet when we reparent it

10 years agoMake request_alloc() take a TALLOC_CTX
Alan T. DeKok [Fri, 28 Jun 2013 11:58:25 +0000 (07:58 -0400)]
Make request_alloc() take a TALLOC_CTX

10 years agoIndentation matters
Alan T. DeKok [Fri, 28 Jun 2013 11:53:23 +0000 (07:53 -0400)]
Indentation matters

10 years agoRemove unused function
Alan T. DeKok [Fri, 28 Jun 2013 11:51:15 +0000 (07:51 -0400)]
Remove unused function

10 years agoMove request data to talloc
Alan T. DeKok [Fri, 28 Jun 2013 11:48:15 +0000 (07:48 -0400)]
Move request data to talloc

10 years agoSprinkle PW_TYPE_REQUIRED over module configuration sections
Arran Cudbard-Bell [Fri, 28 Jun 2013 16:31:10 +0000 (17:31 +0100)]
Sprinkle PW_TYPE_REQUIRED over module configuration sections

10 years agoFix -HUP
Arran Cudbard-Bell [Fri, 28 Jun 2013 15:53:37 +0000 (16:53 +0100)]
Fix -HUP

10 years agoMinor formatting in modules.c
Arran Cudbard-Bell [Fri, 28 Jun 2013 15:53:23 +0000 (16:53 +0100)]
Minor formatting in modules.c

10 years agoadded support for IPv6 nas in postgres accounting
GEANT GN3 JRA3 T1 [Fri, 28 Jun 2013 16:43:55 +0000 (17:43 +0100)]
added support for IPv6 nas in postgres accounting

10 years agoCleanup whitespace in config files
Arran Cudbard-Bell [Fri, 28 Jun 2013 13:58:42 +0000 (14:58 +0100)]
Cleanup whitespace in config files

10 years agoMinor fixes to cui policy
Arran Cudbard-Bell [Fri, 28 Jun 2013 13:58:24 +0000 (14:58 +0100)]
Minor fixes to cui policy

10 years agoMerge pull request #337 from armitasp/master
Arran Cudbard-Bell [Fri, 28 Jun 2013 13:36:48 +0000 (06:36 -0700)]
Merge pull request #337 from armitasp/master

updated cui policy

10 years agochange cui policy to remove warning about outer request not being available inner...
GEANT GN3 JRA3 T1 [Fri, 28 Jun 2013 15:15:01 +0000 (16:15 +0100)]
change cui policy to remove warning about outer request not being available inner context

10 years agoCall wait() with WNOHANG to reap any children left over by exec calls
Arran Cudbard-Bell [Fri, 28 Jun 2013 13:15:30 +0000 (14:15 +0100)]
Call wait() with WNOHANG to reap any children left over by exec calls

10 years agoUpdate radiusd.conf man pages with the properties syntax
Arran Cudbard-Bell [Fri, 28 Jun 2013 12:57:57 +0000 (13:57 +0100)]
Update radiusd.conf man pages with the properties syntax

10 years agoDebug messages in rlm_chap
Arran Cudbard-Bell [Fri, 28 Jun 2013 12:39:03 +0000 (13:39 +0100)]
Debug messages in rlm_chap

10 years agoRemove portcmp, it's now broken, and it's functionality is duplicative
Arran Cudbard-Bell [Fri, 28 Jun 2013 11:57:40 +0000 (12:57 +0100)]
Remove portcmp, it's now broken, and it's functionality is duplicative

10 years agoToo many slashes
Arran Cudbard-Bell [Fri, 28 Jun 2013 11:01:39 +0000 (12:01 +0100)]
Too many slashes

10 years agoMinor updates to authorize
Arran Cudbard-Bell [Fri, 28 Jun 2013 10:57:55 +0000 (11:57 +0100)]
Minor updates to authorize

10 years agoUse name instead of value in ldap group debug message, when referring to group CN...
Arran Cudbard-Bell [Fri, 28 Jun 2013 10:24:56 +0000 (11:24 +0100)]
Use name instead of value in ldap group debug message, when referring to group CN value

10 years agoFix ruby/perl/python directory creation
Arran Cudbard-Bell [Thu, 27 Jun 2013 22:26:28 +0000 (23:26 +0100)]
Fix ruby/perl/python directory creation

10 years agomake install output consistent
Arran Cudbard-Bell [Thu, 27 Jun 2013 22:16:49 +0000 (23:16 +0100)]
make install output consistent

10 years agoNot required
Arran Cudbard-Bell [Thu, 27 Jun 2013 22:02:40 +0000 (23:02 +0100)]
Not required

10 years agoDeprecated config items MUST be listed first and MUST default to NULL
Arran Cudbard-Bell [Thu, 27 Jun 2013 21:50:13 +0000 (22:50 +0100)]
Deprecated config items MUST be listed first and MUST default to NULL

10 years agoTypos
Arran Cudbard-Bell [Thu, 27 Jun 2013 21:32:44 +0000 (22:32 +0100)]
Typos

10 years agoFirst pass at fixing up debian packages
Arran Cudbard-Bell [Thu, 27 Jun 2013 19:48:57 +0000 (20:48 +0100)]
First pass at fixing up debian packages

10 years agoMake symbolic links relative
Arran Cudbard-Bell [Thu, 27 Jun 2013 19:34:41 +0000 (20:34 +0100)]
Make symbolic links relative

10 years agoRestructure raddb dir
Arran Cudbard-Bell [Thu, 27 Jun 2013 19:12:53 +0000 (20:12 +0100)]
Restructure raddb dir

Move all module specific files into mods-config

Create symbolic links for critical files to legacy locations

Update man pages

Fix certificate generation (so it doesn't run every time)

10 years agoConvert missed free() in cf_item_parse
Arran Cudbard-Bell [Thu, 27 Jun 2013 17:52:26 +0000 (18:52 +0100)]
Convert missed free() in cf_item_parse

10 years agoRemove smurfs from rlm_detail config items
Arran Cudbard-Bell [Thu, 27 Jun 2013 17:27:12 +0000 (18:27 +0100)]
Remove smurfs from rlm_detail config items

10 years agoAdd 'attrsfile' config item back in, but mark it as deprecated
Arran Cudbard-Bell [Thu, 27 Jun 2013 16:56:06 +0000 (17:56 +0100)]
Add 'attrsfile' config item back in, but mark it as deprecated

10 years agoNo point in setting default filter file for rlm_attr_filter
Arran Cudbard-Bell [Thu, 27 Jun 2013 16:50:47 +0000 (17:50 +0100)]
No point in setting default filter file for rlm_attr_filter

10 years agoAdd 'file' config item, admins should eventually replace all
Arran Cudbard-Bell [Thu, 27 Jun 2013 16:44:05 +0000 (17:44 +0100)]
Add 'file' config item, admins should eventually replace all
per-section user files items, with per-section instances of the
files module.

Files is one of the most commonly used modules, so we need
to be very careful about changing things and angering the
users.

This change is forward looking to when we have more arbitrary
section names and the server is juggling multiple different
protocols.

10 years agoDon't assume that properties are the last things in config item values
Arran Cudbard-Bell [Thu, 27 Jun 2013 16:23:29 +0000 (17:23 +0100)]
Don't assume that properties are the last things in config item values

10 years agoAllow parent section to be referenced anonymously ${..}.
Arran Cudbard-Bell [Thu, 27 Jun 2013 15:51:54 +0000 (16:51 +0100)]
Allow parent section to be referenced anonymously ${..}.

Add support for ${.:instance} (does the same as old ${.:name})
and ${.:name} which returns name1.}

10 years agoHacks to make mods-config/.../ work better
Alan T. DeKok [Thu, 27 Jun 2013 14:32:10 +0000 (10:32 -0400)]
Hacks to make mods-config/.../ work better

10 years agoDocument new structure
Alan T. DeKok [Thu, 27 Jun 2013 13:53:33 +0000 (09:53 -0400)]
Document new structure

Before changes.  Woot!

10 years agoFix docs make file
Arran Cudbard-Bell [Thu, 27 Jun 2013 13:28:23 +0000 (14:28 +0100)]
Fix docs make file

10 years agoBig cleanup of doc
Arran Cudbard-Bell [Thu, 27 Jun 2013 11:57:08 +0000 (12:57 +0100)]
Big cleanup of doc

10 years agoMerge pull request #331 from armitasp/master
Arran Cudbard-Bell [Wed, 26 Jun 2013 20:05:57 +0000 (13:05 -0700)]
Merge pull request #331 from armitasp/master

moved cui in post-auth section

10 years agomoved cui to before logging in post-auth to ensure cui value is generated before...
GEANT GN3 JRA3 T1 [Wed, 26 Jun 2013 21:44:00 +0000 (22:44 +0100)]
moved cui to before logging in post-auth to ensure cui value is generated before logging occurs

10 years agoIncrease width of counters, use bool where appropriate
Arran Cudbard-Bell [Wed, 26 Jun 2013 15:19:26 +0000 (16:19 +0100)]
Increase width of counters, use bool where appropriate

10 years agoUse nas_type consistently
Arran Cudbard-Bell [Wed, 26 Jun 2013 12:53:31 +0000 (13:53 +0100)]
Use nas_type consistently

10 years agoSet current if it's NULL on pairinsert
Arran Cudbard-Bell [Wed, 26 Jun 2013 10:51:37 +0000 (11:51 +0100)]
Set current if it's NULL on pairinsert

10 years agoNo full stop
Arran Cudbard-Bell [Tue, 25 Jun 2013 18:57:15 +0000 (19:57 +0100)]
No full stop

10 years agoFix typo that caused segv when reading in 64bit integers
Arran Cudbard-Bell [Tue, 25 Jun 2013 17:41:38 +0000 (18:41 +0100)]
Fix typo that caused segv when reading in 64bit integers

10 years agoUse the exact names of config-items to avoid pain later
Arran Cudbard-Bell [Tue, 25 Jun 2013 16:57:33 +0000 (17:57 +0100)]
Use the exact names of config-items to avoid pain later

10 years agoNeaten MSSQL queries file
Arran Cudbard-Bell [Tue, 25 Jun 2013 16:47:22 +0000 (17:47 +0100)]
Neaten MSSQL queries file

10 years agoNot required
Arran Cudbard-Bell [Tue, 25 Jun 2013 16:42:43 +0000 (17:42 +0100)]
Not required

10 years agoFormatting
Arran Cudbard-Bell [Tue, 25 Jun 2013 16:40:39 +0000 (17:40 +0100)]
Formatting

10 years agoFix potential segv in rlm_ldap if profile_filter was not set
Arran Cudbard-Bell [Tue, 25 Jun 2013 16:40:18 +0000 (17:40 +0100)]
Fix potential segv in rlm_ldap if profile_filter was not set

10 years agoRemove magic inheritance magic for base_dn
Arran Cudbard-Bell [Tue, 25 Jun 2013 16:21:55 +0000 (17:21 +0100)]
Remove magic inheritance magic for base_dn

Fix typo in dynamic attributes

10 years agoBootstrap certs
Arran Cudbard-Bell [Tue, 25 Jun 2013 14:08:25 +0000 (15:08 +0100)]
Bootstrap certs

10 years agoApply redhat certs patch
Arran Cudbard-Bell [Tue, 25 Jun 2013 12:45:51 +0000 (13:45 +0100)]
Apply redhat certs patch

10 years agoRemove boostrap code from EAP modules, doesn't work well for large certs anyway
Arran Cudbard-Bell [Tue, 25 Jun 2013 12:45:23 +0000 (13:45 +0100)]
Remove boostrap code from EAP modules, doesn't work well for large certs anyway

10 years agoRemove build directory on distclean
Arran Cudbard-Bell [Tue, 25 Jun 2013 12:26:33 +0000 (13:26 +0100)]
Remove build directory on distclean

10 years agoMove README.snmp
Arran Cudbard-Bell [Tue, 25 Jun 2013 12:20:49 +0000 (13:20 +0100)]
Move README.snmp

10 years agoRemove legacy 'todo' folder
Arran Cudbard-Bell [Tue, 25 Jun 2013 12:19:01 +0000 (13:19 +0100)]
Remove legacy 'todo' folder