Re: initdb authentication

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Magnus Hagander <mha(at)sollentuna(dot)net>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: initdb authentication
Date: 2004-07-17 01:11:23
Message-ID: 200407170111.i6H1BNU16537@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches


I got a new idea on this. I think we should add an initdb option that
takes a string to specify the local authentication method:

initdb --localauth 'ident'

or whatever the user wants. I think this is more flexible and more
compact. It would default to 'trust', and the packagers could set it to
whatever they want. If their OS supports local ident, they can use
that.

Also keep in mind you might want some ident map file:

initdb --localauth 'ident mymap'

so you would need to allow multiple words in the string.

---------------------------------------------------------------------------

Magnus Hagander wrote:
> Here's a version of this patch that includes documentation updates.
>
> //Magnus
>
>
> >-----Original Message-----
> >From: Magnus Hagander
> >Sent: den 15 juli 2004 23:02
> >To: pgsql-patches(at)postgresql(dot)org
> >Subject: [PATCHES] initdb authentication
> >
> >
> >Ok, here is one more try at the initdb default authentication stuff.
> >This one adds the switches "--ident" and "--trust", which will
> >configure
> >pg_hba.conf with ident and trust authentication respectively. If trust
> >authentication is selected, a warning is written to
> >pg_hba.conf. The old
> >switches for password prompt/file still apply.
> >
> >This one makes it mandatory to pick some kind of authentication. If
> >that's not wanted, it's easy to change it to default to trust (which I
> >think is wrong, but we've been through that already..)
> >
> >Oh, and this time, the comments are updated :-)
> >
> >//Magnus
> >
> >

Content-Description: initdb_auth.patch

[ Attachment, skipping... ]

>
> ---------------------------(end of broadcast)---------------------------
> TIP 8: explain analyze is your friend

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Matthew T. O'Connor 2004-07-17 05:48:47 Re: pg_autovacuum integration attempt #2
Previous Message Oliver Jowett 2004-07-16 22:50:20 Re: [subxact] Proof-of-concept: report nest level to client