Commit Graph

38 Commits

Author SHA1 Message Date
Nicolas Williams
be708ca3cf gsskrb5: Add simple name attributes support
This adds Kerberos mechanism support for:

 - composite principal name export/import
 - getting rudimentary name attributes from GSS names using
   gss_get_name_attribute():
    - all (raw) authorization data from the Ticket
    - all (raw) authorization data from the Authenticator
    - transit path
    - realm
    - component count
    - each component
 - gss_inquire_name()
 - gss_display_name_ext() (just for the hostbased service name type
                           though)

The test exercises almost all of the functionality, except for:

 - getting the PAC
 - getting authz-data from the Authenticator
 - getting the transit path

TBD (much) later:

 - amend test_context to do minimal name attribute checks as well
 - gss_set_name_attribute() (to request authz-data)
 - gss_delete_name_attribute()
 - getting specific authorization data elements via URN fragments (as
   opposed to all of them)
 - parsing the PAC, extracting SIDs (each one as a separate value)
 - some configurable local policy (?)
 - plugin interface for additional local policy
2022-01-01 23:30:15 -06:00
Russ Allbery
39460d0045 Remove duplicate __gss_krb5_mechanism_oid_desc definition
__gss_krb5_mechanism_oid_desc is now defined in gssapi/gssapi_oid.h,
so remove the definition in gssapi/gssapi_krb5.h in favor of including
that header.

Signed-off-by: Love Hörnquist Åstrand <lha@h5l.org>
2012-04-05 22:55:01 -07:00
Love Hornquist Astrand
dbeeb18a53 generate oids using table 2010-11-25 18:32:33 -08:00
Asanka Herath
5dcc605f6b Fix calling conventions for Windows 2010-08-20 13:14:10 -04:00
Love Hornquist Astrand
1021099f3d rename external so that they can be included in array and struct initializer 2010-07-22 20:47:04 -07:00
Asanka Herath
b1063ea8fc Initial Windows port 2009-11-24 10:11:14 -08:00
Love Hornquist Astrand
1dd94e44ba Switch to macros for c++ extern "C" to please editors that want to autoindent 2009-07-23 19:27:34 +02:00
Love Hörnquist Åstrand
a265538dd9 Include <gssapi.h> for compat reasons.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24381 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-25 00:34:49 +00:00
Love Hörnquist Åstrand
6937d41a02 remove trailing whitespace
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23815 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 09:21:03 +00:00
Love Hörnquist Åstrand
e172367898 switch to utf8 encoding of all files
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23814 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 08:53:55 +00:00
Love Hörnquist Åstrand
67cd683b98 ifNOTdef
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23707 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-28 01:12:52 +00:00
Love Hörnquist Åstrand
5829611b38 use macro
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23706 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-28 01:12:45 +00:00
Love Hörnquist Åstrand
d1e3f79583 Mark gsskrb5_set_send_to_kdc deprecated.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23705 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-28 01:12:37 +00:00
Love Hörnquist Åstrand
f72a279efc change type to int
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23699 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-27 11:13:59 +00:00
Love Hörnquist Åstrand
541c7a5d2b allow registration of krb5_plugins though the gss-api layer
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23698 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-27 11:13:48 +00:00
Love Hörnquist Åstrand
39fe446983 Support parsing KRB-ERROR passed back from windows server when the time is out of sync, modify krb5_cc_[sg]et_config interface to handle principals too, add tests for this
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23420 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-26 18:37:48 +00:00
Love Hörnquist Åstrand
693a4c4358 Make compile.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23201 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-05-29 02:12:26 +00:00
Love Hörnquist Åstrand
fd67ddb9c7 add krb5_gss_register_acceptor_identity
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23199 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-05-29 02:11:53 +00:00
Love Hörnquist Åstrand
795ee939ea Add declspec for Windows
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23025 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-17 10:01:57 +00:00
Love Hörnquist Åstrand
27a3ca100e Add flag to not add gss-api INT|CONF to the negotiation
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22655 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-02-26 12:40:35 +00:00
Love Hörnquist Åstrand
cd72133d4c add GSS_KRB5_CCACHE_NAME_X
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20385 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-04-18 08:51:32 +00:00
Love Hörnquist Åstrand
98e6018ae2 add GSS_KRB5_SET_ALLOWABLE_ENCTYPES_X
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18976 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-10 01:05:34 +00:00
Love Hörnquist Åstrand
b402bc547b Use int32_t for enctypes for now.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18975 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-10 01:00:30 +00:00
Love Hörnquist Åstrand
67070a0b2f Add gss_krb5_set_allowable_enctypes.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18971 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-10 00:29:12 +00:00
Love Hörnquist Åstrand
6c70ad3bff add GSS_KRB5_SET_DEFAULT_REALM_X
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18960 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-08 23:01:01 +00:00
Love Hörnquist Åstrand
a0c377d2fd Add gsskrb5_set_default_realm.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18959 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-08 22:55:56 +00:00
Love Hörnquist Åstrand
51c7ede9d6 Add extraction of keyblock function, from Andrew Bartlett.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18914 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-05 00:06:09 +00:00
Love Hörnquist Åstrand
8ddaadec0e Rename various routines and constants from canonize to canonicalize.
From Andrew Bartlett


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18902 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-04 02:42:17 +00:00
Love Hörnquist Åstrand
d5fc4ef18d add gsskrb5_extract_authtime_from_sec_context
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18722 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-20 22:04:03 +00:00
Love Hörnquist Åstrand
e82fe544c3 add GSS_KRB5_GET_AUTHTIME_X
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18718 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-20 21:50:24 +00:00
Love Hörnquist Åstrand
69c4ab7ef6 Add GSS_KRB5_SEND_TO_KDC_X and gsskrb5_set_send_to_kdc
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18681 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-20 18:55:09 +00:00
Love Hörnquist Åstrand
42f5d12b8c add GSS_KRB5_GET_ACCEPTOR_SUBKEY_X
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18560 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-18 16:00:48 +00:00
Love Hörnquist Åstrand
68d7ed84dc add GSS_KRB5_GET_INITIATOR_SUBKEY_X and GSS_KRB5_GET_SUBKEY_X
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18556 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-18 12:45:52 +00:00
Love Hörnquist Åstrand
ca359003c3 remove gss_krb5_compat_des3_mic
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18514 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-17 09:43:28 +00:00
Love Hörnquist Åstrand
f8da152434 Add gsskrb5_set_dns_canonlize.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18513 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-17 09:43:27 +00:00
Love Hörnquist Åstrand
522bf196bf add GSS_KRB5_SET_DNS_CANONIZE_X
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18511 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-17 09:37:24 +00:00
Love Hörnquist Åstrand
4860ab5db8 Add lucid interface.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18412 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-12 08:50:42 +00:00
Love Hörnquist Åstrand
bef2219258 Move krb5 stuff to <gssapi/gssapi_krb5.h>.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18339 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-07 22:36:22 +00:00