Skip to Content.
Sympa Menu

freetds - Re: [freetds] NTLM buffer length insufficient

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Frediano Ziglio <freddy77 AT gmail.com>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] NTLM buffer length insufficient
  • Date: Mon, 16 Dec 2013 14:25:16 +0000

2013/12/9 <samuel.ferencik AT barclays.com>:
> Hi,
>
> The default NTLM buffer length, as defined in tds/sspi.c (NTLMBUF_LEN =
> 4096) is insufficient in my environment. The token returned is 7566 bytes
> long. As a result, the call to InitializeSecurityContext() in
> tds_sspi_get_auth() returns SEC_E_INSUFFICIENT_MEMORY.
>
> I have recompiled with a larger buffer size (16384) and tds_sspi_get_auth()
> now works.
>
> I wonder if this is the right way to fix this - should people adjust the
> buffer length as needed and rebuild? Or should the default be increased in
> the trunk?
>
> Thanks,
> Sam
>


I don't see any problem with the patch. Perhaps we could use a
parameter to let InitializeSecurityContext allocate memory for you but
I have to test it.

Frediano




Archive powered by MHonArc 2.6.24.

Top of Page