Re: Strange. I can logon with an invalid or no password atall

From: Chris <dmagick(at)gmail(dot)com>
To: Daniel <danwgrace(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Strange. I can logon with an invalid or no password atall
Date: 2009-12-03 05:24:25
Message-ID: 4B174B89.7060304@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


> void TBClientFrame::Login(const wxString &user, const wxString &pass)
> {
> std::string host("127.0.0.1");
> std::string user_str = std::string(user.mb_str(*wxConvCurrent));
> std::string pass_str = std::string(pass.mb_str(*wxConvCurrent));
> if (db_conn.Connect(host, user_str, pass_str))
> wxMessageBox(wxT("Logged on."), wxT("Client Info."));
> else
> {
> fprintf(stderr, "%s", db_conn.ErrorMsg());
> }
> }
>
> It does report an error if the user name is invalid. What could cause
> this strange behaviour.

What is in your pg_hba.conf file?

Seems like you've got it set to 'trust' for (at least) 127.0.0.1 - try
changing that to 'md5' and restarting postgres.

--
Postgresql & php tutorials
http://www.designmagick.com/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Craig Ringer 2009-12-03 05:35:23 Re: [Bacula-users] Catastrophic changes to PostgreSQL 8.4
Previous Message Tom Lane 2009-12-03 05:03:15 Re: Strange. I can logon with an invalid or no password atall