X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 6B6E952BA8 for ; Sun, 7 Aug 2005 16:59:28 -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 62833-04 for ; Sun, 7 Aug 2005 19:59:22 +0000 (GMT) Received: from floppy.pyrenet.fr (floppy.pyrenet.fr [194.116.145.2]) by svr1.postgresql.org (Postfix) with ESMTP id 3E99852AFD for ; Sun, 7 Aug 2005 16:59:21 -0300 (ADT) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id AFD5B3095C; Sun, 7 Aug 2005 22:08:46 +0200 (MET DST) From: Christopher Browne X-Newsgroups: pgsql.general Subject: Re: postgresql Secure Mode Date: Sun, 07 Aug 2005 23:48:33 -0400 Organization: cbbrowne Computing Inc Lines: 36 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@news.hub.org X-message-flag: Outlook is rather hackable, isn't it? X-Home-Page: http://www.cbbrowne.com/info/ X-Affero: http://svcs.affero.net/rm.php?r=cbbrowne User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, berkeley-unix) Cancel-Lock: sha1:ZEqy8SF6ysY59PAmQdLZgLNjs4U= To: pgsql-general@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.718 tagged_above=0 required=5 tests=AWL, DATE_IN_FUTURE_06_12 X-Spam-Level: X-Archive-Number: 200508/359 X-Sequence-Number: 81767 > Hi, > > i have a probem,. > > I am trying to configure postgresql in sure way, I have made the > following thing: > > 1. - I have created the certificate and put this in the directory it data > 2. - given him privileges to the user postgresql for the certificate > 3. - in the file postgresql.conf, modify the parameters ssl = true to > use md5 = true > 4. - in the file pg_hba.conf adds one it lines this way hostssl all > all 192.168.0.0/255.255.255.0 md5 > 5. - stsrt postresql > > But when trying to connect me says that the user cannot authenticate > > some idea Hmm. Are you certain you had the password for the user stored somewhere? e.g... 1. Stored in the file $HOME/.pgpass? 2. Stored in some relevant environment variable ($PGPASS)? 3. Included into the DSN (e.g. - 'dbname=this password=something') Having the cert doesn't automatically authenticate anything... -- let name="cbbrowne" and tld="acm.org" in String.concat "@" [name;tld];; http://cbbrowne.com/info/rdbms.html Rules of the Evil Overlord #153. "My Legions of Terror will be an equal-opportunity employer. Conversely, when it is prophesied that no man can defeat me, I will keep in mind the increasing number of non-traditional gender roles."