moonshot.git
13 years agoMerge branch 'master' into tlv-mic
Luke Howard [Fri, 18 Mar 2011 12:51:45 +0000 (23:51 +1100)]
Merge branch 'master' into tlv-mic

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 agoMerge branch 'master' into tlv-mic
Luke Howard [Fri, 18 Mar 2011 11:13:13 +0000 (22:13 +1100)]
Merge branch 'master' into tlv-mic

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

13 years agoMerge branch 'master' into tlv-mic
Luke Howard [Fri, 18 Mar 2011 06:57:55 +0000 (17:57 +1100)]
Merge branch 'master' into tlv-mic

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 agoMerge branch 'master' into tlv-mic
Luke Howard [Fri, 18 Mar 2011 06:45:18 +0000 (17:45 +1100)]
Merge branch 'master' into tlv-mic

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 agoMerge branch 'master' into tlv-mic
Luke Howard [Fri, 18 Mar 2011 06:16:28 +0000 (17:16 +1100)]
Merge branch 'master' into tlv-mic

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 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 agoenforce empty host portion of name for initiators
Luke Howard [Fri, 18 Mar 2011 05:56:16 +0000 (16:56 +1100)]
enforce empty host portion of name for initiators

13 years agoName parse fixes
Luke Howard [Fri, 18 Mar 2011 05:50:04 +0000 (16:50 +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.

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 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 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 agoMerge branch 'master' into tlv-mic
Luke Howard [Fri, 18 Mar 2011 00:00:11 +0000 (11:00 +1100)]
Merge branch 'master' into tlv-mic

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 agoMerge branch 'master' into tlv-mic
Luke Howard [Thu, 17 Mar 2011 23:33:56 +0000 (10:33 +1100)]
Merge branch 'master' into tlv-mic

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 agoMerge branch 'master' into tlv-mic
Luke Howard [Thu, 17 Mar 2011 23:13:40 +0000 (10:13 +1100)]
Merge branch 'master' into tlv-mic

13 years agotry to get cyrus sasl building again, weird builbot git error
Luke Howard [Thu, 17 Mar 2011 23:13:15 +0000 (10:13 +1100)]
try to get cyrus sasl building again, weird builbot git error

13 years agoMerge branch 'master' into tlv-mic
Luke Howard [Thu, 17 Mar 2011 23:05:07 +0000 (10:05 +1100)]
Merge branch 'master' into tlv-mic

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, 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 agosimplify importAnonymousName
Luke Howard [Thu, 17 Mar 2011 16:09:06 +0000 (03:09 +1100)]
simplify importAnonymousName

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 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 agorevert previous cyrus-sasl commit
Luke Howard [Thu, 17 Mar 2011 15:41:03 +0000 (02:41 +1100)]
revert previous cyrus-sasl commit

13 years agorevert previous cyrus-sasl change
Luke Howard [Thu, 17 Mar 2011 15:40:50 +0000 (02:40 +1100)]
revert previous cyrus-sasl change

13 years agocyrus: add server FQDN as realm if we don't have one
Luke Howard [Thu, 17 Mar 2011 15:32:26 +0000 (02:32 +1100)]
cyrus: add server FQDN as realm if we don't have one

13 years agoupdate cyrus for realm fix
Luke Howard [Thu, 17 Mar 2011 15:31:28 +0000 (02:31 +1100)]
update cyrus for realm fix

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 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 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 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 agoMerge branch 'master' into tlv-mic
Luke Howard [Thu, 17 Mar 2011 01:41:22 +0000 (12:41 +1100)]
Merge branch 'master' into tlv-mic

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 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 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 agoupdate cyrus sasl
Luke Howard [Wed, 16 Mar 2011 07:33:19 +0000 (18:33 +1100)]
update cyrus sasl

13 years agoupdate cyrus sasl
Luke Howard [Wed, 16 Mar 2011 07:33:00 +0000 (18:33 +1100)]
update cyrus sasl

13 years agoupdate cyrus-sasl
Luke Howard [Wed, 16 Mar 2011 07:15:01 +0000 (18:15 +1100)]
update cyrus-sasl

13 years agoupdate cyrus-sasl
Luke Howard [Wed, 16 Mar 2011 07:14:46 +0000 (18:14 +1100)]
update cyrus-sasl

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 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 agoMerge branch 'master' into tlv-mic
Luke Howard [Wed, 16 Mar 2011 06:16:04 +0000 (17:16 +1100)]
Merge branch 'master' into tlv-mic

Conflicts:
mech_eap/util.h
mech_eap/util_context.c

13 years agoupdate to current cyrus-sasl changes
Luke Howard [Wed, 16 Mar 2011 04:46:46 +0000 (15:46 +1100)]
update to current cyrus-sasl changes

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 agorefactor OID interning code
Luke Howard [Wed, 16 Mar 2011 04:14:52 +0000 (15:14 +1100)]
refactor OID interning code

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 -Werror to CFLAGS
Luke Howard [Tue, 15 Mar 2011 14:06:57 +0000 (01:06 +1100)]
Add -Werror to CFLAGS

13 years agosend GSS mutual auth flag from initiator to acceptor
Luke Howard [Tue, 15 Mar 2011 13:00:47 +0000 (00:00 +1100)]
send GSS mutual auth flag from initiator to acceptor

13 years agorefactor previous commit
Luke Howard [Tue, 15 Mar 2011 09:14:55 +0000 (20:14 +1100)]
refactor previous commit

13 years agoreturn mechanism used, if any, in gss_inquire_name
Luke Howard [Tue, 15 Mar 2011 09:12:25 +0000 (20:12 +1100)]
return mechanism used, if any, in gss_inquire_name

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 agoMerge branch 'master' into tlv-mic
Luke Howard [Tue, 15 Mar 2011 08:57:31 +0000 (19:57 +1100)]
Merge branch 'master' into tlv-mic

Conflicts:
mech_eap/util_name.c

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 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 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 agoadd a testing path for setting initiator credentials
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 agoMerge branch 'master' into tlv-mic
Luke Howard [Tue, 15 Mar 2011 06:18:03 +0000 (17:18 +1100)]
Merge branch 'master' into tlv-mic

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 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 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 agoMerge branch 'master' into tlv-mic
Luke Howard [Tue, 15 Mar 2011 03:05:07 +0000 (14:05 +1100)]
Merge branch 'master' into tlv-mic

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 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 agoupdate libeap unused parameter warnings
Luke Howard [Tue, 15 Mar 2011 02:40:18 +0000 (13:40 +1100)]
update libeap unused parameter warnings

13 years agoupdate libeap unused parameter warnings
Luke Howard [Tue, 15 Mar 2011 02:40:18 +0000 (13:40 +1100)]
update libeap unused parameter warnings

13 years agoremove an extraneous GSSEAP_UNUSED
Luke Howard [Tue, 15 Mar 2011 02:19:34 +0000 (13:19 +1100)]
remove an extraneous GSSEAP_UNUSED

13 years agoMerge branch 'master' into tlv-mic
Luke Howard [Tue, 15 Mar 2011 02:11:51 +0000 (13:11 +1100)]
Merge branch 'master' into tlv-mic

Conflicts:
mech_eap/accept_sec_context.c
mech_eap/init_sec_context.c
mech_eap/util_context.c

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 agoenable --enable-tls because we probably want it and libradsec fails without it.
Sam Hartman [Tue, 15 Mar 2011 01:05:41 +0000 (21:05 -0400)]
enable --enable-tls because we probably want it and libradsec fails without it.

13 years agoFollow API changes in libradsec.
Linus Nordberg [Wed, 9 Mar 2011 23:39:50 +0000 (00:39 +0100)]
Follow API changes in libradsec.

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 agoput some state machine plumbing in acceptor to allow us to use iakerb
Luke Howard [Tue, 15 Mar 2011 00:57:12 +0000 (11:57 +1100)]
put some state machine plumbing in acceptor to allow us to use iakerb