FYI.
--- Begin Message ---
- To: Jason Robertson <jason@ifuture.com>
- Subject: Re: Pam Module for postgres
- From: Andrew Morgan <morgan@transmeta.com>
- Date: Fri, 30 Mar 2001 09:28:05 -0800
- Organization: Transmeta Corporation
This is really hard under PAM. Basically, you have to rely on the
PAM_RHOST item, which may or may not be set by the application.
If you want to play around a little, I'll accept patches for pam_netid
which does something so sick I haven't yet had the heart to put it in
the main distribution -- its also very Linux specific. This module could
be modified to set PAM_RHOST (and even PAM_RUSER but it wouldn't be that
trust worthy).
http://www.kernel.org/pub/linux/libs/pam/pre/modules/pam_netid.tar.gz
Cheers
Andrew
Jason Robertson wrote:
> Oh another question, do you know of a way to grab the IP Address, from the
> connection, where it's not added to the structure by any source? I am
> trying to figure this out for the logging option.
--- End Message ---