Re: pam auth - add rhost item - Mailing list pgsql-hackers

From Robert Haas
Subject Re: pam auth - add rhost item
Date
Msg-id CA+TgmoZ4ZCZ9sjkLLsBS4vHxKsTdzoKqgaZB5kGAbVxHa0KDrA@mail.gmail.com
Whole thread Raw
In response to Re: pam auth - add rhost item  (kolo hhmow <grzsmp@gmail.com>)
Responses Re: pam auth - add rhost item  (kolo hhmow <grzsmp@gmail.com>)
Re: pam auth - add rhost item  (kolo hhmow <grzsmp@gmail.com>)
List pgsql-hackers
On Tue, Oct 13, 2015 at 4:12 PM, kolo hhmow <grzsmp@gmail.com> wrote:
> Yes, sorry. I was in hurry when I posted this message.
> I dont understand whay in CheckPAMAuth function only PAM_USER item is adding
> to pam information before authenticate?
> Wheter it would be a problem to set additional pam information like
> PAM_RHOST which is very useful because we can use this item to restrict
> access to this ip address.
> I hope I'm more specific now and you will understand me.
> Sorry, but I'm not native english speaker.
> Patch in attachment, and link below to web-view on github:
> https://github.com/grzsmp/postgres/commit/5e2b102ec6de27e786d627623dcb187e997609e4

I don't personally know much about PAM, but if you want to restrict
access by IP, you could do that in pg_hba.conf.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Foreign join pushdown vs EvalPlanQual
Next
From: Robert Haas
Date:
Subject: Re: [PROPOSAL] DIAGNOSTICS = SKIPPED_ROW_COUNT