]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
12 years agoConvert pairmake() to talloc
Alan T. DeKok [Tue, 19 Mar 2013 00:15:39 +0000 (20:15 -0400)] 
Convert pairmake() to talloc

And add a VALUE_PAIR**vps to it.  If vps != NULL, the newly
created VP is added to the list.

This API change cleans up the code rather substantially

12 years agoRemove extraneous tab
Alan T. DeKok [Mon, 18 Mar 2013 23:58:51 +0000 (19:58 -0400)] 
Remove extraneous tab

12 years agoRemove authenticate section.
Alan T. DeKok [Mon, 18 Mar 2013 22:36:57 +0000 (18:36 -0400)] 
Remove authenticate section.

You should be using the PAP module, which does all of this.

12 years agoReorganise rlm_ldap
Arran Cudbard-Bell [Tue, 19 Mar 2013 19:33:21 +0000 (15:33 -0400)] 
Reorganise rlm_ldap

12 years agoUse RDEBUGE() instead of module_failure_msg
Alan T. DeKok [Mon, 18 Mar 2013 19:18:55 +0000 (15:18 -0400)] 
Use RDEBUGE() instead of module_failure_msg

Or instead of hand-coded alternatives

12 years agoUse correct argument
Alan T. DeKok [Mon, 18 Mar 2013 19:17:44 +0000 (15:17 -0400)] 
Use correct argument

12 years agoUse correct argument
Alan T. DeKok [Mon, 18 Mar 2013 19:17:08 +0000 (15:17 -0400)] 
Use correct argument

12 years agoMerge branch 'master' of github.com:FreeRADIUS/freeradius-server
Alan T. DeKok [Mon, 18 Mar 2013 18:51:15 +0000 (14:51 -0400)] 
Merge branch 'master' of github.com:FreeRADIUS/freeradius-server

12 years agoMove TTLS/PEAP session structs to talloc
Alan T. DeKok [Mon, 18 Mar 2013 18:48:36 +0000 (14:48 -0400)] 
Move TTLS/PEAP session structs to talloc

12 years agoMove TTLS/PEAP session structs to talloc
Alan T. DeKok [Mon, 18 Mar 2013 18:48:36 +0000 (14:48 -0400)] 
Move TTLS/PEAP session structs to talloc

12 years agoExpose add_reply()
Alan T. DeKok [Mon, 18 Mar 2013 18:39:25 +0000 (14:39 -0400)] 
Expose add_reply()

Which is used in many, many, places

12 years agoCleanup ldap encoding function
Arran Cudbard-Bell [Mon, 18 Mar 2013 00:39:44 +0000 (20:39 -0400)] 
Cleanup ldap encoding function

12 years agoUse correct arguments to dict_addattr()
Alan T. DeKok [Sun, 17 Mar 2013 15:29:48 +0000 (11:29 -0400)] 
Use correct arguments to dict_addattr()

and update the messages to be more consistent

12 years agoObjects depend on the Makefile
Alan T. DeKok [Sun, 17 Mar 2013 15:23:52 +0000 (11:23 -0400)] 
Objects depend on the Makefile

So that if the Makefile changes (c flags, libraries, etc.)
we re-build the target.

This is a hack to work around the fact that we can't detect
when the CFLAGS, etc. change

12 years agoDocument conditional modules.
Alan T. DeKok [Sun, 17 Mar 2013 15:16:05 +0000 (11:16 -0400)] 
Document conditional modules.

Update default configuration to allow for conditional modules.
Update message about conditional modules to be clearer,
and to point to the documentation.

12 years agoGeneralize the "ignore module" code
Alan T. DeKok [Sun, 17 Mar 2013 14:55:55 +0000 (10:55 -0400)] 
Generalize the "ignore module" code

if -foo is in a subsection, ignore it, too

12 years agoDon't enable cuisql by default.
Alan T. DeKok [Sun, 17 Mar 2013 14:43:34 +0000 (10:43 -0400)] 
Don't enable cuisql by default.

12 years agoClean up debug output
Alan T. DeKok [Sun, 17 Mar 2013 04:44:21 +0000 (00:44 -0400)] 
Clean up debug output

12 years agoLoad all modules in the "mods-enabled" directory.
Alan T. DeKok [Sun, 17 Mar 2013 04:08:13 +0000 (00:08 -0400)] 
Load all modules in the "mods-enabled" directory.

So that we don't need the "instantiate" section most of the time.

12 years agoDon't enable inner-eap by default.
Alan T. DeKok [Sun, 17 Mar 2013 03:57:14 +0000 (23:57 -0400)] 
Don't enable inner-eap by default.

