Re: confusion about user paring with pg_hba and pg_ident

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: confusion about user paring with pg_hba and pg_ident
Дата
Msg-id 31990.1476195637@sss.pgh.pa.us
обсуждение исходный текст
Ответ на confusion about user paring with pg_hba and pg_ident  (arnaud gaboury <arnaud.gaboury@gmail.com>)
Ответы Re: confusion about user paring with pg_hba and pg_ident  (arnaud gaboury <arnaud.gaboury@gmail.com>)
Re: confusion about user paring with pg_hba and pg_ident  (arnaud gaboury <arnaud.gaboury@gmail.com>)
Список pgsql-general
arnaud gaboury <arnaud.gaboury@gmail.com> writes:
> I am a little confused about some of my settings when it comes to map
> linux/psql users.

I think you're misunderstanding what the user-mapping stuff does.
It does not silently translate the username in the connection request
to something else; rather, it checks whether a user having the given
external name is allowed to log in as a particular Postgres user.
So there's nothing particularly wrong with your config files, but your
expectation about how your Linux users should log in to the database is
mistaken.  dovecot needs to specify that it wants to log in as mailman,
and likewise mattermost needs to specify mmuser.

If it's not practical to make the client applications send non-default
user names, you'll need to rename the Postgres roles to match the
external user names.

            regards, tom lane


В списке pgsql-general по дате отправления:

Предыдущее
От: Lele Gaifax
Дата:
Сообщение: Re: Create recursive view schema.name
Следующее
От: Rémi Cura
Дата:
Сообщение: forcing a table (parent in inheritance) tor emain empty