[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using NTLM & NTLMV2



Hi,

I am looking for NTLM & NTLMV2 libraries. heimdal appears to have such
libraries. However having looked at the docs and test_ntlm.c (in lib/ntlm) I'm
not much the wiser on how to use the routines provided. Most of it makes sense
but I'm not totally sure what I am doing.

Has anyone any examples of the following.

generating a NTLM & NTLMV2 request
generating a NTLM & NTLMV2 response to a challenge.

I'm think I can see how to generate the NTLM request & response from
test_ntlm.c. Not so sure on how to use heim_ntlm_calculate_ntlm2 as no direct
example in test_ntlm.c. In fact the only example for ntlmv2 is to generate a
challenge. I'm unsure how the extra parameters in a ntlmv2 response are
generated.

    heim_ntlm_calculate_ntlm1(key.data, key.length,
				  type2.challange,
				  &type3.ntlm);

    heim_ntlm_calculate_ntlm2(key.data,
				    key.length,
				    username,
				    target,
				    serverchallange,
				    &infotarget,
				    ntlmv2,
				    &answer);

Any help is appreciated. If you can provide an example or point me in the
direction of some clear documentation I'd be greatful.

Thanks in advance
Duncan