LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-29-2011, 03:28 AM   #1
Tsengel
LQ Newbie
 
Registered: Mar 2011
Posts: 3

Rep: Reputation: 0
System error


I made a system in CentOS5.5.
I used Tomcat6 and PostgreSQL.
But I couldn't enter my system. There are some error.
And I don't understand what kind of error this. And how to solve this problem.
JDBCExceptionReporter.logExceptions(100) | SQL Error: 0, SQLState: null
JDBCExceptionReporter.logExceptions(101) | Cannot create PoolableConnectionFactory (FATAL: Ident authentication failed for user "postgres")

"postgres" is username.

Is anybody knows anything about this error message, please post me. I will waiting for you.
Thank you

Have a wonderful day
Tsengel
 
Old 03-29-2011, 05:24 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,223
Blog Entries: 1

Rep: Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076
Hi,

Make sure that you have the following in pg_hba.conf (located in /var/lib/pgsql/data)
Code:
local	all	all	trust
host	all	127.0.0.1/32	trust
Regards
 
Old 03-30-2011, 03:16 AM   #3
Tsengel
LQ Newbie
 
Registered: Mar 2011
Posts: 3

Original Poster
Rep: Reputation: 0
Thank you,bathory.

I checked the file. And I found that.


#TYPE DATABASE USER CIDR-ADDRESS METHOD

#"local" is for Unix domain socket connections only
local all all ident sameuser

#IPv4 local connections:
host all all 127.0.0.1/32 ident sameuser

#IPv6 local connections:
host all all ::1/128 ident sameuser

Do I need to append "trust". Is Trust METHOD. If yes, do i change "ident sameuser" to "trust" ?

thank you again for your post.

Best regards, Tsengel
 
Old 03-30-2011, 03:21 AM   #4
Tsengel
LQ Newbie
 
Registered: Mar 2011
Posts: 3

Original Poster
Rep: Reputation: 0
it's gone,bathory
Thank you so so much.
I am so happy.
I changed "ident sameuser" to "trust".

Thank you Thank you.

Best regards, Tsengel
 
Old 04-08-2011, 04:54 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
In case the machine holds sensitive information of any kind trust
is not a good choice. You'd be better off to a) use the proper user
name (depending on how your tomcat interacts w/ postgres, or
password authentication via md5 [my personal preference]).



Cheers,
Tink
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
An error Occurred during the file system check. Dropping you to shell; the system wil aneikei Linux - Newbie 3 02-11-2010 07:38 PM
PROC-26:Error while accessing physical storage operating system error sijeeshkt Linux - Software 1 11-10-2007 09:53 AM
Error message received from system Error while reading filter description for true Steel_J Linux - Software 2 03-04-2006 06:10 PM
NETPERF: ERROR --> send_udp_stream: error on remote: Interrupted system call dravya Linux - General 1 05-29-2004 05:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration