mech_eap.orig
13 years agocomment out dumping code json-name
Luke Howard [Mon, 28 Mar 2011 06:18:22 +0000 (17:18 +1100)]
comment out dumping code

13 years agoDDF bridging not entirely toll free
Luke Howard [Mon, 28 Mar 2011 06:15:15 +0000 (17:15 +1100)]
DDF bridging not entirely toll free

13 years agocleanup
Luke Howard [Mon, 28 Mar 2011 06:14:15 +0000 (17:14 +1100)]
cleanup

13 years agocleanup
Luke Howard [Mon, 28 Mar 2011 06:12:51 +0000 (17:12 +1100)]
cleanup

13 years agoadd JSON utility class
Luke Howard [Mon, 28 Mar 2011 06:07:43 +0000 (17:07 +1100)]
add JSON utility class

13 years agoremove ROKEN_LIB_FUNCTION
Luke Howard [Sun, 27 Mar 2011 23:51:43 +0000 (10:51 +1100)]
remove ROKEN_LIB_FUNCTION

13 years agouse JSON instead of DDF marshalling
Luke Howard [Sun, 27 Mar 2011 15:21:27 +0000 (02:21 +1100)]
use JSON instead of DDF marshalling
use our own base64 routines

13 years agoin progress use DDF to serialise names
Luke Howard [Sat, 26 Mar 2011 15:16:40 +0000 (02:16 +1100)]
in progress use DDF to serialise names

get DDF marshalling working

remove debugging statement

13 years agomake attribute prefix a class method
Luke Howard [Sun, 27 Mar 2011 22:47:48 +0000 (09:47 +1100)]
make attribute prefix a class method

13 years agocheck provider enabled before non-marshalled initializing
Luke Howard [Sun, 27 Mar 2011 01:52:43 +0000 (12:52 +1100)]
check provider enabled before non-marshalled initializing

13 years agofix missing return statement in importing attributes
Luke Howard [Sat, 26 Mar 2011 15:17:39 +0000 (02:17 +1100)]
fix missing return statement in importing attributes

13 years agocleanup, fix uninitialized variable warning
Luke Howard [Sat, 26 Mar 2011 03:53:57 +0000 (14:53 +1100)]
cleanup, fix uninitialized variable warning

13 years agocomments on attribute context import
Luke Howard [Sat, 26 Mar 2011 03:27:51 +0000 (14:27 +1100)]
comments on attribute context import

13 years agoInclude locally resolved attributes in composite name token
Luke Howard [Sat, 26 Mar 2011 03:19:07 +0000 (14:19 +1100)]
Include locally resolved attributes in composite name token

13 years agodon't use C++ comments
Luke Howard [Sat, 26 Mar 2011 00:01:07 +0000 (11:01 +1100)]
don't use C++ comments

13 years agoStop setting appID to the acceptor name, adjust handling of resolver object.
Scott Cantor [Fri, 25 Mar 2011 13:50:38 +0000 (14:50 +0100)]
Stop setting appID to the acceptor name, adjust handling of resolver object.

13 years agoUse serialized values out of resolver instead of raw string values.
Scott Cantor [Fri, 25 Mar 2011 14:06:14 +0000 (15:06 +0100)]
Use serialized values out of resolver instead of raw string values.

13 years agoMerge branch 'master' of ssh://moonshot.suchdamage.org:822/srv/git/moonshot
Luke Howard [Fri, 25 Mar 2011 12:32:15 +0000 (23:32 +1100)]
Merge branch 'master' of ssh://moonshot.suchdamage.org:822/srv/git/moonshot

13 years agoTreat missing attribute name format as UNSPECIFIED
Luke Howard [Fri, 25 Mar 2011 12:31:20 +0000 (23:31 +1100)]
Treat missing attribute name format as UNSPECIFIED

Patch from Scott Cantor

13 years agoupdate for latest libradsec
Luke Howard [Mon, 21 Mar 2011 13:17:53 +0000 (00:17 +1100)]
update for latest libradsec

13 years agotrigger build by updating git
Luke Howard [Mon, 21 Mar 2011 09:15:47 +0000 (20:15 +1100)]
trigger build by updating git

13 years agoHeimdal cannot deal with NULL realm, so make zero-length string
Luke Howard [Mon, 21 Mar 2011 07:15:51 +0000 (18:15 +1100)]
Heimdal cannot deal with NULL realm, so make zero-length string

13 years agofix pointer alias warning surfaced on FreeBSD
Luke Howard [Mon, 21 Mar 2011 06:33:47 +0000 (17:33 +1100)]
fix pointer alias warning surfaced on FreeBSD

