[freetds] Backporting NTLMv2 (was: NTLMv2 support for domain logins using freetds)

Sergey Sikorskiy sergey.sikorskiy at gmail.com
Thu Jul 31 18:25:50 EDT 2008


Hi,

I've just checked with Microsoft web-site and found detailed
documentation for NTLM.

http://msdn.microsoft.com/en-us/library/cc207842.aspx

This documentation clearly says that "(1.7) "The NTLM authentication
version is not negotiated by the protocol. It must be configured on
both the client and the server prior to authentication. The version is
selected by the client, and requested during the protocol negotiation.
If the server does not support the version selected by the client,
authentication fails."

The rest is negotiable, including sending of LMv2 hash, which won't be
sent in my implementation.

After looking over documentation I figured out that negotiation part
is almost completely missing in my implementation. I'm sorry, but this
documentation wasn't available two years ago.


On Thu, Jul 31, 2008 at 11:27 AM, ZIGLIO, Frediano, VF-IT
<Frediano.Ziglio at vodafone.com> wrote:
> Hi,
>  I quite finished merging Sergey Sikorskiy patch for NTLMv2. Well... to say all I'm quite
> ready for backport but I have a problem... compatibility. Currently CVS HEAD
> implementation use NTLMv2 always. There is no problem to add a use_ntlmv2 to TDSCONNECTION
> but this require a new option to set this flag, all this require less than 10 rows, the
> problem is not implementation, but mainly compatibility. If we add an option is supposed
> that this option will work on future versions... or not?? Personally I think that if
> NTLMv2 is available use it or use former version, but how to detect this?? I currently
> don't know... perhaps if Target Info is available use it? I don't have so many
> environment/versions of windows to test with.. which version does not support NTLMv2??
>
> Regards
>  Frediano
>
> _______________________________________________
> FreeTDS mailing list
> FreeTDS at lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/freetds
>
>



-- 
Sergey Sikorskiy



More information about the FreeTDS mailing list