X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id E0DFAD7E11 for ; Wed, 12 Oct 2005 12:36:38 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 47597-05 for ; Wed, 12 Oct 2005 15:36:34 +0000 (GMT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id 3E75CD7E0B for ; Wed, 12 Oct 2005 12:36:34 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.13.1/8.13.1) with ESMTP id j9CFaYsZ049579 for ; Wed, 12 Oct 2005 15:36:34 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.13.1/8.13.1/Submit) id j9CFD0pv043152 for pgsql-admin@postgresql.org; Wed, 12 Oct 2005 15:13:00 GMT (envelope-from news) From: "codeWarrior" X-Newsgroups: pgsql.admin Subject: Re: protecting database from internet access Date: Wed, 12 Oct 2005 08:13:31 -0700 Organization: Hub.Org Networking Services Lines: 58 Message-ID: References: X-Complaints-To: usenet@news.hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2670 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 X-RFC2646: Format=Flowed; Response To: pgsql-admin@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=-0.321 required=5 tests=[ALL_TRUSTED=-2.82, AWL=0.235, FORGED_HOTMAIL_RCVD2=1.079, PRIORITY_NO_NAME=1.185] X-Spam-Level: X-Archive-Number: 200510/135 X-Sequence-Number: 19207 From the postgreSQL docs: 16.7. Secure TCP/IP Connections with SSL 19.1. The pg_hba.conf file 19.2. Authentication methods 19.2.1. Trust authentication 19.2.2. Password authentication 19.2.3. Kerberos authentication 19.2.4. Ident-based authentication 19.2.5. PAM Authentication 19.3. Authentication problems ""ashish srivastava"" wrote in message news:BAY111-F137A8BA63A48E213E01AF59F7B0@phx.gbl... > hi, > > please do the needful.. > > I am using j2ee on the server side and postgresql as the database to > connect. This database is exposed to the internet. > > The user is shown a login page in which user enters its username and > password. Password authentication takes place.This password is > authenticated on the basis of password field in the userprofile table. > > some questions :- > 1)can anybody tell me how to do this so that the database is at most > secure on the internet ? > 2)should i have different password(login password) for the connection > string ? or connection string password should be same and authentication > should be done by fetching the password value from the userprofile table > for the coressponding user ? > 3)Encrypting the password ? > 4)Adding the password in the session so that once authentication is done > user is allowed for authorization for different resources such > databases,tables etc.. > 5)providing some SSl or tunneling to the database ? > > please help with some examples.. > > i am presently using pg admin III on windows of postgresql. later on might > switch to linux. > > i have read about pg_hba.conf file..But these things are not clear to me. > > Thanks, > Ashish > > _________________________________________________________________ > Finding it difficult to find your life partner?Here is your solution > http://www.bharatmatrimony.com/ > http://creative.mediaturf.net/creatives/bm05/bm_msn_tagoffline.htm > > > ---------------------------(end of broadcast)--------------------------- > TIP 5: don't forget to increase your free space map settings >