13 years agodefine gss_any_t for Heimdal, because it doesn't support it
Luke Howard [Sun, 20 Mar 2011 10:05:28 +0000 (21:05 +1100)]
define gss_any_t for Heimdal, because it doesn't support it

13 years agorelease defaultIdentity/defaultCreds on error
Luke Howard [Sat, 19 Mar 2011 14:31:31 +0000 (01:31 +1100)]
release defaultIdentity/defaultCreds on error

13 years agocorrect pointer error in gsseap_set_cred_flag example
Luke Howard [Fri, 18 Mar 2011 13:33:54 +0000 (00:33 +1100)]
correct pointer error in gsseap_set_cred_flag example

13 years agofix regression where stored creds would be required
Luke Howard [Fri, 18 Mar 2011 13:20:42 +0000 (00:20 +1100)]
fix regression where stored creds would be required

13 years agoUse stored identity if cached identity matches
Luke Howard [Fri, 18 Mar 2011 13:13:18 +0000 (00:13 +1100)]
Use stored identity if cached identity matches

13 years agodon't leak defaultCreds
Luke Howard [Fri, 18 Mar 2011 12:59:24 +0000 (23:59 +1100)]
don't leak defaultCreds

13 years agoSupport for reading default identity/creds from file
Luke Howard [Fri, 18 Mar 2011 12:46:31 +0000 (23:46 +1100)]
Support for reading default identity/creds from file

Heads up: it's now possible to store your default identity and
credentials in a file in your home directory, called .gss_eap_id.
See README for details. It's also valid to just store the identity
in this file without credentials.

13 years agounbreak Heimdal build
Luke Howard [Fri, 18 Mar 2011 11:12:52 +0000 (22:12 +1100)]
unbreak Heimdal build

13 years agodon't append "@" to login name for default identity
Luke Howard [Fri, 18 Mar 2011 06:57:18 +0000 (17:57 +1100)]
don't append "@" to login name for default identity

13 years agobetter documentation on default realm
Luke Howard [Fri, 18 Mar 2011 06:44:50 +0000 (17:44 +1100)]
better documentation on default realm

13 years agoderive anonymous identity directly from realm
Luke Howard [Fri, 18 Mar 2011 06:42:11 +0000 (17:42 +1100)]
derive anonymous identity directly from realm

this avoids any escaping errors

13 years agoName parse fixes
Luke Howard [Fri, 18 Mar 2011 06:16:04 +0000 (17:16 +1100)]
Name parse fixes

Distinguish between NT_EAP_NAME and NT_USER_NAME; latter will append
default EAP realm if present, former won't. Neither will append default
Kerberos realm.

Ensure that exported names conform to draft-ietf-abfab-gss-eap-01 by
not including realm component if absent.

Conflicts:

mech_eap/util_name.c

13 years agoDon't include @ symbol in realmless names, to conform with draft-ietf-abfab-gss-eap
Luke Howard [Fri, 18 Mar 2011 05:36:26 +0000 (16:36 +1100)]
Don't include @ symbol in realmless names, to conform with draft-ietf-abfab-gss-eap

13 years agoRevert "Don't include @ symbol in realmless names, to conform with draft-ietf-abfab...
Luke Howard [Fri, 18 Mar 2011 06:13:37 +0000 (17:13 +1100)]
Revert "Don't include @ symbol in realmless names, to conform with draft-ietf-abfab-gss-eap"

This reverts commit 6334d087058e30c9fb8686fd307b9c84323f2a4d.

13 years agodon't fail reauth if there is any keytab error
Luke Howard [Fri, 18 Mar 2011 06:09:21 +0000 (17:09 +1100)]
don't fail reauth if there is any keytab error

13 years agoDon't include @ symbol in realmless names, to conform with draft-ietf-abfab-gss-eap
Luke Howard [Fri, 18 Mar 2011 05:36:26 +0000 (16:36 +1100)]
Don't include @ symbol in realmless names, to conform with draft-ietf-abfab-gss-eap

13 years agocleanup previous commit
Luke Howard [Fri, 18 Mar 2011 05:18:24 +0000 (16:18 +1100)]
cleanup previous commit

13 years agoGo to great lengths to avoid accidentally appending the default Kerberos realm
Luke Howard [Fri, 18 Mar 2011 05:16:20 +0000 (16:16 +1100)]
Go to great lengths to avoid accidentally appending the default Kerberos realm

13 years agodon't use krb5_sname_to_principal
Luke Howard [Fri, 18 Mar 2011 00:00:01 +0000 (11:00 +1100)]
don't use krb5_sname_to_principal