12 years agoUse correct reference to mods-available
Alan T. DeKok [Sun, 17 Mar 2013 03:56:54 +0000 (23:56 -0400)] 
Use correct reference to mods-available

12 years agoUse correct spacing when printing out config file parsing
Alan T. DeKok [Sun, 17 Mar 2013 03:50:01 +0000 (23:50 -0400)] 
Use correct spacing when printing out config file parsing

use spaces, not tabs
use %.*s for CONF_PAIRS, too.  Otherwise their indentation
doesn't match that of the parent CONF_SECTION

12 years agoDon't print out message if connection was successfully opened
Alan T. DeKok [Sun, 17 Mar 2013 03:49:39 +0000 (23:49 -0400)] 
Don't print out message if connection was successfully opened
It should be pretty much assumed

12 years agoMove "second_files" to its own file
Alan T. DeKok [Sun, 17 Mar 2013 03:38:28 +0000 (23:38 -0400)] 
Move "second_files" to its own file

12 years ago"counter" shouldn't be enabled by default
Alan T. DeKok [Sun, 17 Mar 2013 03:37:53 +0000 (23:37 -0400)] 
"counter" shouldn't be enabled by default

It depends on gdbm, which may not exist

12 years agoMove EAP handler, EAP_DS, eap_packet_t to use talloc
Alan T. DeKok [Sun, 17 Mar 2013 03:09:25 +0000 (23:09 -0400)] 
Move EAP handler, EAP_DS, eap_packet_t to use talloc

12 years agoUse context for talloc
Alan T. DeKok [Sun, 17 Mar 2013 02:35:46 +0000 (22:35 -0400)] 
Use context for talloc

12 years agotalloc from instance context
Alan T. DeKok [Sun, 17 Mar 2013 02:31:38 +0000 (22:31 -0400)] 
talloc from instance context

12 years agotalloc entry from head, not from handle
Alan T. DeKok [Sun, 17 Mar 2013 02:20:40 +0000 (22:20 -0400)] 
talloc entry from head, not from handle

12 years agoConvert group stuff to talloc.
Alan T. DeKok [Sun, 17 Mar 2013 02:12:39 +0000 (22:12 -0400)] 
Convert group stuff to talloc.

I hate smurf programming.

struct smurf_struct {
char *smurf_name; // Careful! It MIGHT be Gargamel's name!
...
} smurf_t;
...

smurf_t *smurf, *smurf_tmp;

smurf->smurf_name = ...

Yes, I know it's a f*cking smurf.  What the hell does it DO?

12 years agoUse talloc for handles
Alan T. DeKok [Sat, 16 Mar 2013 18:03:25 +0000 (14:03 -0400)] 
Use talloc for handles

12 years agoUse talloc for handles
Alan T. DeKok [Sat, 16 Mar 2013 18:03:12 +0000 (14:03 -0400)] 
Use talloc for handles

12 years agoUse talloc for handles
Alan T. DeKok [Sat, 16 Mar 2013 18:02:56 +0000 (14:02 -0400)] 
Use talloc for handles

12 years agoUse instance context for talloc
Alan T. DeKok [Sat, 16 Mar 2013 18:02:41 +0000 (14:02 -0400)] 
Use instance context for talloc

12 years agoUse the connection pool.
Alan T. DeKok [Sat, 16 Mar 2013 17:45:00 +0000 (13:45 -0400)] 
Use the connection pool.

The code is much simpler, cleaner, and easier to understand.

12 years agoReplace spaces with tabs
Arran Cudbard-Bell [Sat, 16 Mar 2013 15:05:21 +0000 (11:05 -0400)] 
Replace spaces with tabs

12 years agoperl -p -i -e 's/\ +$//' $(find . -name "*.[ch]" -print)
Alan T. DeKok [Sat, 16 Mar 2013 14:43:55 +0000 (10:43 -0400)] 
perl -p -i -e 's/\ +$//' $(find . -name "*.[ch]" -print)

Trailing whitespace is annoying

12 years agoRemove all dependencies on libltdl.
Alan T. DeKok [Sat, 16 Mar 2013 14:36:48 +0000 (10:36 -0400)] 
Remove all dependencies on libltdl.

Remove macros.  Wrappers.  ltdl-specific code, etc.
This is the culmination of 10 years of desire, and 10 years
of frothing hatred for libltdl.

And there was much rejoicing.

