Skip to Content.
Sympa Menu

freetds - Re: [freetds] Login incorrect

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Frediano Ziglio <freddyz77 AT tin.it>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] Login incorrect
  • Date: Tue, 15 Jul 2003 17:02:23 -0000


Sending packet @ 15:32:49.712202
0000 10 01 00 ba 00 00 01 00-be 00 00 00 00 00 00 70 |........ .......p|

0xbe is length but packet is 0xba, some data not sended

0010 dc 05 00 00 06 83 f2 f8-a9 3a 00 00 00 00 00 00 |........ .:......|
0020 e0 03 00 00 88 ff ff ff-36 04 00 00 56 00 09 00 |........ 6...V...|
0030 68 00 04 00 70 00 06 00-7c 00 04 00 84 00 08 00 |h...p... |.......|

0x70 password position, 6 password length (unicode characters)

0040 00 00 00 00 94 00 0b 00-aa 00 0a 00 be 00 00 00 |........ ........|
0050 00 10 dc 71 d6 55 be 00-00 00 be 00 00 00 67 00 |...q.U.. ......g.|
0060 72 00 6f 00 6f 00 76 00-69 00 6f 00 75 00 73 00 |r.o.o.v. i.o.u.s.|
0070 62 00 61 00 70 00 69 00-54 00 53 00 51 00 4c 00 |b.a.p.i. T.S.Q.L.|

?? where is the password

0080 72 00 6f 00 75 00 6e 00-64 00 62 00 6f 00 78 00 |r.o.u.n. d.b.o.x.|
0090 54 00 44 00 53 00 2d 00-4c 00 69 00 62 00 72 00 |T.D.S.-. L.i.b.r.|
00a0 61 00 72 00 79 00 75 00-73 00 5f 00 65 00 6e 00 |a.r.y.u. s._.e.n.|
00b0 67 00 6c 00 69 00 73 00-68 00 |g.l.i.s. h.|

>From login.c
if (!domain_login) {
tds_put_string(tds, tds_dstr_cstr(&connect_info->user_name),
user_name_len);
p = tds_dstr_cstr(&connect_info->password);
punicode = unicode_string;
unicode_left = sizeof(unicode_string);
assert(-1 != tds_iconv(tds, tds->iconv_info, to_server, &p,
&password_len, &punicode, &unicode_left));

!!! bad assert, is disabled behavior change !!!
Did you disable assert ??

password_len = punicode - unicode_string;
tds7_crypt_pass((unsigned char *) unicode_string,
password_len,
(unsigned char *) unicode_string);
tds_put_n(tds, unicode_string, password_len);
}

freddy77






Archive powered by MHonArc 2.6.24.

Top of Page