freeradius.git
11 years agoRun radiusd -XC from the build directory
Alan T. DeKok [Fri, 22 Mar 2013 13:17:33 +0000 (09:17 -0400)]
Run radiusd -XC from the build directory

before running any more detailed tests

11 years agoThat's a paddlin.
Alan T. DeKok [Fri, 22 Mar 2013 12:59:45 +0000 (08:59 -0400)]
That's a paddlin.

11 years agoWimax isn't always built
Alan T. DeKok [Thu, 21 Mar 2013 18:22:11 +0000 (14:22 -0400)]
Wimax isn't always built

11 years agoFlakey build mystery solved
Arran Cudbard-Bell [Fri, 22 Mar 2013 04:53:18 +0000 (00:53 -0400)]
Flakey build mystery solved

11 years agoExperimentally make travis build single threaded
Arran Cudbard-Bell [Fri, 22 Mar 2013 04:18:18 +0000 (00:18 -0400)]
Experimentally make travis build single threaded

11 years agoReally quiet
Arran Cudbard-Bell [Fri, 22 Mar 2013 04:16:48 +0000 (00:16 -0400)]
Really quiet

11 years agoUse higher debugging level for test
Arran Cudbard-Bell [Fri, 22 Mar 2013 04:03:32 +0000 (00:03 -0400)]
Use higher debugging level for test

11 years agoCheck access to libraries (quietly)
Arran Cudbard-Bell [Fri, 22 Mar 2013 04:02:49 +0000 (00:02 -0400)]
Check access to libraries (quietly)

11 years agoReturn ldap_rcode_t from rlm_ldap_bind for consistency
Arran Cudbard-Bell [Fri, 22 Mar 2013 03:34:50 +0000 (23:34 -0400)]
Return ldap_rcode_t from rlm_ldap_bind for consistency

11 years agoVarious minor fixes in rlm_eap
Arran Cudbard-Bell [Thu, 21 Mar 2013 23:31:13 +0000 (19:31 -0400)]
Various minor fixes in rlm_eap

11 years agoExtra dependencies for building debian packages
Arran Cudbard-Bell [Thu, 21 Mar 2013 21:32:09 +0000 (17:32 -0400)]
Extra dependencies for building debian packages

11 years agoFix travis-test
Arran Cudbard-Bell [Thu, 21 Mar 2013 21:23:35 +0000 (17:23 -0400)]
Fix travis-test

11 years agoMore travis tests
Arran Cudbard-Bell [Thu, 21 Mar 2013 18:41:10 +0000 (14:41 -0400)]
More travis tests

11 years agoEnabled WITH_VERIFY_PTR for developer builds
Alan T. DeKok [Thu, 21 Mar 2013 18:09:33 +0000 (14:09 -0400)]
Enabled WITH_VERIFY_PTR for developer builds

11 years agoRemove redundant code
Arran Cudbard-Bell [Thu, 21 Mar 2013 16:41:30 +0000 (12:41 -0400)]
Remove redundant code

11 years agoCleanup some logging stuff
Arran Cudbard-Bell [Thu, 21 Mar 2013 16:32:55 +0000 (12:32 -0400)]
Cleanup some logging stuff

11 years agoFix minor memory leak on detach
Alan T. DeKok [Thu, 21 Mar 2013 15:50:30 +0000 (11:50 -0400)]
Fix minor memory leak on detach

11 years agoAdded verification of VALUE_PAIR pointers via talloc
Alan T. DeKok [Thu, 21 Mar 2013 15:45:27 +0000 (11:45 -0400)]
Added verification of VALUE_PAIR pointers via talloc

11 years agoRemove unused / old files
Alan T. DeKok [Thu, 21 Mar 2013 13:54:22 +0000 (06:54 -0700)]
Remove unused / old files

11 years agoRemove duplicate and unused package
Alan T. DeKok [Thu, 21 Mar 2013 13:46:59 +0000 (06:46 -0700)]
Remove duplicate and unused package

Die, libltdl, die.

11 years agoRemove references to rlm_dbm
Alan T. DeKok [Thu, 21 Mar 2013 13:46:30 +0000 (06:46 -0700)]
Remove references to rlm_dbm

11 years agoMerge pull request #239 from netflash/master
Alan DeKok [Thu, 21 Mar 2013 13:45:30 +0000 (06:45 -0700)]
Merge pull request #239 from netflash/master

Building debian package. Fixed some errors

