freeradius.git
11 years agomove User-Password warning from auth.c to rlm_pap
Matthew Newton [Thu, 27 Sep 2012 22:38:57 +0000 (23:38 +0100)]
move User-Password warning from auth.c to rlm_pap

11 years agoDon't copy User-Password -> Cleartext-Password. They need to reconfigure if it breaks.
Matthew Newton [Thu, 27 Sep 2012 22:18:08 +0000 (23:18 +0100)]
Don't copy User-Password -> Cleartext-Password. They need to reconfigure if it breaks.

11 years agoRemove code for Auth-Types Local and Crypt; pap or chap should be used instead
Matthew Newton [Thu, 27 Sep 2012 21:41:36 +0000 (22:41 +0100)]
Remove code for Auth-Types Local and Crypt; pap or chap should be used instead

11 years agodebug: should output previous level instead of the level that was just set.
Arran Cudbard-Bell [Thu, 27 Sep 2012 18:07:04 +0000 (19:07 +0100)]
debug: should output previous level instead of the level that was just set.

Don't set debug to 0 if no fmt string was passed, do nothing.

11 years agoUpdate share/dictionary.bskyb
Arran Cudbard-Bell [Thu, 27 Sep 2012 12:58:30 +0000 (14:58 +0200)]
Update share/dictionary.bskyb

11 years agoLatest updates
Arran Cudbard-Bell [Thu, 27 Sep 2012 12:57:52 +0000 (14:57 +0200)]
Latest updates

11 years agoDocument cache parameters in listen + tls, too
Alan T. DeKok [Thu, 27 Sep 2012 11:46:40 +0000 (13:46 +0200)]
Document cache parameters in listen + tls, too

11 years agoMerge pull request #93 from mcnewton/rad_virtual_server
Alan DeKok [Thu, 27 Sep 2012 10:07:56 +0000 (03:07 -0700)]
Merge pull request #93 from mcnewton/rad_virtual_server

Update post-auth handling in rad_authenticate etc

11 years agoMerge pull request #92 from philmayers/sess-persist
Alan DeKok [Thu, 27 Sep 2012 10:07:27 +0000 (03:07 -0700)]
Merge pull request #92 from philmayers/sess-persist

add the ability to persist SSL session cache to disk across server restarts

11 years agorlm_eap virtual servers now call postauth for both accept and reject
Matthew Newton [Tue, 25 Sep 2012 22:24:10 +0000 (23:24 +0100)]
rlm_eap virtual servers now call postauth for both accept and reject

11 years agoAdd rad_virtual_server to call rad_authenticate and rad_postauth
Matthew Newton [Tue, 25 Sep 2012 22:04:04 +0000 (23:04 +0100)]
Add rad_virtual_server to call rad_authenticate and rad_postauth

11 years agoMove rad_postauth ACCEPT from rad_authenticate to request_finish
Matthew Newton [Tue, 25 Sep 2012 21:42:26 +0000 (22:42 +0100)]
Move rad_postauth ACCEPT from rad_authenticate to request_finish

11 years agoRemove duplicate version/copyright info
Arran Cudbard-Bell [Tue, 25 Sep 2012 19:59:57 +0000 (20:59 +0100)]
Remove duplicate version/copyright info