12 years agoNo longer use libltdl
Arran Cudbard-Bell [Sat, 16 Mar 2013 14:31:51 +0000 (11:31 -0300)] 
No longer use libltdl

12 years agoAdd more alternative values
Arran Cudbard-Bell [Sat, 16 Mar 2013 05:03:31 +0000 (01:03 -0400)] 
Add more alternative values

12 years agoAdd alternative value for leap
Arran Cudbard-Bell [Sat, 16 Mar 2013 04:59:25 +0000 (00:59 -0400)] 
Add alternative value for leap

12 years agoDeconstify mod_name
Arran Cudbard-Bell [Sat, 16 Mar 2013 04:54:50 +0000 (00:54 -0400)] 
Deconstify mod_name

12 years agoConvert module name to lowercase
Arran Cudbard-Bell [Sat, 16 Mar 2013 04:51:35 +0000 (00:51 -0400)] 
Convert module name to lowercase

12 years agoTypo
Arran Cudbard-Bell [Sat, 16 Mar 2013 04:44:07 +0000 (00:44 -0400)] 
Typo

12 years agoRemove redundant 'EAP' now were using dictionary values for module names
Arran Cudbard-Bell [Sat, 16 Mar 2013 04:39:22 +0000 (00:39 -0400)] 
Remove redundant 'EAP' now were using dictionary values for module names

Add some duplicate dictionary values

More validation of EAP types

12 years agoFixup rlm_eap and submodules, correcting data types and removing cruft
Arran Cudbard-Bell [Sat, 16 Mar 2013 03:46:30 +0000 (23:46 -0400)] 
Fixup rlm_eap and submodules, correcting data types and removing cruft

12 years agofix dhcp.c for --disable-developper
Olivier Beytrison [Fri, 15 Mar 2013 21:38:09 +0000 (22:38 +0100)] 
fix dhcp.c for --disable-developper

12 years agoFixup EAP type definitions
Arran Cudbard-Bell [Fri, 15 Mar 2013 20:53:42 +0000 (16:53 -0400)] 
Fixup EAP type definitions

12 years agofixed some typos
Alan Buxey [Thu, 14 Mar 2013 20:43:52 +0000 (20:43 +0000)] 
fixed some typos

typos….some essential for documentation to be correct, others just annoying

12 years agoReplace EAP-SIM draft with the released version
Arran Cudbard-Bell [Fri, 15 Mar 2013 14:46:20 +0000 (10:46 -0400)] 
Replace EAP-SIM draft with the released version

12 years agoRemove redundant check
Arran Cudbard-Bell [Fri, 15 Mar 2013 02:32:44 +0000 (22:32 -0400)] 
Remove redundant check

12 years agoMinor fixes again
Alan T. DeKok [Fri, 15 Mar 2013 02:23:58 +0000 (22:23 -0400)] 
Minor fixes again

12 years agoClean up code
Alan T. DeKok [Thu, 14 Mar 2013 20:50:33 +0000 (16:50 -0400)] 
Clean up code

Use uint8_t rather than char && casts.
Don't assign to variables inside of an "if" condition.  It's
bad form.

12 years agoFix typo
Arran Cudbard-Bell [Thu, 14 Mar 2013 14:22:32 +0000 (10:22 -0400)] 
Fix typo

12 years agoVerify string is UTF8 clean, and unlink partially initialised databases
Arran Cudbard-Bell [Thu, 14 Mar 2013 03:12:50 +0000 (23:12 -0400)] 
Verify string is UTF8 clean, and unlink partially initialised databases

12 years agoCoverity fix
Arran Cudbard-Bell [Thu, 14 Mar 2013 02:46:38 +0000 (22:46 -0400)] 
Coverity fix

12 years agoCoverity fix
Arran Cudbard-Bell [Thu, 14 Mar 2013 02:46:22 +0000 (22:46 -0400)] 
Coverity fix

12 years agoInitialise error to null
Arran Cudbard-Bell [Thu, 14 Mar 2013 02:18:15 +0000 (22:18 -0400)] 
Initialise error to null

12 years ago"this" may be NULL if we don't have a new proxy socket
Alan T. DeKok [Thu, 14 Mar 2013 02:01:33 +0000 (22:01 -0400)] 
"this" may be NULL if we don't have a new proxy socket

12 years agoAdd proxy socket to event list
Alan T. DeKok [Thu, 14 Mar 2013 01:46:21 +0000 (21:46 -0400)] 
Add proxy socket to event list

12 years agoFree all listeners when we exit.
Alan T. DeKok [Thu, 14 Mar 2013 01:41:32 +0000 (21:41 -0400)] 
Free all listeners when we exit.