11 years agoFixed debian/control build-dep section
Alexandr Romanov [Thu, 21 Mar 2013 09:04:12 +0000 (13:04 +0400)]
Fixed debian/control build-dep section
added 3 libraries

11 years agoMore debugging
Arran Cudbard-Bell [Thu, 21 Mar 2013 07:19:08 +0000 (03:19 -0400)]
More debugging

11 years agoSee what talloc report gives us
Arran Cudbard-Bell [Thu, 21 Mar 2013 06:53:34 +0000 (02:53 -0400)]
See what talloc report gives us

11 years agoWe don't know it's not valid, just that it's not set
Arran Cudbard-Bell [Thu, 21 Mar 2013 06:45:27 +0000 (02:45 -0400)]
We don't know it's not valid, just that it's not set

11 years agoAdd more opportunistic debugging in pairbasicfree
Arran Cudbard-Bell [Thu, 21 Mar 2013 06:43:09 +0000 (02:43 -0400)]
Add more opportunistic debugging in pairbasicfree

11 years agoAdd assert to pairbasicfree to check for da
Arran Cudbard-Bell [Thu, 21 Mar 2013 06:29:58 +0000 (02:29 -0400)]
Add assert to pairbasicfree to check for da

11 years agoVerify VPs are still viable in pair_list functions
Arran Cudbard-Bell [Thu, 21 Mar 2013 06:21:47 +0000 (02:21 -0400)]
Verify VPs are still viable in pair_list functions

11 years agoMinor typo
Arran Cudbard-Bell [Thu, 21 Mar 2013 05:23:53 +0000 (01:23 -0400)]
Minor typo

11 years agoAdd assert to catch NULL source context
Arran Cudbard-Bell [Thu, 21 Mar 2013 05:23:08 +0000 (01:23 -0400)]
Add assert to catch NULL source context

11 years agoDon't segv if we didn't managed to load one of the eap methods
Arran Cudbard-Bell [Thu, 21 Mar 2013 04:55:28 +0000 (00:55 -0400)]
Don't segv if we didn't managed to load one of the eap methods

11 years agoKill another smurf
Arran Cudbard-Bell [Thu, 21 Mar 2013 04:54:59 +0000 (00:54 -0400)]
Kill another smurf

11 years agoApparently none of the range constructs work in Travis
Arran Cudbard-Bell [Thu, 21 Mar 2013 04:33:07 +0000 (00:33 -0400)]
Apparently none of the range constructs work in Travis

11 years agoAdd -P argument to always write PID, and fix tests
Arran Cudbard-Bell [Thu, 21 Mar 2013 03:10:17 +0000 (23:10 -0400)]
Add -P argument to always write PID, and fix tests

11 years agoGDB is apparently not available by default
Arran Cudbard-Bell [Thu, 21 Mar 2013 01:52:14 +0000 (21:52 -0400)]
GDB is apparently not available by default

11 years agoAttempt at autobacktrace on segv
Arran Cudbard-Bell [Wed, 20 Mar 2013 23:31:52 +0000 (19:31 -0400)]
Attempt at autobacktrace on segv

11 years agoFix typo.
Alan T. DeKok [Wed, 20 Mar 2013 23:22:11 +0000 (19:22 -0400)]
Fix typo.

Set "from" to NULL after we steal all of the VPs

11 years agopairadd(paircopy)) instead of paircopy/pairmove/pairfree
Alan T. DeKok [Wed, 20 Mar 2013 21:59:56 +0000 (17:59 -0400)]
pairadd(paircopy)) instead of paircopy/pairmove/pairfree

11 years agomost of the rest of the code has packet/reply, not request/reply
Alan T. DeKok [Wed, 20 Mar 2013 21:56:05 +0000 (17:56 -0400)]
most of the rest of the code has packet/reply, not request/reply

Yes, it's not perfect... but it makes the next commit easier

11 years agoAudit the code to pass correct parent to pair() functions
Alan T. DeKok [Wed, 20 Mar 2013 21:20:07 +0000 (17:20 -0400)]
Audit the code to pass correct parent to pair() functions

11 years agoFix arguments to gen keys
Alan T. DeKok [Wed, 20 Mar 2013 21:19:40 +0000 (17:19 -0400)]
Fix arguments to gen keys

Now that we have packet, we don't have to pass a VPS pointer

