mech_eap.orig
13 years agoadd a testing path for setting initiator credentials meeting/moonshot2
Luke Howard [Tue, 15 Mar 2011 07:56:27 +0000 (18:56 +1100)]
add a testing path for setting initiator credentials
requires GSSEAP_DEBUG to be defined, set environment variable
GSSEAP_CREDS to password

13 years agocorrect buffer length check when importing name
Luke Howard [Tue, 15 Mar 2011 08:55:08 +0000 (19:55 +1100)]
correct buffer length check when importing name

13 years agopass glue context to defrostAttrContext
Luke Howard [Tue, 15 Mar 2011 08:25:49 +0000 (19:25 +1100)]
pass glue context to defrostAttrContext

13 years agoDefine AC_GNU_SOURCE to avoid Linux compile warnings
Luke Howard [Tue, 15 Mar 2011 06:17:49 +0000 (17:17 +1100)]
Define AC_GNU_SOURCE to avoid Linux compile warnings

13 years agoplug leak in previous commit
Luke Howard [Tue, 15 Mar 2011 06:14:49 +0000 (17:14 +1100)]
plug leak in previous commit

13 years agoEnsure credentials are initialized before calling initBegin()
Luke Howard [Tue, 15 Mar 2011 06:12:14 +0000 (17:12 +1100)]
Ensure credentials are initialized before calling initBegin()

13 years agoinclude stdarg.h for vasprintf
Luke Howard [Tue, 15 Mar 2011 03:04:21 +0000 (14:04 +1100)]
include stdarg.h for vasprintf

13 years agofix unused parameter warning when building without reauth
Luke Howard [Tue, 15 Mar 2011 03:00:54 +0000 (14:00 +1100)]
fix unused parameter warning when building without reauth

13 years agoDon't specify -g -O in Makefile.am, configure does it for us
Luke Howard [Tue, 15 Mar 2011 02:05:32 +0000 (13:05 +1100)]
Don't specify -g -O in Makefile.am, configure does it for us

13 years agoMerge branch 'tlv'
Luke Howard [Tue, 15 Mar 2011 02:00:26 +0000 (13:00 +1100)]
Merge branch 'tlv'

13 years agocleanup unused parameter warnings
Luke Howard [Tue, 15 Mar 2011 01:57:57 +0000 (12:57 +1100)]
cleanup unused parameter warnings

13 years agoMerge branch 'master' into tlv
Luke Howard [Tue, 15 Mar 2011 01:19:11 +0000 (12:19 +1100)]
Merge branch 'master' into tlv

Conflicts:
mech_eap/README
mech_eap/accept_sec_context.c

13 years agoremove -fno-strict-aliasing and -Wunused-parameter
Luke Howard [Tue, 15 Mar 2011 01:14:04 +0000 (12:14 +1100)]
remove -fno-strict-aliasing and -Wunused-parameter

13 years agodon't leak RADIUS response packet
Luke Howard [Sun, 13 Mar 2011 22:46:16 +0000 (09:46 +1100)]
don't leak RADIUS response packet

13 years agoremove trailing space
Luke Howard [Sat, 12 Mar 2011 07:58:34 +0000 (18:58 +1100)]
remove trailing space

13 years agoremove trailing space
Luke Howard [Sat, 12 Mar 2011 07:58:34 +0000 (18:58 +1100)]
remove trailing space

13 years agoHEADS UP: move dictionary file to $prefix/etc/raddb/dictionary
Luke Howard [Sat, 12 Mar 2011 03:50:46 +0000 (14:50 +1100)]
HEADS UP: move dictionary file to $prefix/etc/raddb/dictionary
instead of $prefix/share/freeradius/dictionary on advice from
Alan DeKok

13 years agodon't free RADIUS context before packet
Luke Howard [Sat, 12 Mar 2011 07:46:13 +0000 (18:46 +1100)]
don't free RADIUS context before packet

13 years agodon't free RADIUS context before packet
Luke Howard [Sat, 12 Mar 2011 07:46:13 +0000 (18:46 +1100)]
don't free RADIUS context before packet

