Love Hörnquist Åstrand
63506f62b3
update (c)
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16341 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-01 21:00:03 +00:00
Love Hörnquist Åstrand
c9962c948d
(acquire_acceptor_cred): only check if principal exists if we got
...
called with principal as an argument.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16338 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-01 16:26:02 +00:00
Love Hörnquist Åstrand
1cff67e8ce
(acquire_acceptor_cred): check that the acceptor exists in the keytab
...
before returning ok.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16336 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-01 15:50:42 +00:00
Love Hörnquist Åstrand
f0dc59770a
(acquire_initiator_cred): GSS_CF_DESTROY_CRED_ON_RELEASE on created credentials.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16281 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-11-02 08:56:25 +00:00
Love Hörnquist Åstrand
a5755046b4
(_gssapi_krb5_ccache_lifetime): break out code used to extract
...
lifetime from a credential cache
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16239 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-26 11:25:16 +00:00
Love Hörnquist Åstrand
bc4a1da9c6
(acquire_initiator_cred): use krb5_cc_cache_match to find a matching
...
creditial cache, if that failes, fallback to the default cache.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16205 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-21 12:44:08 +00:00
Luke Howard
33c4663ba5
plug leak
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14447 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-01-05 02:32:26 +00:00
Johan Danielsson
26457b7135
replace krb5_free_creds_contents by krb5_free_cred_contents
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13790 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-04-25 19:25:35 +00:00
Love Hörnquist Åstrand
b5cdf72e01
(gss_acquire_cred): check usage before even bothering to process it,
...
add both keytab and initial tgt if requested
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13524 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-14 16:42:39 +00:00
Love Hörnquist Åstrand
7c51fd6e95
(acquire_initiator_cred): use kret instead of ret where appropriate
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12976 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-10-07 00:37:04 +00:00
Love Hörnquist Åstrand
5d190295aa
add context argument to krb5_get_init_creds_opt_alloc
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12783 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-08 15:28:20 +00:00
Love Hörnquist Åstrand
61e14619de
use krb5_get_init_creds_opt_alloc/krb5_get_init_creds_opt_free
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12737 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-03 00:31:42 +00:00
Love Hörnquist Åstrand
8f776af389
(gss_acquire_cred): 4th argument to gss_test_oid_set_member is a int
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12577 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-17 18:55:49 +00:00
Love Hörnquist Åstrand
a704e2f3f4
(gss_aquire_cred): make sure time is returned in seconds from now, not
...
in kerberos time
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12346 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-06-03 15:24:29 +00:00
Love Hörnquist Åstrand
42f3fc029a
- do some basic locking (no reference counting so contexts can be
...
removed while still used)
- don't export gss_ctx_id_t_desc_struct and gss_cred_id_t_desc_struct
- make sure all lifetime are returned in seconds left until expired,
not in unix epoch
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12317 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-05-21 14:52:14 +00:00
Love Hörnquist Åstrand
1cd476c394
(acquire_initiator_cred): if the requested name isn't in the ccache,
...
also check keytab. Extact the krbtgt for the default realm to check
how long the credentials will last.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11971 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-04-06 00:31:55 +00:00
Love Hörnquist Åstrand
408615bf37
(gss_acquire_cred): more testing of input argument, make sure output
...
arguments are ok, since we don't know the time_rec (for now), set it
to time_req
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11771 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-03-16 18:05:35 +00:00
Johan Danielsson
14d8cdb894
check return value from gssapi_krb5_init
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11534 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-10-31 16:06:35 +00:00
Jacques A. Vidrine
fed304b01c
RFC 2743 says (regarding gss_acquire_cred),
...
``A caller may provide the value NULL (GSS_C_NO_NAME) for
desired_name, which will be interpreted as a request for a
credential handle that will invoke default behavior when passed
to GSS_Init_sec_context(), if cred_usage is GSS_C_INITIATE
or GSS_C_BOTH, or GSS_Accept_sec_context(), if cred_usage is
GSS_C_ACCEPT or GSS_C_BOTH.''
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11155 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-20 12:02:45 +00:00
Jacques A. Vidrine
9efd74fabe
Attempt to handle GSS_C_INITIATE/GSS_C_ACCEPT/GSS_C_BOTH.
...
If GSS_C_INITIATE is specified, then get credentials from the
default cache. If we don't have any, then try using the keytab.
If GSS_C_ACCEPT is specified, just note our principal name and
open the keytab.
If GSS_C_BOTH is specified, do both of the above.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10978 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-05-09 15:22:34 +00:00
Jacques A. Vidrine
d28ddf2324
= gss_acquire_cred should handle a NULL desired_name
...
= add a call to gssapi_krb5_init
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10976 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-05-09 01:41:37 +00:00
Assar Westerlund
d4e769fa5c
make gsskrb5_register_acceptor_identity set the keytab to be used for gss_acquire_cred too
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10284 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-07-06 15:33:28 +00:00
Assar Westerlund
e55eee640b
try to return the error string from krb5
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9902 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-11 09:16:47 +00:00
Assar Westerlund
db65084e93
(gss_acquire_cred): remove memory leaks. from Jason R Thorpe <thorpej@zembu.com>
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9740 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-03-12 02:25:49 +00:00
Assar Westerlund
19543430ad
add support for getting creds from a keytab, from fvdl@netbsd.org
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9591 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-30 00:49:05 +00:00
Johan Danielsson
c5b916ca6f
remove advertising clause
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7464 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-02 17:05:13 +00:00
Assar Westerlund
0a7e50682f
typo
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3147 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-25 20:58:43 +00:00
Assar Westerlund
931c5154bc
new files
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3047 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-17 16:39:24 +00:00