Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id A44549FB213 for ; Mon, 16 Apr 2007 03:37:45 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 27244-04 for ; Mon, 16 Apr 2007 03:37:37 -0300 (ADT) X-Greylist: delayed 00:06:39.779925 by SQLgrey-1.7.4 Received: from web8609.mail.in.yahoo.com (web8609.mail.in.yahoo.com [202.43.219.84]) by postgresql.org (Postfix) with SMTP id A34279FB1D3 for ; Mon, 16 Apr 2007 03:37:38 -0300 (ADT) Received: (qmail 81836 invoked by uid 60001); 16 Apr 2007 06:30:55 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.in; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=znjKYyJJTwMR0D6MPiDJcA+Yk56h12EdeC9piRT2eah/iEtkgNW848ymU5tslifgbgweKabwvEDhlUsVqELkF/gOeUznpvFnXZ81a31R3OC2UIcRZ+yFBtT+5clIgfv67ZUxUaaTrE1dmnmzYrMwiunuQO43qmJJXY4RWXo6IEg=; X-YMail-OSG: KPjZdiwVM1nk0MidK7S4KvSSqRUO1CXrnlXGsfvZFJXVcIdAg4dKv_uYbHAXWnK0QQ4gZGjIlqyBdtKDwE_DFMFTWOMxXP5a8XGI.l08_Tsl42tpBeY- Received: from [61.8.136.40] by web8609.mail.in.yahoo.com via HTTP; Mon, 16 Apr 2007 07:30:55 BST Date: Mon, 16 Apr 2007 07:30:55 +0100 (BST) From: inderpreet vohra Subject: ident authentication in fedora core 6 To: pgsql-jdbc@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <855963.81179.qm@web8609.mail.in.yahoo.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.798 tagged_above=0 required=5 tests=BAYES_05=-1.11, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708 X-Spam-Level: X-Archive-Number: 200704/44 X-Sequence-Number: 16893 im facing problems with the following code.. initially the jdbc driver was not getting registered...that problem is rectified...now im facing problems connecting with the database.. ******************************************************import java.sql.DriverManager; import java.sql.Connection; import java.sql.SQLException; public class Example1 { public static void main(String[] argv) { System.out.println("Checking if Driver is registered with DriverManager."); try { Class.forName("org.postgresql.Driver"); } catch (ClassNotFoundException cnfe) { System.out.println("Couldn't find the driver!"); System.out.println("Let's print a stack trace, and exit."); cnfe.printStackTrace(); System.exit(1); } System.out.println("Registered the driver ok, so let's make a connection."); Connection c = null; try { // The second and third arguments are the username and password, // respectively. They should be whatever is necessary to connect // to the database. c = DriverManager.getConnection("jdbc:postgresql://localhost/ids","postgres","123456"); } catch (SQLException se) { System.out.println("Couldn't connect: print out a stack trace and exit."); se.printStackTrace(); System.exit(1); } if (c != null) System.out.println("Hooray! We connected to the database!"); else System.out.println("We should never get here."); } } ***************************************************** ***************************************************** The error that im geting is ***************************************************** Checking if Driver is registered with DriverManager. Registered the driver ok, so let's make a connection. Couldn't connect: print out a stack trace and exit. org.postgresql.util.PSQLException: A connection error has occurred: org.postgresql.util.PSQLException: FATAL: Ident authentication failed for user "postgres" at org.postgresql.jdbc1.AbstractJdbc1Connection.openConnectionV3(AbstractJdbc1Connection.java:337) at org.postgresql.jdbc1.AbstractJdbc1Connection.openConnection(AbstractJdbc1Connection.java:214) at org.postgresql.Driver.connect(Driver.java:139) at java.sql.DriverManager.getConnection(libgcj.so.7rh) at java.sql.DriverManager.getConnection(libgcj.so.7rh) at Example1.main(Example1.java:27) ****************************************************** kindly help me with this.... my final yr project is stuck up because of this... ...Parul Send a FREE SMS to your friend's mobile from Yahoo! Messenger. Get it now at http://in.messenger.yahoo.com/