Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 2D3B565050E for ; Thu, 31 Jul 2008 22:40:44 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 43010-01-3 for ; Thu, 31 Jul 2008 22:40:34 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from qb-out-0506.google.com (qb-out-0506.google.com [72.14.204.224]) by postgresql.org (Postfix) with ESMTP id 7C387650522 for ; Thu, 31 Jul 2008 22:40:07 -0300 (ADT) Received: by qb-out-0506.google.com with SMTP id d8so930870qbc.23 for ; Thu, 31 Jul 2008 18:39:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=pzSluMOF7AFYGxLAjJfI8bvX5qUxeRdYCSDLv4mUsKU=; b=SZ99iYNafZlqgCXwlA/UG5totPIz8MpMMH+xs1XnzUUCOhtjoZic9TI3yBYpE2QAc/ K8BIGsngpzc7EP4X78cYEmav5G3fX9K+BItCtpNcpvtRLoo9Vd9QweTs40JSIG1TetFs DyyYWNVVhlU9a3caFDfG/Sd6HdiSvsp3h5FwA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=FreCGb13N9l2sKkN8mbiGkNaX3ZVEnrqo0FNuZLDrSwcvBjD5/NzdW6sswMIxoiVZV aVutgiyQr4TM7D1QKC8ceZE3BH8pY3Zp6wND9flY32eXVDRaxDGMwQvA2iPQiVPLdlup 6TA/JtkEvlW8xHKYPnbFgGILr/I7ycSNxmxe8= Received: by 10.142.86.7 with SMTP id j7mr3527792wfb.78.1217554799484; Thu, 31 Jul 2008 18:39:59 -0700 (PDT) Received: by 10.142.153.17 with HTTP; Thu, 31 Jul 2008 18:39:59 -0700 (PDT) Message-ID: Date: Thu, 31 Jul 2008 19:39:59 -0600 From: "Scott Marlowe" To: "Rafael Domiciano" Subject: Re: Postgres User Can Login without a password Cc: "pgsql-admin@postgresql.org" In-Reply-To: <3a0028490807311208m687e37d5k11c7e72bfc1da5d@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <3a0028490807311208m687e37d5k11c7e72bfc1da5d@mail.gmail.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200807/235 X-Sequence-Number: 29845 On Thu, Jul 31, 2008 at 1:08 PM, Rafael Domiciano wrote: > Hi there, > > I have a situation that is a bit strange. > I discovered today that I can login in programs like EMS SQL Manager and in > the internal software (via ODBC) without using the password for the user. > > Example: > Configuration on the ODBC: > datasource: postgres > database: Postgres > server: "IP" > user: 123456 > password: 123456 > > The software connect to the ODBC getting the configs of the data source. > And when I clear the password in the ODBC the software continues to work, > without a passwd error. > I certified with the programers, and the software doesn't pass the password. You're likely logging in from the same machine and pg_hba.conf is set to ident authentication. Change your pg_hba.conf back to ident or trust, and run this command: alter user postgres set password='password'; changing 'password' of course Then change pg_hba.conf to md5 authentication.