Love Hörnquist Åstrand
b5d0a38c06
Move get and verify mic to the same file since they share code,
...
implement NTLM v1 and dummy signatures.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19439 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-19 15:31:46 +00:00
Love Hörnquist Åstrand
ace0210c49
pass on GSS_C_CONF_FLAG and GSS_C_INTEG_FLAG, save the session master key
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19438 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-19 15:30:44 +00:00
Love Hörnquist Åstrand
edfb0d4719
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19437 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-19 12:12:59 +00:00
Love Hörnquist Åstrand
3c9d3266f4
try using gss_accept_sec_context() on the opportunistic token instead
...
of guessing the acceptor name and do gss_acquire_cred, this make
SPNEGO work like before.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19435 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-19 12:10:35 +00:00
Love Hörnquist Åstrand
76160f2497
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19425 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-18 21:24:02 +00:00
Love Hörnquist Åstrand
450f635e88
Calculate the NTLM version 1 "master" key.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19424 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-18 21:23:24 +00:00
Love Hörnquist Åstrand
20e973fda2
Resurect negHints for the acceptor sends first packet.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19421 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-18 18:50:15 +00:00
Love Hörnquist Åstrand
a11517a4d9
Add "windows" versions of the NegTokenInitWin and friends.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19420 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-18 18:28:49 +00:00
Love Hörnquist Åstrand
d2946a3c8e
add --wrapunwrap flag
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19419 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-18 18:07:15 +00:00
Love Hörnquist Åstrand
3ac5851185
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19416 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-18 17:52:48 +00:00
Love Hörnquist Åstrand
6a8647e1c6
move _gss_spnego_indicate_mechtypelist() to compat.c, use the sequence
...
types of MechTypeList, make add_mech_type() static.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19415 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-18 17:52:26 +00:00
Love Hörnquist Åstrand
acccf21ce2
move _gss_spnego_indicate_mechtypelist() to compat.c
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19414 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-18 17:51:13 +00:00
Love Hörnquist Åstrand
2ce12d8caa
Generate sequence code for MechTypeList
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19413 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-18 17:19:53 +00:00
Love Hörnquist Åstrand
e0585ffc8d
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19412 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-18 15:42:27 +00:00
Love Hörnquist Åstrand
363515e856
check that the generated acceptor mechlist is acceptable too
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19411 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-18 15:42:03 +00:00
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
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
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
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
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
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
2e061ed271
ntlm gssapi module, only support context building
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19334 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-14 12:17:34 +00:00