Nicolas Williams
92c288994a
Better support for "non-standard" GSS mechs
...
If an initial security context token doesn't have a standard header per
RFC2743 then try all mechanisms until one succeeds or all fail.
We still try to guess NTLMSSP, raw Kerberos, and SPNEGO, from tasting
the initial security context token.
2020-04-17 14:37:39 -05:00
Luke Howard
83d2951c0d
gssapi: SPNEGO does not reset NTLM RC4 state ( #509 )
2019-01-06 20:50:24 -06:00
Jeffrey Altman
da6190ec03
lib/gssapi/ntlm: _gss_ntlm_allocate_ctx handle calloc failure
...
If a memory allocation failure occurs, return an error instead of
triggering a segmentation fault.
Change-Id: I38f5e88ca2f1ba7411b05a35b925168015261eb4
2019-01-01 15:05:31 -05:00
Luke Howard
9763482d9f
gssapi: fix pointer type mismatch in NTLM mech
2018-12-23 07:42:16 +00:00
Jeffrey Altman
d570541e3d
Update accept_sec_context.c
2018-09-17 18:12:25 -04:00
Markus Moeller
635ac1aa85
Free context in case of error
2018-09-17 18:12:25 -04:00
Nicolas Williams
774f166e31
First attempt s/\<const gss_.*_t/gss_const_.*_t/g
2013-06-02 15:30:58 -05:00
Love Hornquist Astrand
0879b9831a
remove trailing whitespace
2011-05-21 11:57:31 -07:00
Love Hornquist Astrand
f5f9014c90
Warning fixes from Christos Zoulas
...
- shadowed variables
- signed/unsigned confusion
- const lossage
- incomplete structure initializations
- unused code
2011-04-29 20:25:05 -07:00
Asanka Herath
5dcc605f6b
Fix calling conventions for Windows
2010-08-20 13:14:10 -04:00
Asanka Herath
ce7d784648
Avoid using 'interface' as a variable name
2009-11-24 10:11:16 -08:00
Love Hornquist Astrand
a4881ea0d6
[HEIMDAL-646] malloc(0) checks for AIX
2009-10-11 18:04:43 -07:00
Love Hörnquist Åstrand
26cc8f6525
flatten namespace
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24482 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-25 20:49:54 +00:00
Love Hörnquist Åstrand
8a54aaba59
free name
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24142 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:06:54 +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
1a28e89e61
Avoid free-ing type1 message before its allocated.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22519 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-01-24 11:51:29 +00:00
Love Hörnquist Åstrand
66f8605e07
handle username part of the ntlm name
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22373 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-28 18:36:06 +00:00
Love Hörnquist Åstrand
a650e10c34
Move probe up and comment why its called.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22164 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-04 21:36:35 +00:00
Love Hörnquist Åstrand
8ca9a4469c
add credential handling, add probe function, add better acquired cred function
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22163 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-04 21:25:06 +00:00
Love Hörnquist Åstrand
acfd5a4121
Catch errors and return the up the stack.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20698 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-05-30 15:07:09 +00:00
Love Hörnquist Åstrand
87bdbf8e2c
Set session key only if we are returned a session key.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20681 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-05-14 18:03:39 +00:00
Love Hörnquist Åstrand
877b0883e8
split out backend ntlm server processing
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20579 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-05-08 00:17:59 +00:00
Love Hörnquist Åstrand
b95c3bd0bb
Pass signseal argument to _gss_ntlm_set_key.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19536 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-28 14:49:48 +00:00
Love Hörnquist Åstrand
7f49c4ad56
use _gss_ntlm_set_key
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19530 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-28 14:38:37 +00:00
Love Hörnquist Åstrand
9421ec31ba
Set dummy ntlmv2 keys and Check TI.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19527 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-28 14:08:06 +00:00
Love Hörnquist Åstrand
fca448bd23
Don't send targetinfo now.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19481 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-20 20:02:28 +00:00
Love Hörnquist Åstrand
35dc0e94d1
split RC4 send and recv keystreams
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19457 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-19 18:22:08 +00:00
Love Hörnquist Åstrand
566e8ae67a
Save session master key.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19444 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-19 15:34:32 +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
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
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
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
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