13 years agoDon't promote bindings unwrap failure to GSS_S_BAD_BINDINGS
Luke Howard [Sat, 12 Mar 2011 04:59:44 +0000 (15:59 +1100)]
Don't promote bindings unwrap failure to GSS_S_BAD_BINDINGS

13 years agoMerge branch 'master' into tlv
Luke Howard [Sat, 12 Mar 2011 04:19:25 +0000 (15:19 +1100)]
Merge branch 'master' into tlv

13 years agocleanup commit 87b8bd5ef53b7813f138949b6cd2a1712f14eef5
Luke Howard [Sat, 12 Mar 2011 04:18:50 +0000 (15:18 +1100)]
cleanup commit 87b8bd5ef53b7813f138949b6cd2a1712f14eef5

13 years agoHEADS UP: move dictionary file to $prefix/etc/raddb/dictionary
Luke Howard [Sat, 12 Mar 2011 03:50:46 +0000 (14:50 +1100)]
HEADS UP: move dictionary file to $prefix/etc/raddb/dictionary
instead of $prefix/share/freeradius/dictionary on advice from
Alan DeKok

13 years agoCleanup builds without reauth
Luke Howard [Sat, 12 Mar 2011 03:44:35 +0000 (14:44 +1100)]
Cleanup builds without reauth

13 years agoutil_radius: radius only permits 253 octets
Sam Hartman [Fri, 11 Mar 2011 19:53:22 +0000 (14:53 -0500)]
util_radius: radius only permits 253 octets

There is an off by one error because MAX_STR_LEN from freeradius has a pad byte.
Only store 253 bytes of AVP at a time.

13 years agoFix macro errors in tlv
Sam Hartman [Fri, 11 Mar 2011 02:35:49 +0000 (21:35 -0500)]
Fix macro errors in tlv

util.h: state cannot be a macro argument and a referenced structure member

init_sec_context.c: do not reference Kerberos context if reauth not enabled

13 years agofallback to paircreate() if dictionary lookup fails
Luke Howard [Thu, 10 Mar 2011 06:34:04 +0000 (17:34 +1100)]
fallback to paircreate() if dictionary lookup fails

13 years agoremove stuff about RADIUS attribute release, it's wrong
Luke Howard [Thu, 10 Mar 2011 06:23:59 +0000 (17:23 +1100)]
remove stuff about RADIUS attribute release, it's wrong

13 years agouse directional GSS token types
Luke Howard [Thu, 10 Mar 2011 05:01:02 +0000 (16:01 +1100)]
use directional GSS token types

13 years agomore notes in README
Luke Howard [Thu, 10 Mar 2011 02:07:46 +0000 (13:07 +1100)]
more notes in README

13 years agofuture-proof: allow multiple round trip Kerberos exchanges at acceptor
Luke Howard [Thu, 10 Mar 2011 01:36:36 +0000 (12:36 +1100)]
future-proof: allow multiple round trip Kerberos exchanges at acceptor

13 years agoremove SM_FLAG_RESTART
Luke Howard [Wed, 9 Mar 2011 15:46:02 +0000 (02:46 +1100)]
remove SM_FLAG_RESTART

13 years agoremove SM_FLAG_STOP_EVAL, unused
Luke Howard [Wed, 9 Mar 2011 14:32:25 +0000 (01:32 +1100)]
remove SM_FLAG_STOP_EVAL, unused

13 years agoformatting cleanup
Luke Howard [Wed, 9 Mar 2011 14:30:37 +0000 (01:30 +1100)]
formatting cleanup

13 years agoadd an extra assert
Luke Howard [Wed, 9 Mar 2011 14:30:09 +0000 (01:30 +1100)]
add an extra assert

13 years agoif reauth token marked critical, don't allow EAP fallback
Luke Howard [Wed, 9 Mar 2011 14:27:48 +0000 (01:27 +1100)]
if reauth token marked critical, don't allow EAP fallback

13 years agoupdate README
Luke Howard [Wed, 9 Mar 2011 14:24:32 +0000 (01:24 +1100)]
update README

13 years agoadd some more assertion checks
Luke Howard [Wed, 9 Mar 2011 14:22:09 +0000 (01:22 +1100)]
add some more assertion checks

