Skip to Content.
Sympa Menu

freetds - Re: [freetds] 0.91RC2 Bug - Password Length

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] 0.91RC2 Bug - Password Length
  • Date: Mon, 6 Jun 2011 11:17:37 +0200

I think these lines in src/dblib/dblib.c

if (TDS_MAX_LOGIN_STR_SZ < strlen(value)) {
dbperror(NULL, SYBENTLL, 0);
return FAIL;
}

cause the problem :)

freddy77

2011/6/3 Ken Collins <ken AT metaskills.net>:
>
> I take that back. I'll have to play with this more to see. Is it possible
> that this is an issue with dbsetlpwd()? Or maybe I need to use
> dbsetlversion() before that? Nope, I just tried that and I am passing 9
> down to dbsetlversion too. Thoughts? Anyone else using dblib and these
> functions and can confirm >30 passwords?
>
>  - Ken
>
> On Jun 3, 2011, at 8:46 AM, Ken Collins wrote:
>
>>
>> Bug was reported to me from Windows and confirmed by me on darwin.
>> But I just noticed that it appears to be a bug on my end. Not FreeTDS.
>>
>> - Ken
>>
>> On Jun 2, 2011, at 2:49 PM, Frediano Ziglio wrote:
>>
>>> I tried with a 40 characters password and works without problems using
>>> version 7.1... Are you sure is not related to character encoding?
>>> What system are you using?
>>>
>>> Frediano
>>>
>>> 2011/6/2 Ken Collins <ken AT metaskills.net>:
>>>>
>>>> I had an issue reported to me today that login passwords larger than ~32
>>>> characters. This appears to be an issue when I tested 0.82 as well. Here
>>>> are my log files for each
>>>>
>>>> freetds.0.82.log => https://gist.github.com/1004251
>>>> freetds.0.91RC2.log => https://gist.github.com/1004252
>>>>
>>>> I googled around a bit and found this page on the TDS login packet
>>>> <http://www.freetds.org/tds.html> and it suggests this is expected for
>>>> 4/5 packet. My logs do show that I was using TDS version 7.1. I found no
>>>> obvious place in the code where this might be fixed. Thoughts and
>>>> suggestions?
>>>>
>>>>
>>>> - TIA, Ken
>>>>
>>> _______________________________________________
>>> FreeTDS mailing list
>>> FreeTDS AT lists.ibiblio.org
>>> http://lists.ibiblio.org/mailman/listinfo/freetds
>>
>> _______________________________________________
>> FreeTDS mailing list
>> FreeTDS AT lists.ibiblio.org
>> http://lists.ibiblio.org/mailman/listinfo/freetds
>
> _______________________________________________
> FreeTDS mailing list
> FreeTDS AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/freetds
>




Archive powered by MHonArc 2.6.24.

Top of Page