Re: Local address from PAM module?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jason,
 Thanks for the response.  This module is actually designed for boxes
that have quite a few IPs bound to them.  I need to know what address
the client is connecting to on the box.  For example, I could have a
box with 10.1.1.1 and 10.1.1.2 bound to it.  If you connect to my
server, I need to know if you're connecting to 10.1.1.1 or 10.1.1.2,
this is part of our authentication.  Is there a way for me to find
this out?

Thanks!
-JD-

On Tue, 28 Sep 2004 11:13:30 -0600, Jason Gerfen
<jason.gerfen@xxxxxxxxxxxx> wrote:
> 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@xxxxxxxxxx
> >https://www.redhat.com/mailman/listinfo/pam-list
> >
> >
> 
> --
> Jason Gerfen
> Student Computing
> Marriott Library
> 801.585.9810
> jason.gerfen@xxxxxxxxxxxx
> 
> "And remember... If the ladies
>  don't find you handsome, they
>  should at least find you handy..."
>              ~The Red Green show
> 
>

_______________________________________________

Pam-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/pam-list

[Index of Archives]     [Fedora Users]     [Kernel]     [Red Hat Install]     [Linux for the blind]     [Gimp]

  Powered by Linux