13 years agodelegate output token criticality to handler
Luke Howard [Wed, 9 Mar 2011 14:12:25 +0000 (01:12 +1100)]
delegate output token criticality to handler

13 years agoif client fails reauth, allow it to retry EAP
Luke Howard [Wed, 9 Mar 2011 13:53:53 +0000 (00:53 +1100)]
if client fails reauth, allow it to retry EAP

13 years agodon't leak Kerberos context if reauth not supported
Luke Howard [Wed, 9 Mar 2011 13:53:44 +0000 (00:53 +1100)]
don't leak Kerberos context if reauth not supported

13 years agocleanup formatting
Luke Howard [Wed, 9 Mar 2011 13:52:28 +0000 (00:52 +1100)]
cleanup formatting

13 years agoremove __attribute__((__unused__)) for now until we have a portable solution
Luke Howard [Wed, 9 Mar 2011 13:43:25 +0000 (00:43 +1100)]
remove __attribute__((__unused__)) for now until we have a portable solution

13 years agoAlways request mutual on reauth to even out number of round trips
Luke Howard [Wed, 9 Mar 2011 13:39:47 +0000 (00:39 +1100)]
Always request mutual on reauth to even out number of round trips

13 years agoimplement preliminary acceptor name exchange
Luke Howard [Wed, 9 Mar 2011 05:34:55 +0000 (16:34 +1100)]
implement preliminary acceptor name exchange

13 years agoAllow for graceful restart if acceptor ignores reauth token
Luke Howard [Wed, 9 Mar 2011 04:31:48 +0000 (15:31 +1100)]
Allow for graceful restart if acceptor ignores reauth token

13 years agouse macros for state accessors
Luke Howard [Wed, 9 Mar 2011 02:46:49 +0000 (13:46 +1100)]
use macros for state accessors

13 years agoadd some comments
Luke Howard [Wed, 9 Mar 2011 00:53:19 +0000 (11:53 +1100)]
add some comments

13 years agoadd some explanations to tlv code
Luke Howard [Tue, 8 Mar 2011 13:52:15 +0000 (00:52 +1100)]
add some explanations to tlv code

13 years agocleanup
Luke Howard [Tue, 8 Mar 2011 13:32:43 +0000 (00:32 +1100)]
cleanup

13 years agoforce load of global dictionary in RADIUS attr provider initialisation
Luke Howard [Tue, 8 Mar 2011 13:29:40 +0000 (00:29 +1100)]
force load of global dictionary in RADIUS attr provider initialisation

13 years agocleanup
Luke Howard [Tue, 8 Mar 2011 13:17:24 +0000 (00:17 +1100)]
cleanup

13 years agocheck for non-NULL before calling pairbasicfree()
Luke Howard [Tue, 8 Mar 2011 13:17:14 +0000 (00:17 +1100)]
check for non-NULL before calling pairbasicfree()

13 years agoadd test vendor info acceptor
Luke Howard [Tue, 8 Mar 2011 13:13:12 +0000 (00:13 +1100)]
add test vendor info acceptor

13 years agodon't fail hard if reauth cred generation fails
Luke Howard [Tue, 8 Mar 2011 13:04:28 +0000 (00:04 +1100)]
don't fail hard if reauth cred generation fails

13 years agofix some error token nits
Luke Howard [Tue, 8 Mar 2011 12:53:13 +0000 (23:53 +1100)]
fix some error token nits

13 years agomore TLV cleanups
Luke Howard [Tue, 8 Mar 2011 12:36:11 +0000 (23:36 +1100)]
more TLV cleanups

13 years agofor state transitions through gssEapSmTransition
Luke Howard [Tue, 8 Mar 2011 07:11:46 +0000 (18:11 +1100)]
for state transitions through gssEapSmTransition

13 years agomore cleanup on TLV
Luke Howard [Tue, 8 Mar 2011 07:05:32 +0000 (18:05 +1100)]
more cleanup on TLV

13 years agocleanup TLV code
Luke Howard [Tue, 8 Mar 2011 07:02:55 +0000 (18:02 +1100)]
cleanup TLV code

13 years agocleanup, refactor TLV code
Luke Howard [Tue, 8 Mar 2011 06:41:24 +0000 (17:41 +1100)]
cleanup, refactor TLV code

