Re: FreeTDS library 30 character password limitation

Frediano Ziglio <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <CAHt6W4eye=q9400306Cm6xhvvb=R17dY1O3_TujFRfdJ0eZWSQ@mail.gmail.com>
2013/11/18 Vipul Sharma <[email protected]>:
> Hi,
>
>
>
> I tried connecting to sql server using a password whose length is more than
> 30 characters and it is failing. I am using the dbopen() API to connect.
> After searching the freetds dblib code, found that
> ${top_dir}/include/tds.hhas this line in it which is causing the
> problem:
>
>
>
> *#define TDS_MAX_LOGIN_STR_SZ    30 *
>
>
>
> The field length is somehow limited to 30 characters and making the value
> to 128 apparently fixes the issue just for now.
>
>
>
> Just wanted to know,
>
> - If this 30 characters limitations is documented somewhere ?
>
> - Is it safe to simply increase the value to 128 for now to work around the
> limitation for now..
>
>
>
> *Note *: I am interested to connect just using the TDS 7.1 version.
>
>
>
> Any pointers around this would be really appreciated.
>
>
>
> Thanks in advance ,

Just committed patch for both 0.91 and master

Frediano
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.