moonshot.git
13 years agoutil_saml: correctly account for gss lengths vm-integration
moonshot [Mon, 4 Apr 2011 18:48:08 +0000 (14:48 -0400)]
util_saml: correctly account for gss lengths

The version of XMLString::transcode that takes a length is an output
parameter length not an input length. It was reading past end of
buffer on the input and was producing garbage output. That version is
deprecated; use the version that allocates.  Copy the GSS attribute
names and values so we can properly null terminate.

13 years agohack: force mutual to be true
moonshot [Mon, 4 Apr 2011 18:47:27 +0000 (14:47 -0400)]
hack: force mutual to be true

Force mutual to be true for the vm-integ brach so ssh works

13 years agoHack: force complete to be true
moonshot [Mon, 4 Apr 2011 18:46:29 +0000 (14:46 -0400)]
Hack: force complete to be true

The version of the mech glue we're using requires complete for gss_userok.
That's a bug but it is easier to work around that here than to fix in the mechglue

13 years agoVM wants the debian openssh
Sam Hartman [Sun, 27 Mar 2011 10:04:12 +0000 (06:04 -0400)]
VM wants the debian openssh

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 agoUpdate resolver
Sam Hartman [Fri, 25 Mar 2011 13:49:17 +0000 (09:49 -0400)]
Update resolver

13 years agoFix typo
Sam Hartman [Fri, 25 Mar 2011 12:51:54 +0000 (08:51 -0400)]
Fix typo

13 years agos:-R:-rpath: for mac builds
Sam Hartman [Fri, 25 Mar 2011 12:44:03 +0000 (08:44 -0400)]
s:-R:-rpath: for mac builds

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 to a new set of shibboleth dependencies
Sam Hartman [Fri, 25 Mar 2011 11:14:58 +0000 (07:14 -0400)]
Update to a new set of shibboleth dependencies

13 years agoupdate for draft-josefsson-gss-capsulate-01
Luke Howard [Tue, 22 Mar 2011 01:45:02 +0000 (12:45 +1100)]
update for draft-josefsson-gss-capsulate-01

13 years agoRemove freeradius because it doesn't build and is not what you want.
Sam Hartman [Mon, 21 Mar 2011 13:51:46 +0000 (09:51 -0400)]
Remove freeradius because it doesn't build and is not what you want.

13 years agoupdate libradsec to a177887c
Luke Howard [Mon, 21 Mar 2011 13:38:43 +0000 (00:38 +1100)]
update libradsec to a177887c

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 agoadd openssh
Luke Howard [Mon, 21 Mar 2011 09:11:41 +0000 (20:11 +1100)]
add openssh

13 years agoRevert "disable openssh submodule for now"
Luke Howard [Mon, 21 Mar 2011 08:52:37 +0000 (19:52 +1100)]
Revert "disable openssh submodule for now"

This reverts commit 5de8b91214e85ea0dcedc2441171206f36603462.

13 years agodisable openssh submodule for now
Luke Howard [Mon, 21 Mar 2011 08:48:55 +0000 (19:48 +1100)]
disable openssh submodule for now

13 years agouse OpenSSH with GSS generality fixes
Luke Howard [Mon, 21 Mar 2011 08:19:54 +0000 (19:19 +1100)]
use OpenSSH with GSS generality fixes

13 years agouse absolute path for openssh submodule
Luke Howard [Mon, 21 Mar 2011 08:04:06 +0000 (04:04 -0400)]
use absolute path for openssh submodule

13 years agoadd openssh
Luke Howard [Mon, 21 Mar 2011 07:59:49 +0000 (03:59 -0400)]
add openssh

13 years agoadd openssh submodule
Luke Howard [Mon, 21 Mar 2011 07:58:08 +0000 (03:58 -0400)]
add openssh submodule

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 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 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 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 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 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 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:15:01 +0000 (18:15 +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 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 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 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 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 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 agoupdate libradsec
Sam Hartman [Fri, 11 Mar 2011 20:53:03 +0000 (15:53 -0500)]
update libradsec

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