13 years agoget GSS-EAP working again with TLV
Luke Howard [Tue, 8 Mar 2011 06:24:09 +0000 (17:24 +1100)]
get GSS-EAP working again with TLV

13 years agomake state transition explicit rather than side-effect of GSS status code
Luke Howard [Tue, 8 Mar 2011 02:50:46 +0000 (13:50 +1100)]
make state transition explicit rather than side-effect of GSS status code

13 years agoinitial TLV refactor
Luke Howard [Tue, 8 Mar 2011 02:32:56 +0000 (13:32 +1100)]
initial TLV refactor

13 years agoTry building with eap from source tree
Sam Hartman [Tue, 8 Mar 2011 02:35:46 +0000 (21:35 -0500)]
Try building with eap from source tree

13 years agomark *_err.c as built sources
Sam Hartman [Tue, 8 Mar 2011 02:08:46 +0000 (21:08 -0500)]
mark *_err.c as built sources

13 years agoLook for mech_eap dependencies in
Sam Hartman [Tue, 8 Mar 2011 01:46:45 +0000 (20:46 -0500)]
Look for mech_eap dependencies in

13 years agoalways sent User-Name and GSS-* attributes
Luke Howard [Fri, 4 Mar 2011 11:38:24 +0000 (22:38 +1100)]
always sent User-Name and GSS-* attributes

13 years agoupdate for latest radsec
Luke Howard [Fri, 4 Mar 2011 11:38:04 +0000 (22:38 +1100)]
update for latest radsec

13 years agoCleanup readme
Luke Howard [Thu, 3 Mar 2011 01:25:22 +0000 (12:25 +1100)]
Cleanup readme

13 years agoSent @REALM in EAP identity response
Luke Howard [Wed, 2 Mar 2011 05:46:08 +0000 (16:46 +1100)]
Sent @REALM in EAP identity response

13 years agoSome additional README notes
Luke Howard [Wed, 2 Mar 2011 02:43:16 +0000 (13:43 +1100)]
Some additional README notes

13 years agoUse anonymous name if we have not initiator identity
Luke Howard [Wed, 2 Mar 2011 02:42:34 +0000 (13:42 +1100)]
Use anonymous name if we have not initiator identity

13 years agoUse libeap API for constructing EAP identity request packet
Luke Howard [Tue, 1 Mar 2011 23:59:39 +0000 (10:59 +1100)]
Use libeap API for constructing EAP identity request packet

13 years agoForward EAP identity response as RADIUS user name
Luke Howard [Tue, 1 Mar 2011 23:53:18 +0000 (10:53 +1100)]
Forward EAP identity response as RADIUS user name

13 years agoAdd dictionary file with UKERNA attributes
Luke Howard [Tue, 1 Mar 2011 23:31:54 +0000 (10:31 +1100)]
Add dictionary file with UKERNA attributes

13 years agoDon't leak packet if request object creation fails
Luke Howard [Mon, 28 Feb 2011 23:16:24 +0000 (10:16 +1100)]
Don't leak packet if request object creation fails

13 years agoMerge branch 'master' of ssh://moonshot.suchdamage.org:822/srv/git/moonshot
Luke Howard [Mon, 28 Feb 2011 23:16:07 +0000 (10:16 +1100)]
Merge branch 'master' of ssh://moonshot.suchdamage.org:822/srv/git/moonshot

Conflicts:
mech_eap/accept_sec_context.c

13 years agoFix a couple of crashers in case of invalid radsec configuration
Luke Howard [Mon, 28 Feb 2011 22:54:45 +0000 (09:54 +1100)]
Fix a couple of crashers in case of invalid radsec configuration

13 years agoUpdate for libradsec changes
Luke Howard [Mon, 28 Feb 2011 22:48:15 +0000 (09:48 +1100)]
Update for libradsec changes

13 years agodisplay_status: fix logic error
Sam Hartman [Mon, 28 Feb 2011 22:04:12 +0000 (17:04 -0500)]
display_status: fix logic error

transposition of next and p

13 years agoaccept_sec_context: only destroy request if it is populated
Sam Hartman [Mon, 28 Feb 2011 21:37:24 +0000 (16:37 -0500)]
accept_sec_context: only destroy request if it is populated