Print compilation flags at DEBUG >= 3 (this is actually useful if you're using a package version)

11 years agoPass rpath when installing libeap
Arran Cudbard-Bell [Tue, 25 Sep 2012 15:30:53 +0000 (16:30 +0100)]
Pass rpath when installing libeap

11 years agoMore AL attributes to support their NAT features
Arran Cudbard-Bell [Tue, 25 Sep 2012 13:15:14 +0000 (14:15 +0100)]
More AL attributes to support their NAT features

11 years agoCheck for dlopen, too
Alan T. DeKok [Sat, 22 Sep 2012 07:58:55 +0000 (09:58 +0200)]
Check for dlopen, too

11 years agoIf we can't install, print error rather than SEGV
Alan T. DeKok [Sat, 22 Sep 2012 07:51:53 +0000 (09:51 +0200)]
If we can't install, print error rather than SEGV

11 years agoAdd -rpath to allow it to link && install
Alan T. DeKok [Sat, 22 Sep 2012 07:51:36 +0000 (09:51 +0200)]
Add -rpath to allow it to link && install

11 years agoHack dependencies to get "touch foo.c;make install" to work
Alan T. DeKok [Sat, 22 Sep 2012 07:32:32 +0000 (09:32 +0200)]
Hack dependencies to get "touch foo.c;make install" to work

the installed files depend on the "relink" versions, which have
the correct library paths in them.  The normal versions have the
in-source paths, to allow in-source execution.

The relink versions now have a dependency on the normal versions,
which causes the normal versions to get built, too.

We should probably change the "relink" target to "final", and
get rid of the ADD_LIBTOOL_PATH stuff.

11 years agoadd the ability to persist SSL session cache to disk across server restarts
Phil Mayers [Fri, 21 Sep 2012 12:45:22 +0000 (13:45 +0100)]
add the ability to persist SSL session cache to disk across server restarts

11 years agoAdd safe-characters function from rlm_sql
Arran Cudbard-Bell [Fri, 21 Sep 2012 12:08:51 +0000 (13:08 +0100)]
Add safe-characters function from rlm_sql

11 years agoMerge pull request #91 from philmayers/ldap-xlat-escape
Arran Cudbard-Bell [Thu, 20 Sep 2012 17:17:48 +0000 (10:17 -0700)]
Merge pull request #91 from philmayers/ldap-xlat-escape

we should use ldap_escape_func when escaping the URL

11 years agowe should use ldap_escape_func when escaping the URL
Phil Mayers [Thu, 20 Sep 2012 16:24:55 +0000 (17:24 +0100)]
we should use ldap_escape_func when escaping the URL

11 years agoStart removing the old one char expansions
Arran Cudbard-Bell [Thu, 20 Sep 2012 13:25:47 +0000 (14:25 +0100)]
Start removing the old one char expansions

11 years agoMove string manipulation functions from xlat.c to rlm_expr
Arran Cudbard-Bell [Thu, 20 Sep 2012 12:55:08 +0000 (13:55 +0100)]
Move string manipulation functions from xlat.c to rlm_expr

11 years agoRemove b from randstr and implement h (hex encoded b)
Arran Cudbard-Bell [Thu, 20 Sep 2012 12:54:16 +0000 (13:54 +0100)]
Remove b from randstr and implement h (hex encoded b)

11 years agoMark instance as unused in %{rand:}
Arran Cudbard-Bell [Thu, 20 Sep 2012 12:49:19 +0000 (13:49 +0100)]
Mark instance as unused in %{rand:}

11 years agoMerge pull request #90 from philmayers/urlquote
Alan DeKok [Thu, 20 Sep 2012 08:26:29 +0000 (01:26 -0700)]
Merge pull request #90 from philmayers/urlquote

add urlquote xlat - useful for LDAP DNs with comma, backslash

11 years agoadd urlquote xlat - useful for LDAP DNs with comma, backslash
Phil Mayers [Wed, 19 Sep 2012 16:21:06 +0000 (17:21 +0100)]
add urlquote xlat - useful for LDAP DNs with comma, backslash

11 years agoQuiet the compiler
Arran Cudbard-Bell [Wed, 19 Sep 2012 14:00:16 +0000 (15:00 +0100)]
Quiet the compiler

11 years agoAdd dictionary for BSkyB
Arran Cudbard-Bell [Wed, 19 Sep 2012 13:30:01 +0000 (14:30 +0100)]
Add dictionary for BSkyB

11 years agoremove compilation warnings
Alan Buxey [Tue, 18 Sep 2012 21:24:52 +0000 (22:24 +0100)]
remove compilation warnings

2 "warning: format '%ld' expects type 'long int', but argument 3 has
type 'ssize_t'" messages removed

11 years agoremoved 2 compilation warnings
Alan Buxey [Tue, 18 Sep 2012 19:53:42 +0000 (20:53 +0100)]
removed 2 compilation warnings

macaddr->length and sizeof are unsigned longs

11 years agoDon't use ci to iterate over subsections if we might need to use it for logging later
Arran Cudbard-Bell [Tue, 18 Sep 2012 13:15:14 +0000 (14:15 +0100)]
Don't use ci to iterate over subsections if we might need to use it for logging later

11 years agoUpdate links that point to wiki pages
Arran Cudbard-Bell [Mon, 17 Sep 2012 12:52:45 +0000 (13:52 +0100)]
Update links that point to wiki pages

11 years agoAdd bounds check for max_queue_size
Arran Cudbard-Bell [Mon, 17 Sep 2012 12:42:51 +0000 (13:42 +0100)]
Add bounds check for max_queue_size

11 years agoUse max_queue_size when initializing the queues
Alan T. DeKok [Tue, 21 Aug 2012 13:31:09 +0000 (15:31 +0200)]
Use max_queue_size when initializing the queues

11 years agoAdd alphanumeric char class
Arran Cudbard-Bell [Sun, 16 Sep 2012 08:49:33 +0000 (09:49 +0100)]
Add alphanumeric char class

11 years agoUse -rpath on install, so that we know the installation path
Alan T. DeKok [Sun, 16 Sep 2012 07:38:55 +0000 (09:38 +0200)]
Use -rpath on install, so that we know the installation path

11 years agoBetter errors. Use install path, if it exists
Alan T. DeKok [Sun, 16 Sep 2012 07:38:32 +0000 (09:38 +0200)]
Better errors.  Use install path, if it exists

11 years agoAdd randstr expansion to generate random strings up to 256 bytes
Arran Cudbard-Bell [Sat, 15 Sep 2012 18:23:10 +0000 (19:23 +0100)]
Add randstr expansion to generate random strings up to 256 bytes

11 years agoAs posted to the Wiki
Alan T. DeKok [Sun, 29 Apr 2012 07:23:23 +0000 (09:23 +0200)]
As posted to the Wiki

11 years agoRemove --finish for library directory
Alan T. DeKok [Fri, 14 Sep 2012 15:01:18 +0000 (17:01 +0200)]
Remove --finish for library directory

11 years agoFinish getting rid of radwatch
Alan T. DeKok [Fri, 14 Sep 2012 15:01:08 +0000 (17:01 +0200)]
Finish getting rid of radwatch

11 years agoSkip OCSP if there's no host / port / url
Alan T. DeKok [Fri, 14 Sep 2012 08:34:21 +0000 (10:34 +0200)]
Skip OCSP if there's no host / port / url

Manual port of ff3f27d27.

11 years agoFix typo
Arran Cudbard-Bell [Fri, 14 Sep 2012 07:45:34 +0000 (08:45 +0100)]
Fix typo

11 years agogit show-ref works in more cases than git tag
Arran Cudbard-Bell [Thu, 13 Sep 2012 18:21:46 +0000 (19:21 +0100)]
git show-ref works in more cases than git tag

11 years agoHacks to make it work with jlibtool
Alan T. DeKok [Thu, 13 Sep 2012 13:00:13 +0000 (15:00 +0200)]
Hacks to make it work with jlibtool

11 years agoFix pattern substitution to work only for C/CPP
Alan T. DeKok [Thu, 13 Sep 2012 12:56:25 +0000 (14:56 +0200)]
Fix pattern substitution to work only for C/CPP

$(SRCS:.c=.o) followed by $(SRCS:.cpp=.o) results in any ".c" files
being added to the output.  Using GNU Make features helps fix this

11 years agoAllow building without TLS
Alan T. DeKok [Thu, 13 Sep 2012 12:54:46 +0000 (14:54 +0200)]
Allow building without TLS

11 years agoAccept --quiet as a synonym for --silent
Alan T. DeKok [Thu, 13 Sep 2012 12:39:36 +0000 (14:39 +0200)]
Accept --quiet as a synonym for --silent

11 years agoFix CVE-2012-3547. Found by Timo Warns.
Alan T. DeKok [Mon, 10 Sep 2012 06:20:13 +0000 (08:20 +0200)]
Fix CVE-2012-3547.  Found by Timo Warns.

11 years agoMerge pull request #86 from armitasp/master
Arran Cudbard-Bell [Wed, 12 Sep 2012 17:53:08 +0000 (10:53 -0700)]
Merge pull request #86 from armitasp/master

policy for operator-name injection

11 years agoUpdate raddb/sites-available/default
Scott Armitage [Wed, 12 Sep 2012 17:47:09 +0000 (19:47 +0200)]
Update raddb/sites-available/default

11 years agoUpdate raddb/policy.d/operator-name
Scott Armitage [Wed, 12 Sep 2012 17:44:54 +0000 (19:44 +0200)]
Update raddb/policy.d/operator-name

proposed changes by aaron

11 years agoFix typo
Arran Cudbard-Bell [Wed, 12 Sep 2012 16:40:07 +0000 (17:40 +0100)]
Fix typo

11 years agoRemove radwatch from configure scripts
Arran Cudbard-Bell [Wed, 12 Sep 2012 16:21:54 +0000 (18:21 +0200)]
Remove radwatch from configure scripts

11 years agoDocument the upgrade process for rlm_sql release_3_0_0_beta0
Arran Cudbard-Bell [Wed, 12 Sep 2012 14:50:17 +0000 (16:50 +0200)]
Document the upgrade process for rlm_sql

11 years agoNote more 3.0 features
Arran Cudbard-Bell [Wed, 12 Sep 2012 13:04:38 +0000 (15:04 +0200)]
Note more 3.0 features

11 years agoPolicy for injecting operator-name
GEANT GN3 JRA3 T1 [Tue, 11 Sep 2012 12:37:34 +0000 (13:37 +0100)]
Policy for injecting operator-name

11 years agoMinor fixes
Arran Cudbard-Bell [Sat, 8 Sep 2012 20:16:39 +0000 (21:16 +0100)]
Minor fixes

11 years agoAdded script for monit
Alan T. DeKok [Sun, 2 Sep 2012 08:12:14 +0000 (10:12 +0200)]
Added script for monit

11 years agoRemove old radwatch script
Arran Cudbard-Bell [Sat, 8 Sep 2012 20:19:52 +0000 (21:19 +0100)]
Remove old radwatch script

11 years agoDon't die if the clients file doesn't contain client <name> {}
Arran Cudbard-Bell [Fri, 7 Sep 2012 16:01:59 +0000 (17:01 +0100)]
Don't die if the clients file doesn't contain client <name> {}

11 years agoDon't die if the clients file doesn't contain client {}
Arran Cudbard-Bell [Fri, 7 Sep 2012 15:39:27 +0000 (16:39 +0100)]
Don't die if the clients file doesn't contain client {}

11 years agoHungroups and hints should default to NULL, so theyre disabled if omitted
Arran Cudbard-Bell [Fri, 7 Sep 2012 13:47:39 +0000 (14:47 +0100)]
Hungroups and hints should default to NULL, so theyre disabled if omitted

11 years agoUpdate src/modules/rlm_cache/rlm_cache.c
Arran Cudbard-Bell [Thu, 6 Sep 2012 16:55:27 +0000 (18:55 +0200)]
Update src/modules/rlm_cache/rlm_cache.c

11 years agoAdd cache to accounting and preacct
Arran Cudbard-Bell [Thu, 6 Sep 2012 16:50:15 +0000 (18:50 +0200)]
Add cache to accounting and preacct

11 years agoCheck for more parse errors when reading dicts. Bug found by Coverity
Alan T. DeKok [Thu, 6 Sep 2012 09:32:16 +0000 (11:32 +0200)]
Check for more parse errors when reading dicts.  Bug found by Coverity

11 years agoDouble-check that we don't over-run the buffer
Alan T. DeKok [Thu, 6 Sep 2012 09:25:45 +0000 (11:25 +0200)]
Double-check that we don't over-run the buffer

11 years agoCheck for memset of zero
Alan T. DeKok [Thu, 6 Sep 2012 09:22:24 +0000 (11:22 +0200)]
Check for memset of zero

11 years agoClose directory when done with it. Bug found by Coverity
Alan T. DeKok [Thu, 6 Sep 2012 09:21:09 +0000 (11:21 +0200)]
Close directory when done with it.  Bug found by Coverity

11 years agoClose socket on error. Bug found by Coverity
Alan T. DeKok [Thu, 6 Sep 2012 09:18:15 +0000 (11:18 +0200)]
Close socket on error.  Bug found by Coverity

11 years agoClose FD if there's nothing to log. Bug found by Coverity
Alan T. DeKok [Thu, 6 Sep 2012 09:11:02 +0000 (11:11 +0200)]
Close FD if there's nothing to log.  Bug found by Coverity

11 years agoEnsure all fields are initialized
Alan T. DeKok [Thu, 6 Sep 2012 09:09:46 +0000 (11:09 +0200)]
Ensure all fields are initialized

11 years agoFix possible bug
Alan T. DeKok [Thu, 6 Sep 2012 09:00:26 +0000 (11:00 +0200)]
Fix possible bug

11 years agoFix use after free. Bug found by Coverity
Alan T. DeKok [Thu, 6 Sep 2012 08:57:53 +0000 (10:57 +0200)]
Fix use after free.  Bug found by Coverity

11 years agoOnly log known Acct-Status-Types. Bug found by Coverity
Alan T. DeKok [Thu, 6 Sep 2012 08:54:27 +0000 (10:54 +0200)]
Only log known Acct-Status-Types.  Bug found by Coverity

11 years agoCorrected bug with NS-MTA-MD5 passwords. Found by coverity.
Alan T. DeKok [Thu, 6 Sep 2012 08:52:06 +0000 (10:52 +0200)]
Corrected bug with NS-MTA-MD5 passwords.  Found by coverity.

11 years agoRemove double free. Found by Coverity
Alan T. DeKok [Thu, 6 Sep 2012 08:42:18 +0000 (10:42 +0200)]
Remove double free.  Found by Coverity

11 years agoAdd debug option
Arran Cudbard-Bell [Thu, 6 Sep 2012 08:58:19 +0000 (10:58 +0200)]
Add debug option

11 years agoAdd hup to default logrotate script
Arran Cudbard-Bell [Wed, 5 Sep 2012 17:46:25 +0000 (18:46 +0100)]
Add hup to default logrotate script

11 years agoAllow defaults to come from env
Arran Cudbard-Bell [Wed, 5 Sep 2012 17:23:13 +0000 (18:23 +0100)]
Allow defaults to come from env

11 years agoCFLAGS now includes OPENSSL_INCLUDE
Alan T. DeKok [Wed, 5 Sep 2012 14:50:10 +0000 (16:50 +0200)]
CFLAGS now includes OPENSSL_INCLUDE

So we can remove it from all sub-makefiles

11 years agoMake it build using old Make && new jlibtool
Alan T. DeKok [Wed, 5 Sep 2012 14:44:05 +0000 (16:44 +0200)]
Make it build using old Make && new jlibtool

11 years agoDisable ticket cache in the default configuration
Arran Cudbard-Bell [Wed, 5 Sep 2012 13:29:27 +0000 (15:29 +0200)]
Disable ticket cache in the default configuration

11 years agoFix build error
Alan T. DeKok [Tue, 4 Sep 2012 13:12:52 +0000 (15:12 +0200)]
Fix build error

11 years agoFix typo in m4 macro
Alan T. DeKok [Tue, 4 Sep 2012 13:01:51 +0000 (15:01 +0200)]
Fix typo in m4 macro

11 years agoUpdate wiki link
Arran Cudbard-Bell [Wed, 5 Sep 2012 10:19:26 +0000 (12:19 +0200)]
Update wiki link

11 years agoAdd option to disable krb5 cache
Arran Cudbard-Bell [Tue, 28 Aug 2012 10:20:06 +0000 (11:20 +0100)]
Add option to disable krb5 cache

11 years agoRemove very old libltdl
Alan T. DeKok [Tue, 4 Sep 2012 12:27:01 +0000 (14:27 +0200)]
Remove very old libltdl

We now use dlopen() where possible.  If --with-system-libltdl
is passed to configure, we use the systems version of libltdl.

Shipping our own version of libltdl is no longer necessary.

11 years agoUpdate configure to not use our local libltdl
Alan T. DeKok [Tue, 4 Sep 2012 12:24:33 +0000 (14:24 +0200)]
Update configure to not use our local libltdl

11 years agoSwitch to using dlopen() instead of libltdl.
Alan T. DeKok [Tue, 4 Sep 2012 12:19:11 +0000 (14:19 +0200)]
Switch to using dlopen() instead of libltdl.

And there was much rejoicing.

This commit does little more than change WITHOUT_LIBLTDL for WITH_LIBLTDL.
Previously, you had to specifically request WITHOUT_LIBLTDL.
Now you have to specifically request LIBLTDL.

11 years agoDisable EAP-PWD by default.
Alan T. DeKok [Tue, 4 Sep 2012 12:13:51 +0000 (14:13 +0200)]
Disable EAP-PWD by default.

It's not available in all versions of OpenSSL

11 years agoTweak file read/parse errors, they're confusing when that's all you see
Arran Cudbard-Bell [Mon, 3 Sep 2012 11:00:38 +0000 (12:00 +0100)]
Tweak file read/parse errors, they're confusing when that's all you see

11 years agoAdd configuration check on restart/reload
Arran Cudbard-Bell [Fri, 31 Aug 2012 14:49:21 +0000 (15:49 +0100)]
Add configuration check on restart/reload
Add configtest option
Switch to lsb functions for start/stop

11 years agoDrop packets means drop packets
Alan T. DeKok [Fri, 31 Aug 2012 06:04:33 +0000 (08:04 +0200)]
Drop packets means drop packets

11 years agoAdd BT dictionary
Arran Cudbard-Bell [Thu, 30 Aug 2012 12:34:02 +0000 (13:34 +0100)]
Add BT dictionary

11 years agoUnique indexes for everybody!
Arran Cudbard-Bell [Wed, 29 Aug 2012 17:57:23 +0000 (18:57 +0100)]
Unique indexes for everybody!

11 years agoCheck for NULL secret on dynamic clients
Alan T. DeKok [Wed, 29 Aug 2012 16:40:03 +0000 (18:40 +0200)]
Check for NULL secret on dynamic clients