11 years agoUse pairmove2() instead of pairadd(a,b);b=NULL
Alan T. DeKok [Wed, 20 Mar 2013 21:06:28 +0000 (17:06 -0400)]
Use pairmove2() instead of pairadd(a,b);b=NULL

Now that we use talloc, we have to re-parent everything
properly.

11 years agoAllow attr/vendor of 0 in pairmove, which means "move all"
Alan T. DeKok [Wed, 20 Mar 2013 21:06:09 +0000 (17:06 -0400)]
Allow attr/vendor of 0 in pairmove, which means "move all"

11 years agoSimplify code
Alan T. DeKok [Wed, 20 Mar 2013 18:33:15 +0000 (14:33 -0400)]
Simplify code

11 years agoUse correct context for paircopy
Alan T. DeKok [Wed, 20 Mar 2013 18:32:33 +0000 (14:32 -0400)]
Use correct context for paircopy

11 years agoInitialise more things
Arran Cudbard-Bell [Wed, 20 Mar 2013 16:40:31 +0000 (12:40 -0400)]
Initialise more things

11 years agoQuiet dumb compiler
Arran Cudbard-Bell [Wed, 20 Mar 2013 16:38:09 +0000 (12:38 -0400)]
Quiet dumb compiler

11 years agoRADIUS over TCP, and RADIUS over TLS RFCs
Alan T. DeKok [Wed, 20 Mar 2013 16:28:13 +0000 (12:28 -0400)]
RADIUS over TCP, and RADIUS over TLS RFCs

11 years agoSteal pointers on pairmove. Closes #232
Alan T. DeKok [Wed, 20 Mar 2013 16:23:04 +0000 (12:23 -0400)]
Steal pointers on pairmove.  Closes #232

We need to update pairmove() to steal the VP from its parent,
otherwise when we free the parent, we'll free the VP, even though
it's on a new list.

11 years agoTypo
Arran Cudbard-Bell [Wed, 20 Mar 2013 16:11:39 +0000 (12:11 -0400)]
Typo

11 years agoRe-run configure after removing shell-style comments
Alan T. DeKok [Wed, 20 Mar 2013 15:55:19 +0000 (08:55 -0700)]
Re-run configure after removing shell-style comments

11 years agoIgnore modules which have not yet been configured
Alan T. DeKok [Wed, 20 Mar 2013 15:54:59 +0000 (08:54 -0700)]
Ignore modules which have not yet been configured

11 years agoRemove '#' comments in configure.in files
Alan T. DeKok [Wed, 20 Mar 2013 15:45:43 +0000 (11:45 -0400)]
Remove '#' comments in configure.in files

They're m4, not shell

11 years agoFix typo
Alan T. DeKok [Wed, 20 Mar 2013 15:25:57 +0000 (11:25 -0400)]
Fix typo

11 years agorunning configure depends on src/freeradius-devel
Alan T. DeKok [Wed, 20 Mar 2013 15:24:56 +0000 (11:24 -0400)]
running configure depends on src/freeradius-devel

Because IMACROS uses it, and IMACROS goes into CFLAGS,
and CFLAGS is used when running configure checks

11 years agoRevert last commit, it doesn't work
Alan T. DeKok [Wed, 20 Mar 2013 15:19:16 +0000 (11:19 -0400)]
Revert last commit, it doesn't work

11 years agoEnsure we build src/freeradius-devel before doing much else
Alan T. DeKok [Wed, 20 Mar 2013 15:16:30 +0000 (11:16 -0400)]
Ensure we build src/freeradius-devel before doing much else

11 years agoInitialise more values
Arran Cudbard-Bell [Wed, 20 Mar 2013 15:02:04 +0000 (11:02 -0400)]
Initialise more values

11 years agoCleanup edir code, always build edir code
Arran Cudbard-Bell [Wed, 20 Mar 2013 14:16:05 +0000 (10:16 -0400)]
Cleanup edir code, always build edir code

11 years agoRemove old cruft for libtool
Alan T. DeKok [Wed, 20 Mar 2013 14:01:44 +0000 (10:01 -0400)]
Remove old cruft for libtool

11 years agoLoad all modules, including ones which are not configured
Alan T. DeKok [Wed, 20 Mar 2013 14:00:03 +0000 (10:00 -0400)]
Load all modules, including ones which are not configured

And sort for duplicates.  This allows us to "clean" a module,
and it will still be configured and then loaded  and built