13 years agoFix com_err build targets
Sam Hartman [Mon, 28 Feb 2011 16:22:44 +0000 (11:22 -0500)]
Fix com_err build targets

Make didn't have rules for building gsseap_err.c or radsec_err.c.

13 years agoDon't depend on log4shib
Sam Hartman [Sat, 26 Feb 2011 21:24:27 +0000 (16:24 -0500)]
Don't depend on log4shib

Shibboleth can be built with log4shib or log4cpp. We don't need to
make an explicit dependency; shared library search will do that for
us on most common platforms and I believe all we care about.

13 years agoUpdate copyrights for 2011
Luke Howard [Sat, 22 Jan 2011 00:18:18 +0000 (11:18 +1100)]
Update copyrights for 2011

13 years agoNote that /etc/gss/mech is not implementation-specific
Luke Howard [Sat, 22 Jan 2011 00:10:12 +0000 (11:10 +1100)]
Note that /etc/gss/mech is not implementation-specific

13 years agoupdate for libradsec API change
Luke Howard [Fri, 21 Jan 2011 23:41:46 +0000 (10:41 +1100)]
update for libradsec API change

rs_packet_create_acc_request is now rs_packet_create_auth_request

13 years agofix typo, update
Luke Howard [Sun, 9 Jan 2011 08:58:12 +0000 (19:58 +1100)]
fix typo, update

13 years agoRemove some Heimdal compatibility macros, now have patches for Heimdal
Luke Howard [Mon, 3 Jan 2011 11:55:01 +0000 (22:55 +1100)]
Remove some Heimdal compatibility macros, now have patches for Heimdal

13 years agoremove gss_any_t definition, will patch this into Heimdal
Luke Howard [Mon, 3 Jan 2011 06:16:44 +0000 (17:16 +1100)]
remove gss_any_t definition, will patch this into Heimdal

13 years agoremove @TARGET_LIBS@, they don't exist
Luke Howard [Mon, 3 Jan 2011 01:11:01 +0000 (12:11 +1100)]
remove @TARGET_LIBS@, they don't exist

13 years agoreorder shibresolver/shibsp link
Luke Howard [Mon, 3 Jan 2011 00:55:44 +0000 (11:55 +1100)]
reorder shibresolver/shibsp link

13 years agoCleanup
Luke Howard [Sun, 2 Jan 2011 09:43:10 +0000 (20:43 +1100)]
Cleanup

13 years agocorrectly construct KRB-CRED for Heimdal reauth
Luke Howard [Sun, 2 Jan 2011 09:20:07 +0000 (20:20 +1100)]
correctly construct KRB-CRED for Heimdal reauth

13 years agoMerge branch 'master' of ssh://moonshot.suchdamage.org:822/srv/git/moonshot
Luke Howard [Sun, 2 Jan 2011 08:57:19 +0000 (19:57 +1100)]
Merge branch 'master' of ssh://moonshot.suchdamage.org:822/srv/git/moonshot
Reauth fixes

Conflicts:
shibboleth/opensaml2
shibboleth/sp

13 years agoGet default credentials for acceptor context too
Luke Howard [Sun, 2 Jan 2011 07:45:54 +0000 (18:45 +1100)]
Get default credentials for acceptor context too

13 years agoAllow zero length but non-NULL tokens on init_sec_context
Luke Howard [Sun, 2 Jan 2011 07:33:38 +0000 (18:33 +1100)]
Allow zero length but non-NULL tokens on init_sec_context

13 years agoAdd GSSEAP_MISSING_PASSWORD minor status code
Luke Howard [Sun, 2 Jan 2011 04:25:55 +0000 (15:25 +1100)]
Add GSSEAP_MISSING_PASSWORD minor status code

13 years agoupdate for current EAP draft
Luke Howard [Sat, 1 Jan 2011 12:39:37 +0000 (23:39 +1100)]
update for current EAP draft

13 years agoupdate Lucid code for Heimdal
Luke Howard [Sat, 1 Jan 2011 12:38:10 +0000 (23:38 +1100)]
update Lucid code for Heimdal