Both talloc and valgrind now agree that we leak zero bytes
on clean exit

12 years agoFix comments so that they match the code.
Alan T. DeKok [Thu, 14 Mar 2013 01:33:23 +0000 (21:33 -0400)] 
Fix comments so that they match the code.

12 years agoDon't use %s for non-nil terminated strings
Alan T. DeKok [Thu, 14 Mar 2013 01:00:11 +0000 (21:00 -0400)] 
Don't use %s for non-nil terminated strings

12 years agoMore fixes for Coverity.
Alan T. DeKok [Thu, 14 Mar 2013 00:57:52 +0000 (20:57 -0400)] 
More fixes for Coverity.

It can't tell that dict_attrunknown always returns type=octets

12 years agoFix build error
Arran Cudbard-Bell [Wed, 13 Mar 2013 22:35:11 +0000 (18:35 -0400)] 
Fix build error

12 years agoAdd the client to the section
Alan T. DeKok [Wed, 13 Mar 2013 22:12:30 +0000 (18:12 -0400)] 
Add the client to the section

So that it isn't parsed umpteen times.
This code was accidentally deleted in the conversion to talloc

12 years agoRemove "bind_address" configuration.
Alan T. DeKok [Wed, 13 Mar 2013 22:07:55 +0000 (18:07 -0400)] 
Remove "bind_address" configuration.

It's getting on a decade old, and wrong

12 years agoFix typo (caught by Alan Buxey)
Arran Cudbard-Bell [Tue, 12 Mar 2013 20:55:36 +0000 (16:55 -0400)] 
Fix typo (caught by Alan Buxey)

12 years agoAllow rlm_yubikey to be built as part of CI
Arran Cudbard-Bell [Tue, 12 Mar 2013 19:40:40 +0000 (15:40 -0400)] 
Allow rlm_yubikey to be built as part of CI

12 years agoAdd rlm_yubikey
Arran Cudbard-Bell [Tue, 12 Mar 2013 19:29:01 +0000 (15:29 -0400)] 
Add rlm_yubikey

12 years agoRemove uneeded checks
Arran Cudbard-Bell [Tue, 12 Mar 2013 18:12:44 +0000 (14:12 -0400)] 
Remove uneeded checks

12 years agoFix docs
Arran Cudbard-Bell [Tue, 12 Mar 2013 18:12:18 +0000 (14:12 -0400)] 
Fix docs

12 years agoUpdate rlm_eap_md5 configure script
Arran Cudbard-Bell [Tue, 12 Mar 2013 18:06:13 +0000 (14:06 -0400)] 
Update rlm_eap_md5 configure script

12 years agoShould be inst not data
Arran Cudbard-Bell [Tue, 12 Mar 2013 01:25:05 +0000 (21:25 -0400)] 
Should be inst not data

12 years agoRadmin doesn't need readline. Closes #227
Alan T. DeKok [Tue, 12 Mar 2013 00:53:40 +0000 (20:53 -0400)] 
Radmin doesn't need readline.  Closes #227

12 years agochange to comment/instruction
Alan Buxey [Sun, 10 Mar 2013 22:05:29 +0000 (22:05 +0000)] 
change to comment/instruction

just a little annoying typo fixed

12 years agoadd RFC to our local RFC store
Alan Buxey [Sun, 10 Mar 2013 21:14:27 +0000 (21:14 +0000)] 
add RFC to our local RFC store

6677 dictionary added , may as well match whats done with other RFCs

12 years agoFix typo. Closes issue #222
Alan T. DeKok [Sun, 10 Mar 2013 21:58:38 +0000 (17:58 -0400)] 
Fix typo.  Closes issue #222

12 years agoMake sqlite driver work with more versions of the library
Arran Cudbard-Bell [Sun, 10 Mar 2013 16:32:08 +0000 (12:32 -0400)] 
Make sqlite driver work with more versions of the library

12 years agoFix missed pair create call
Arran Cudbard-Bell [Sat, 9 Mar 2013 22:15:47 +0000 (17:15 -0500)] 
Fix missed pair create call

12 years agoRefactor error message handling in rlm_ldap
Arran Cudbard-Bell [Sat, 9 Mar 2013 22:15:34 +0000 (17:15 -0500)] 
Refactor error message handling in rlm_ldap

12 years agoAdd module prefix to module, and make RDEBUGE set module failure message by default
Arran Cudbard-Bell [Sat, 9 Mar 2013 22:14:53 +0000 (17:14 -0500)] 
Add module prefix to module, and make RDEBUGE set module failure message by default