11 years agoTypo
Arran Cudbard-Bell [Wed, 20 Mar 2013 13:38:04 +0000 (09:38 -0400)]
Typo

11 years agoMore LDAP fixes
Arran Cudbard-Bell [Wed, 20 Mar 2013 13:34:52 +0000 (09:34 -0400)]
More LDAP fixes

11 years agoFix typo
Alan T. DeKok [Wed, 20 Mar 2013 13:05:08 +0000 (09:05 -0400)]
Fix typo

11 years agoFixup edir code
Arran Cudbard-Bell [Wed, 20 Mar 2013 12:59:13 +0000 (08:59 -0400)]
Fixup edir code

11 years agoWrap configure rules in checks for autoconf
Alan T. DeKok [Wed, 20 Mar 2013 12:54:57 +0000 (08:54 -0400)]
Wrap configure rules in checks for autoconf

11 years agoEnsure we link the header directory before building anything
Alan T. DeKok [Wed, 20 Mar 2013 12:48:45 +0000 (08:48 -0400)]
Ensure we link the header directory before building anything

And the top-level IMACRO shouldn't really be poking the src
tree...

11 years agoFix typo
Alan T. DeKok [Wed, 20 Mar 2013 04:12:57 +0000 (00:12 -0400)]
Fix typo

11 years agoMinor changes to output
Alan T. DeKok [Wed, 20 Mar 2013 03:20:27 +0000 (23:20 -0400)]
Minor changes to output

11 years agoFix typo
Alan T. DeKok [Wed, 20 Mar 2013 03:18:46 +0000 (23:18 -0400)]
Fix typo

11 years agoFix typo in wrong function
Alan T. DeKok [Wed, 20 Mar 2013 03:15:35 +0000 (23:15 -0400)]
Fix typo in wrong function

11 years agoThere's no reason to have cf_parse_item take a NULL cs
Alan T. DeKok [Wed, 20 Mar 2013 03:14:00 +0000 (23:14 -0400)]
There's no reason to have cf_parse_item take a NULL cs

11 years agoFix coverity issues in rlm_ldap
Arran Cudbard-Bell [Wed, 20 Mar 2013 03:14:53 +0000 (23:14 -0400)]
Fix coverity issues in rlm_ldap

11 years agoFix rlm_pam
Arran Cudbard-Bell [Wed, 20 Mar 2013 03:14:42 +0000 (23:14 -0400)]
Fix rlm_pam

11 years agoUse da->name, not vp->da->name
Alan T. DeKok [Wed, 20 Mar 2013 03:11:18 +0000 (23:11 -0400)]
Use da->name, not vp->da->name

11 years agoCheck for NULL from talloc
Alan T. DeKok [Wed, 20 Mar 2013 03:10:01 +0000 (23:10 -0400)]
Check for NULL from talloc

11 years agoFix type typo
Alan T. DeKok [Wed, 20 Mar 2013 03:07:52 +0000 (23:07 -0400)]
Fix type typo

11 years agoeap_method_select returns eap_rcode_t, not eap_code_t
Alan T. DeKok [Wed, 20 Mar 2013 03:06:46 +0000 (23:06 -0400)]
eap_method_select returns eap_rcode_t, not eap_code_t

11 years agoChange && to ||
Alan T. DeKok [Wed, 20 Mar 2013 03:02:33 +0000 (23:02 -0400)]
Change && to ||

11 years agoHard-code configure rule
Alan T. DeKok [Wed, 20 Mar 2013 03:00:02 +0000 (23:00 -0400)]
Hard-code configure rule

11 years agoMake magic.
Alan T. DeKok [Wed, 20 Mar 2013 02:43:54 +0000 (22:43 -0400)]
Make magic.

If config.log exists,
Grab the "configure" args from it,
and make the "*mk" files depend on "*.mk.in" and "configure".

If the *.mk.in file changes, or "configure" changes,
then re-run "configure" in that subdirectory, to re-generate
the *.mk file.

Right now it works with all.mk files, but not other *.mk files.
to be done later...

11 years agoMore function renaming
Alan T. DeKok [Wed, 20 Mar 2013 02:31:42 +0000 (22:31 -0400)]
More function renaming

preproxy --> pre_proxy, etc.

11 years agoFix typo in securid
Arran Cudbard-Bell [Wed, 20 Mar 2013 02:45:45 +0000 (22:45 -0400)]
Fix typo in securid

