Commit Graph

10058 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
826acbd391 Abstract out the initiator filter function, it will be needed for the
acceptor too.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19410 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-18 15:00:19 +00:00
Love Hörnquist Åstrand
c11cc5fd1b Abstract out the initiator filter function, it will be needed for the
acceptor too. Remove negHints.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19409 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-18 15:00:03 +00:00
Love Hörnquist Åstrand
33260e362f x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19408 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-18 13:15:30 +00:00
Love Hörnquist Åstrand
22d5c1f397 allow asserting return mech
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19402 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-18 13:04:53 +00:00
Love Hörnquist Åstrand
ba22a47a93 add _gss_ntlm_allocate_ctx
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19401 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-18 13:04:07 +00:00
Love Hörnquist Åstrand
fd0d5b4e0f Check that the KDC seem to there and answering us, we can't do better
then that wen checking if we will accept the credential.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19400 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-18 13:03:45 +00:00
Love Hörnquist Åstrand
ae966fe266 return GSS_S_UNAVAILABLE
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19399 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-18 13:02:25 +00:00
Love Hörnquist Åstrand
02620cbb4e add _gss_free_oid, reverse of _gss_copy_oid
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19398 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-18 13:01:40 +00:00
Love Hörnquist Åstrand
62270350bc try harder to handle names better. handle missing acceptor and initator creds better (ie dont propose/accept mech that there are no credentials for) split NegTokenInit and NegTokenResp in acceptor
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19397 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-18 12:59:50 +00:00
Love Hörnquist Åstrand
471a5b53bb Its very sad, but NegHints its are not part of the NegTokenInit, this
makes SPNEGO acceptor life a lot harder.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19396 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-18 12:56:30 +00:00
Love Hörnquist Åstrand
38434e8f3c update (c)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19395 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-17 22:53:39 +00:00
Love Hörnquist Åstrand
782482710f (krb5_ret_principal): Fix a bug in the malloc failure part, noticed by
Arnaud Lacombe in NetBSD coverity scan.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19394 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-17 22:49:37 +00:00
Love Hörnquist Åstrand
846ad516e0 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19393 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-16 08:32:18 +00:00
Love Hörnquist Åstrand
b51a41e7d1 Allocate the buffer from the right length.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19392 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-16 08:31:47 +00:00
Love Hörnquist Åstrand
7e1c31e8c2 (init_sec_context): Tell the other side what domain we think we are
talking to.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19388 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-15 22:50:58 +00:00
Love Hörnquist Åstrand
af03eba4a5 free username and password
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19387 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-15 22:49:13 +00:00
Love Hörnquist Åstrand
0ccb9c8444 (_gss_ntlm_release_name): free name.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19386 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-15 22:48:13 +00:00
Love Hörnquist Åstrand
7ccd5835db store username and password in the ntlm_ctx
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19385 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-15 22:47:31 +00:00
Love Hörnquist Åstrand
d53618b20e Use the target_name to figure out what username/password to use
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19384 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-15 22:44:14 +00:00
Love Hörnquist Åstrand
c3c1fa1aaa (_gss_ntlm_import_name): add support for GSS_C_NT_HOSTBASED_SERVICE names
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19382 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-15 22:24:18 +00:00
Love Hörnquist Åstrand
1babec8943 Add ntlm_name.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19381 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-15 22:23:13 +00:00
Love Hörnquist Åstrand
4a924643eb (fcc_get_cache_next): avoid const warning.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19379 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-15 21:35:52 +00:00
Love Hörnquist Åstrand
30cf3d7d07 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19377 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-15 21:27:42 +00:00
Love Hörnquist Åstrand
eb71c96ac0 if the user have a kadmin/admin initial ticket, don't ask for
password, just use the credential instead.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19376 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-15 21:27:12 +00:00
Love Hörnquist Åstrand
4e85483d75 libheimntlm.la needs to be built after libkrb5.la
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19372 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-15 21:21:05 +00:00
Love Hörnquist Åstrand
ef6b5a7236 Make compile.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19367 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-15 20:12:20 +00:00
Love Hörnquist Åstrand
471b9aabbc allow testing of ntlm.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19366 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-15 20:09:19 +00:00
Love Hörnquist Åstrand
8f687061ab add __gss_ntlm_initialize
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19365 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-15 20:08:25 +00:00
Love Hörnquist Åstrand
5ba324eae7 (handle_type3): verify that the kdc approved of the ntlm exchange too
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19364 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-15 20:06:54 +00:00
Love Hörnquist Åstrand
93482a2b67 Add the builtin ntlm mech
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19363 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-15 20:05:43 +00:00
Love Hörnquist Åstrand
25e6be673b NTLM test app.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19362 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-15 20:04:50 +00:00
Love Hörnquist Åstrand
e4ac6bf6ed Add detection of NTLMSSP.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19361 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-15 20:04:14 +00:00
Love Hörnquist Åstrand
a9a686862d add ntlm mech oid
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19360 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-15 20:02:54 +00:00
Love Hörnquist Åstrand
792c38eaf4 Switch OID to the ms ntlmssp oid
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19359 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-15 20:01:48 +00:00
Love Hörnquist Åstrand
76a9750323 Add ntlm gss-api module.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19358 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-15 19:46:55 +00:00
Love Hörnquist Åstrand
6bb820f1db hook in ntlm
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19357 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-15 19:46:12 +00:00
Love Hörnquist Åstrand
164fc106aa add forward declaration for krb5_ntlm
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19355 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-15 19:17:32 +00:00
Love Hörnquist Åstrand
df50d13193 API to authenticate ntlm requests.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19354 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-15 19:16:32 +00:00
Love Hörnquist Åstrand
a102876012 Add ntlm files.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19353 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-15 19:15:16 +00:00
Love Hörnquist Åstrand
ac906bd5fa Add bits for handling NTLM.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19352 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-15 19:13:39 +00:00
Love Hörnquist Åstrand
aac9035b3d Catch more error errors.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19351 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-15 18:49:08 +00:00
Love Hörnquist Åstrand
0c000a62f7 Support "iteration" of file credential caches by giving the user back
the default file credential cache and only that.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19349 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-15 16:48:28 +00:00
Love Hörnquist Åstrand
8e567798a7 Expand the default root for some of the cc type names.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19348 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-15 16:46:51 +00:00
Love Hörnquist Åstrand
2ba004edf0 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19347 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-15 16:40:51 +00:00
Love Hörnquist Åstrand
0188d9ca47 Check after a credential to use.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19346 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-15 16:40:28 +00:00
Love Hörnquist Åstrand
fbb7a0e925 Don't fail, mech glue layer can't stand that.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19345 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-15 16:33:19 +00:00
Love Hörnquist Åstrand
b6821fa5e6 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19344 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-15 11:55:09 +00:00
Love Hörnquist Åstrand
3b401bbfd4 Use internal version of rk_unvis
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19343 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-15 11:54:48 +00:00
Love Hörnquist Åstrand
626f6539b8 Always include rk_ versions.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19342 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-15 11:54:11 +00:00
Love Hörnquist Åstrand
9e02cddfb9 add strsvis rename.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19341 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-15 11:53:09 +00:00