Re: 0.91RC2 Bug - Password Length
Ken Collins <[email protected]>
| Newsgroups | gmane.comp.db.tds.freetds |
|---|---|
| Message-ID | <[email protected]> |
Thanks Frediano. I can test a patch if needed or is this something pre-emptively fixed in head/rc?
- Ken
On Jun 6, 2011, at 5:17 AM, Frediano Ziglio wrote:
> 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 <[email protected]>:
>>
>> 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 <[email protected]>:
>>>>>
>>>>> 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
>>>> [email protected]
>>>> http://lists.ibiblio.org/mailman/listinfo/freetds
>>>
>>> _______________________________________________
>>> FreeTDS mailing list
>>> [email protected]
>>> http://lists.ibiblio.org/mailman/listinfo/freetds
>>
>> _______________________________________________
>> FreeTDS mailing list
>> [email protected]
>> http://lists.ibiblio.org/mailman/listinfo/freetds
>>
> _______________________________________________
> FreeTDS mailing list
> [email protected]
> http://lists.ibiblio.org/mailman/listinfo/freetds