11 years agoMode sql_foo to mod_foo changes
Alan T. DeKok [Wed, 20 Mar 2013 02:12:33 +0000 (22:12 -0400)]
Mode sql_foo to mod_foo changes

11 years agoThis is no longer necessary.
Alan T. DeKok [Wed, 20 Mar 2013 02:01:31 +0000 (22:01 -0400)]
This is no longer necessary.

The passwd module can read CSV files and map them to attributes.
This module requires a CSV file with three contiguous lines
for one IMSI.  It's only used for testing, and not in production.
There are better ways to test the code.

11 years agoLast one
Alan T. DeKok [Wed, 20 Mar 2013 01:56:05 +0000 (21:56 -0400)]
Last one

11 years agoFix configure scripts, missed in earlier commit
Alan T. DeKok [Wed, 20 Mar 2013 01:51:07 +0000 (21:51 -0400)]
Fix configure scripts, missed in earlier commit

11 years agoRe-name all of the module functions.
Alan T. DeKok [Wed, 20 Mar 2013 00:26:23 +0000 (20:26 -0400)]
Re-name all of the module functions.

Instead of eap_foo, we now have mod_foo.
The core functions module_foo have been renamed to process_foo

Change via Perl:

perl -p -i -e 's/([^a-z_])module_(instantiate|detach|authorize|authenticate|post_auth|accounting|pre_acct|checksimul|pre_proxy|post_proxy|recv_coa|send_coa)([^a-z_])/${1}4321_${2}${3}/g' $(find src/ -name "*.[ch]" -print)

perl -p -i -e 's/[a-z_]+_(instantiate|detach|authorize|authenticate|post_auth|accounting|pre_acct|checksimul|pre_proxy|post_proxy|recv_coa|send_coa)([^a-z_]?)/mod_$1$2/g;' $(find src/modules -name "*.[ch]" -print)

perl -p -i -e 's/([^a-z_])4321_([a-z_]+[^a-z_])/${1}process_${2}/g' $(find src/ -name "*.[ch]" -print)

With some manual editing of Perl, Python, and Ruby

11 years agoRename functions
Alan T. DeKok [Wed, 20 Mar 2013 00:12:30 +0000 (20:12 -0400)]
Rename functions

11 years agoUse consitent names for *_cflags and *_ldflags.
Alan T. DeKok [Tue, 19 Mar 2013 23:41:41 +0000 (19:41 -0400)]
Use consitent names for *_cflags and *_ldflags.

mod_ldflags is better than eap_cflags.  It's more consistent
(but less cutesy), and allows for more files to be copied
from one module to another without changes

$ perl -p -i -e 's/[a-z_]+_ldflags/mod_ldflags/g;s/[a-z_]+_cflags/mod_cflags/g;' $(find src/ -name "configure.in" -print)I

11 years agoFix documentation and typo
Arran Cudbard-Bell [Tue, 19 Mar 2013 23:29:03 +0000 (19:29 -0400)]
Fix documentation and typo

11 years agoExplicitly specify whether we want to query to get the user's DN
Arran Cudbard-Bell [Tue, 19 Mar 2013 23:08:54 +0000 (19:08 -0400)]
Explicitly specify whether we want to query to get the user's DN

11 years agocleanups for doxygen
Alan T. DeKok [Tue, 19 Mar 2013 23:02:39 +0000 (19:02 -0400)]
cleanups for doxygen

11 years agocleanups for doxygen
Alan T. DeKok [Tue, 19 Mar 2013 23:00:58 +0000 (19:00 -0400)]
cleanups for doxygen

11 years agodocs for doxygen
Alan T. DeKok [Tue, 19 Mar 2013 22:42:10 +0000 (18:42 -0400)]
docs for doxygen

11 years agoDocs for doxygen
Alan T. DeKok [Tue, 19 Mar 2013 22:41:57 +0000 (18:41 -0400)]
Docs for doxygen

11 years agoTests depend on radiusd && radclient, too
Alan T. DeKok [Tue, 19 Mar 2013 21:50:05 +0000 (17:50 -0400)]
Tests depend on radiusd && radclient, too

11 years agoDocument talloc parameters
Alan T. DeKok [Tue, 19 Mar 2013 21:48:13 +0000 (17:48 -0400)]
Document talloc parameters

11 years agoConvert module to using talloc
Alan T. DeKok [Tue, 19 Mar 2013 21:40:27 +0000 (17:40 -0400)]
Convert module to using talloc