Re: NTLM buffer length insufficient
Frediano Ziglio <[email protected]>
| Newsgroups | gmane.comp.db.tds.freetds |
|---|---|
| Message-ID | <CAHt6W4fK4ONdBVB_duQn=LMXEfVr1APRe6-dcaEPAMtaD1ieYg@mail.gmail.com> |
2013/12/9 <[email protected]>: > 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