all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Sebastian P. Luque" <spluque@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: sql-postgresql authentication failure
Date: Fri, 25 May 2007 08:07:25 -0500	[thread overview]
Message-ID: <87bqg96ohe.fsf@patagonia.sebmags.homelinux.org> (raw)
In-Reply-To: 87k5ux5v53.fsf@lion.rapttech.com.au

On Fri, 25 May 2007 15:28:56 +1000,
Tim X <timx@nospam.dev.null> wrote:

[...]

> the second method may work and is easier, but no guarantee. It is
> possible that if you set specific switches, the psql client that sql
> mode uses will use local non-password based authentication. While
> sql-mode will still prompt you for the username/password, this
> information will be ignored by the psql client and you will get
> authenticated.based on the user that is running the psql client (i.e.
> you).

Thanks for your comments Tim.  This is very much what I'd like to do,
i.e. I don't want to modify the way I access the server.  I presume you
mean one can put these switches in sql-postgres-options, but I don't see
any options in 'man psql' that would allow for this scenario.  What
particular options would you use?  Below is my
/etc/postgresql/8.2/main/pg_hba.conf file:

---<---------------cut here---------------start-------------->---
# Database administrative login by UNIX sockets
local   all         postgres                          ident sameuser

# 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          md5
# IPv6 local connections:
host    all         all         ::1/128               md5
---<---------------cut here---------------end---------------->---


Thanks again,

-- 
Seb

  reply	other threads:[~2007-05-25 13:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1198.1180044285.32220.help-gnu-emacs@gnu.org>
2007-05-25  5:28 ` sql-postgresql authentication failure Tim X
2007-05-25 13:07   ` Sebastian P. Luque [this message]
2007-05-25 19:12     ` Sebastian P. Luque
2007-05-26 17:00       ` James Cloos
     [not found]     ` <mailman.1241.1180121811.32220.help-gnu-emacs@gnu.org>
2007-05-26  7:52       ` Tim X
2007-05-24 22:04 Sebastian P. Luque

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bqg96ohe.fsf@patagonia.sebmags.homelinux.org \
    --to=spluque@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.