Re: db_user_namespace, md5 and changing passwords

From: "Fernando Moreno" <azazel(dot)7(at)gmail(dot)com>
To: "Alvaro Herrera" <alvherre(at)commandprompt(dot)com>
Cc: "Bruce Momjian" <bruce(at)momjian(dot)us>, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL <pgsql-general(at)postgresql(dot)org>
Subject: Re: db_user_namespace, md5 and changing passwords
Date: 2008-10-14 17:04:59
Message-ID: b1c45530810141004h4a0cb310m5bf99ad79ee86ff0@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

2008/10/7 Alvaro Herrera <alvherre(at)commandprompt(dot)com>

> Bruce Momjian escribió:
>
> > Well, I posted about this in August with no one replying:
> >
> > http://archives.postgresql.org/pgsql-admin/2008-08/msg00068.php
> >
> > Basically, there is a mismatch between what libpq and the backend think
> > is the username, and that affects how MD5 uses the salt on the two sides
> > of the connection.
>
> I totally agree that this needs a redesign, but we must provide
> something to replace it with, not just rip it off.
>
> > The minimal solution would be to document this and print a proper
> > error message.
>
> Seems fair.
>
> --
> Alvaro Herrera
> http://www.CommandPrompt.com/
> PostgreSQL Replication, Consulting, Custom Development, 24x7 support
>

Thanks for the answers, I wasn't aware of the conflict between md5-auth and
db_user_namespace, but it seems highly related to my problem.

Could you suggest me another way to handle this? Managing users in the usual
way is likely to work fine most of the time, but not when an specific
database(+users) is backed up and restored in the same server, or when two
or more databases (corresponding to different applications) try to create
users with the same name.

Right now there's only one database in the server, but the backup module
should be ready to handle these situations in the future.

Cheers.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Mikkel Høgh 2008-10-14 17:05:42 Re: Drupal and PostgreSQL - performance issues?
Previous Message Ivan Sergio Borgonovo 2008-10-14 16:44:56 Re: Drupal and PostgreSQL - performance issues?

Browse pgsql-hackers by date

  From Date Subject
Next Message Zhe He 2008-10-14 17:27:51 Question about implementing a new operation
Previous Message Andreas Joseph Krogh 2008-10-14 17:04:32 Re: Window Functions