Coding Pam.
Les Mikesell
les at futuresource.com
Fri Jun 10 14:40:39 UTC 2005
On Fri, 2005-06-10 at 03:01, Simon Johansson wrote:
> 1) The program I am manage is using a webpage for the user to login
> to. So I cant use misc_conv an as I understand is that misc_conv and
> pam_misc.h is Linux specified. So how should I write the program so that
> misc_conv is not used so that I can send in the password before
> pam_authenticate. I like to do something like this
> retval=pam_set_item(pamh,PAM_USER,user); but for password.
>
> 2) This should also work on Solaris and in the further Digital.
> What I would like is a small example code. So if you known some program or
> webpage that have this please show me the way.
If you are running under apache, why not use mod_auth_pam:
http://pam.sourceforge.net/mod_auth_pam/
--
Les Mikesell
les at futuresource.com
More information about the Pam-list
mailing list