13 years agosupport import of GSS_KRB5_NT_PRINCIPAL_NAME
Luke Howard [Thu, 17 Mar 2011 23:53:49 +0000 (10:53 +1100)]
support import of GSS_KRB5_NT_PRINCIPAL_NAME

13 years agomake inputs to gssEapImportName const
Luke Howard [Thu, 17 Mar 2011 23:53:36 +0000 (10:53 +1100)]
make inputs to gssEapImportName const

13 years agos/GSS_EAP_NT_PRINCIPAL_NAME/GSS_EAP_NT_EAP_NAME
Luke Howard [Thu, 17 Mar 2011 23:49:06 +0000 (10:49 +1100)]
s/GSS_EAP_NT_PRINCIPAL_NAME/GSS_EAP_NT_EAP_NAME

13 years agodocument default_realm appdefault
Luke Howard [Thu, 17 Mar 2011 23:33:38 +0000 (10:33 +1100)]
document default_realm appdefault

13 years agoFor now, configure default realm using eap_gss appdefault
Luke Howard [Thu, 17 Mar 2011 22:56:32 +0000 (09:56 +1100)]
For now, configure default realm using eap_gss appdefault

13 years agofor now, allow default GSS EAP realm to be set
Luke Howard [Thu, 17 Mar 2011 15:50:45 +0000 (02:50 +1100)]
for now, allow default GSS EAP realm to be set
with GSSEAP_DEFAULT_REALM environment variable

13 years agorequire a realm in EAP names; don't add default Kerberos realm
Luke Howard [Thu, 17 Mar 2011 14:40:21 +0000 (01:40 +1100)]
require a realm in EAP names; don't add default Kerberos realm

13 years agostub implementation of gss_userok SPI
Luke Howard [Thu, 17 Mar 2011 14:20:04 +0000 (01:20 +1100)]
stub implementation of gss_userok SPI

The MIT mechglue will fallback to comparing names in the absence
of a mechanism implementation of gss_userok. To avoid this and
force the mechglue to use attribute-based authorization, always
return access denied in gss_userok.

13 years agoimplement gss_inquire_mechs_for_name properly, although mechglue does
Luke Howard [Thu, 17 Mar 2011 10:34:22 +0000 (21:34 +1100)]
implement gss_inquire_mechs_for_name properly, although mechglue does
not appear to use it

13 years agoclarify use of enctype-less OID
Luke Howard [Thu, 17 Mar 2011 01:39:30 +0000 (12:39 +1100)]
clarify use of enctype-less OID

13 years agocleanup gssEapCanonicalizeOid, remove testing assert
Luke Howard [Wed, 16 Mar 2011 14:29:59 +0000 (01:29 +1100)]
cleanup gssEapCanonicalizeOid, remove testing assert

13 years agodon't enable GSSEAP_CREDS hack unless using default identity
Luke Howard [Wed, 16 Mar 2011 07:13:16 +0000 (18:13 +1100)]
don't enable GSSEAP_CREDS hack unless using default identity

13 years agocall gssEapCanonicalizeOid, gssEapInternalizeOid is no longer public
Luke Howard [Wed, 16 Mar 2011 04:39:12 +0000 (15:39 +1100)]
call gssEapCanonicalizeOid, gssEapInternalizeOid is no longer public

13 years agorefactor OID interning code
Luke Howard [Wed, 16 Mar 2011 04:14:52 +0000 (15:14 +1100)]
refactor OID interning code

13 years agoFix for OpenSSH interoperability
Luke Howard [Tue, 15 Mar 2011 08:48:40 +0000 (19:48 +1100)]
Fix for OpenSSH interoperability

OpenSSH requires the exported name token to include the actual OID
of the selected mechanism. We were using an OID that identified a
family of GSS EAP mechanisms. We now use the concrete OID where
possible.

13 years agoRevert "Fix for OpenSSH interoperability"
Luke Howard [Wed, 16 Mar 2011 04:19:09 +0000 (15:19 +1100)]
Revert "Fix for OpenSSH interoperability"

This reverts commit 3dcac77927965ec56eb76d865b44a8b2bee4594b.

13 years agoFix for OpenSSH interoperability
Luke Howard [Wed, 16 Mar 2011 04:18:32 +0000 (15:18 +1100)]
Fix for OpenSSH interoperability

OpenSSH requires the exported name token to include the actual OID
of the selected mechanism. We were using an OID that identified a
family of GSS EAP mechanisms. We now use the concrete OID where
possible.

Conflicts:

mech_eap/util_name.c

13 years agoAdd -Werror to CFLAGS
Luke Howard [Tue, 15 Mar 2011 14:06:57 +0000 (01:06 +1100)]
Add -Werror to CFLAGS

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