pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feeduser management and edbldr use
2+ messages / 2 participants
[nested] [flat]
* user management and edbldr use
@ 2011-10-24 12:58 Karuna Karpe <karuna.karpe@os3infotech.com>
2011-10-24 19:35 ` Re: user management and edbldr use Kevin Grittner <Kevin.Grittner@wicourts.gov>
0 siblings, 1 reply; 2+ messages in thread
From: Karuna Karpe @ 2011-10-24 12:58 UTC (permalink / raw)
To: pgsql-admin
Hello,
I am create one linux user that "dba" with password "password". I
create one database user "dba_user" with password "dba_user".
I add entry into pg_ident.conf
MAPNAME SYSTEM-USERNAME PG-USERNAME
dba_map dba dba_user
I want to connect dba user to database edb.
./psql -d edb -U dba
it give error can't connect. Please explain me how do this?
Regards,
karuna
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: user management and edbldr use
2011-10-24 12:58 user management and edbldr use Karuna Karpe <karuna.karpe@os3infotech.com>
@ 2011-10-24 19:35 ` Kevin Grittner <Kevin.Grittner@wicourts.gov>
0 siblings, 0 replies; 2+ messages in thread
From: Kevin Grittner @ 2011-10-24 19:35 UTC (permalink / raw)
To: Karuna Karpe <karuna.karpe@os3infotech.com>; pgsql-admin
Karuna Karpe <karuna.karpe@os3infotech.com> wrote:
> I am create one linux user that "dba"
> I create one database user "dba_user"
> I add entry into pg_ident.conf
>
> MAPNAME SYSTEM-USERNAME PG-USERNAME
> dba_map dba dba_user
>
> I want to connect dba user to database edb.
> ./psql -d edb -U dba
>
> it give error can't connect. Please explain me how do this?
You didn't show your pg_hba.conf file, which is a critical part of
this picture; but from what you did show, it appears that you're not
trying to use this correctly. The mapping you show would allow a
user who had been authenticated as dba externally to log in to
PostgreSQL as dba_user. You should be using the PostgreSQL user
name on the psql command line, not the OS user name. You need a
pg_hba.conf line which specifies how the OS user will be
authenticated and specifying which map will be used to get from that
OS user to which PostgreSQL user(s). Note that there might be more
than one PostgreSQL user that a particular OS user is allowed to use
for connections.
http://www.postgresql.org/docs/current/interactive/auth-username-maps.html
-Kevin
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2011-10-24 19:35 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-10-24 12:58 user management and edbldr use Karuna Karpe <karuna.karpe@os3infotech.com>
2011-10-24 19:35 ` Kevin Grittner <Kevin.Grittner@wicourts.gov>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox