Local address from PAM module?
Jason Gerfen
jason.gerfen at scl.utah.edu
Tue Sep 28 17:13:30 UTC 2004
the localhost? You could to a gethostbyname(). See
http://www.die.net/doc/linux/man/man3/gethostbyname.3.html.
Hope that is what you are looking for, I have never used this function
but it should work fine in a shared object.
Jason DiCioccio wrote:
>Greetings.
> I am dabbling for the first time in the PAM API, and have
>encountered a bump in the what has otherwise been smooth road. I am
>writing a module that needs to check the local address that a user is
>connecting to in order to determine where to look next for its
>information. It is basically a virtual hosting type setup. My
>question is, how can I obtain this information, if at all, from my
>module? I would like this to be compatible with most things that
>already use pam without me having to patch them to do a pam_set_item()
>call. Is this possible?
>
> Thanks in advance!
> Jason DiCioccio
>
>_______________________________________________
>Pam-list mailing list
>Pam-list at redhat.com
>https://www.redhat.com/mailman/listinfo/pam-list
>
>
--
Jason Gerfen
Student Computing
Marriott Library
801.585.9810
jason.gerfen at scl.utah.edu
"And remember... If the ladies
don't find you handsome, they
should at least find you handy..."
~The Red Green show
More information about the Pam-list
mailing list