sent lm hashes, needed for NTLM2 session
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19467 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -610,10 +610,9 @@ heim_ntlm_encode_type3(struct ntlm_type3 *type3, struct ntlm_buf *data)
|
|||||||
if (type3->flags & NTLM_NEG_UNICODE)
|
if (type3->flags & NTLM_NEG_UNICODE)
|
||||||
ucs2 = 1;
|
ucs2 = 1;
|
||||||
|
|
||||||
/* refuse to send lm ???, matching code below */
|
|
||||||
lm.offset = base;
|
lm.offset = base;
|
||||||
lm.length = 0;
|
lm.length = type3->lm.length;
|
||||||
lm.allocated = 0;
|
lm.allocated = type3->lm.length;
|
||||||
|
|
||||||
ntlm.offset = lm.offset + lm.allocated;
|
ntlm.offset = lm.offset + lm.allocated;
|
||||||
ntlm.length = type3->ntlm.length;
|
ntlm.length = type3->ntlm.length;
|
||||||
@@ -659,9 +658,7 @@ heim_ntlm_encode_type3(struct ntlm_type3 *type3, struct ntlm_buf *data)
|
|||||||
CHECK(krb5_store_uint32(out, 0), 0); /* os1 */
|
CHECK(krb5_store_uint32(out, 0), 0); /* os1 */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* refuse to send lm ???, matching code above
|
|
||||||
CHECK(put_buf(out, &type3->lm), 0);
|
CHECK(put_buf(out, &type3->lm), 0);
|
||||||
*/
|
|
||||||
CHECK(put_buf(out, &type3->ntlm), 0);
|
CHECK(put_buf(out, &type3->ntlm), 0);
|
||||||
CHECK(put_string(out, ucs2, type3->targetname), 0);
|
CHECK(put_string(out, ucs2, type3->targetname), 0);
|
||||||
CHECK(put_string(out, ucs2, type3->username), 0);
|
CHECK(put_string(out, ucs2, type3->username), 0);
|
||||||
|
Reference in New Issue
Block a user