12 years agoRewrite eap-tnc to work with tnch@fhh libraries
Arran Cudbard-Bell [Sat, 9 Mar 2013 03:56:32 +0000 (22:56 -0500)] 
Rewrite eap-tnc to work with tnch@fhh libraries

Original patch by Avesh Agarwal

12 years agoMerge pull request #219 from olivierbeytrison/ldap_enh
Arran Cudbard-Bell [Sat, 9 Mar 2013 18:54:54 +0000 (10:54 -0800)] 
Merge pull request #219 from olivierbeytrison/ldap_enh

Correct bind error handling in rlm_ldap

12 years agoRemove RADIUSD_NEED_DECLARATION
Alan T. DeKok [Sat, 9 Mar 2013 18:11:59 +0000 (13:11 -0500)] 
Remove RADIUSD_NEED_DECLARATION

12 years agoAdd TALLOC_CTX to paircreate()
Alan T. DeKok [Sat, 9 Mar 2013 18:09:42 +0000 (13:09 -0500)] 
Add TALLOC_CTX to paircreate()

Which exposed a fair amount of repeated code.  That should
use radius_paircreate().

12 years agoWe haven't used sys/locking.h for a while.
Alan T. DeKok [Sat, 9 Mar 2013 01:46:00 +0000 (20:46 -0500)] 
We haven't used sys/locking.h for a while.

12 years agoRemove RADIUSD_NEED_DECLARATION
Alan T. DeKok [Sat, 9 Mar 2013 01:43:51 +0000 (20:43 -0500)] 
Remove RADIUSD_NEED_DECLARATION

Apparently this hasn't been used for a long time, and no one
has noticed.

12 years agoCorrect bind error handling in rlm_ldap 219/head
Olivier Beytrison [Sat, 9 Mar 2013 17:55:49 +0000 (18:55 +0100)] 
Correct bind error handling in rlm_ldap
Additionnaly, if we do edir authorization, and the bind failed, return RLM_USERLOCK along a Module-Failure-Message

12 years agoAdd call to AC_CANONICAL_SYSTEM to populate $host
Arran Cudbard-Bell [Fri, 8 Mar 2013 16:37:53 +0000 (11:37 -0500)] 
Add call to AC_CANONICAL_SYSTEM to populate $host

12 years agoFix debug messages
Alan T. DeKok [Fri, 8 Mar 2013 15:08:40 +0000 (10:08 -0500)] 
Fix debug messages

And add "request" field to radius_readfrom_program()

12 years agoNote recent changes
Alan T. DeKok [Fri, 8 Mar 2013 13:21:07 +0000 (08:21 -0500)] 
Note recent changes

12 years agoCleanup the last bits of non-talloc socket destruction
Arran Cudbard-Bell [Fri, 8 Mar 2013 04:30:56 +0000 (23:30 -0500)] 
Cleanup the last bits of non-talloc socket destruction

12 years agoFix typos/weird function names
Arran Cudbard-Bell [Fri, 8 Mar 2013 04:30:20 +0000 (23:30 -0500)] 
Fix typos/weird function names

12 years agoFix typo in oracle configure script
Arran Cudbard-Bell [Fri, 8 Mar 2013 04:10:48 +0000 (23:10 -0500)] 
Fix typo in oracle configure script

12 years agoUse talloc destructors to close sockets (SQLite)
Arran Cudbard-Bell [Thu, 7 Mar 2013 20:57:44 +0000 (15:57 -0500)] 
Use talloc destructors to close sockets (SQLite)

12 years agoUse talloc destructors to close sockets (postgresql)
Arran Cudbard-Bell [Fri, 8 Mar 2013 03:19:56 +0000 (22:19 -0500)] 
Use talloc destructors to close sockets (postgresql)

12 years agoUse talloc destructors to close sockets (sybase)
Arran Cudbard-Bell [Fri, 8 Mar 2013 03:19:45 +0000 (22:19 -0500)] 
Use talloc destructors to close sockets (sybase)

12 years agoUse talloc destructors to close sockets (unixodbc)
Arran Cudbard-Bell [Fri, 8 Mar 2013 03:19:35 +0000 (22:19 -0500)] 
Use talloc destructors to close sockets (unixodbc)

12 years agoUse talloc destructors to close sockets (oracle)
Arran Cudbard-Bell [Thu, 7 Mar 2013 22:17:59 +0000 (17:17 -0500)] 
Use talloc destructors to close sockets (oracle)