Skip to Content.
Sympa Menu

freetds - Re: [freetds] Receive "Login failed for user '(null)'" Error

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Mark Segall <Mark.Segall AT morganstanley.com>
  • To: freetds AT lists.ibiblio.org
  • Subject: Re: [freetds] Receive "Login failed for user '(null)'" Error
  • Date: Mon, 01 Dec 2003 17:57:36 -0500


SOmething else I noticed in the dump for my perl code version. In the
first send packet at the end, it says CT-Library; but I thought my
format for connect was for DB-Library. Could that be the problem?

Mark Segall wrote:

>
> I had already done a print of the user and password values and they
> look fine, plus I had tried just hardcoding them into the connect
> string.
>
> I tried switching to TDS 4.2. Thanks for the suggestion; that helped
> to confirm your diagnosis!
> Comparing the first send packet (in the dumps) under TDS 4.2 for
> accessing via tsql versus using my perl DBI code, I can definitely see
> that the tsql has the user and password filled in and the perl version
> of the dump has binary 0's!
>
> So, it does appear that the id and password aren't getting sent. But
> my print statement of the variables right before the connect has the
> values.
> Right before the $dbh = DBI->connect($app_server, $app_user,
> $app_passwd);
> I print the 3 variables with: print "server is $app_server user is
> $app_user and password is $app_passwd \n";
> and I get the following result: server is dbi:Sybase:server=espace
> user is uuuu and password is pppp
> where uuuu and pppp are the correct values (and definitely not null or
> binary 0's).
>
>
> Something I also see in both dumps in the begining is:
> inconv will convert client-side data to the "" character set
> inconv_open: cannot convert to ""
>
> Oh, and if it helps, at the top it says I am running FreeTDS 0.61.2
> with debug level 99.
>
>
> - Mark
>
> --
> NOTICE: If received in error, please destroy and notify sender.
> Sender
> does not waive confidentiality or privilege, and use is prohibited.
>

--
NOTICE: If received in error, please destroy and notify sender. Sender
does not waive confidentiality or privilege, and use is prohibited.





Archive powered by MHonArc 2.6.24.

Top of Page