----- Original Message ----- From: pam-list-request@xxxxxxxxxx Date: Monday, March 10, 2003 9:01 am Subject: Pam-list digest, Vol 1 #730 - 1 msg > Send submissions to > pam-list@xxxxxxxxxx > > To subscribe or unsubscribe via the World Wide Web, visit > https://listman.redhat.com/mailman/listinfo/pam-list > or, via email, send a message with subject or body 'help' to > pam-list-request@xxxxxxxxxx > > You can reach the person managing the list at > pam-list-admin@xxxxxxxxxx > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Pam-list digest..." > >
Today's Topics: 1. PAM conversation nightmares! (Allen Van Der Ross) Content-type: multipart/digest; boundary="__--__--" --__--__-- Message: 1 Return-Path: <mail@xxxxxxxxxx> Delivered-To: pam-list@xxxxxxxxxxxxxxxxxx Subject: PAM conversation nightmares! From: Allen Van Der Ross <allen@xxxxxxxxxxxx> To: PAM list <pam-list@xxxxxxxxxx> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: 10 Mar 2003 12:19:07 +0200 Message-Id: <1047291548.3716.10.camel@xxxxxxxxxxxxxxxx> Mime-Version: 1.0 Sender: pam-list-admin@xxxxxxxxxx Precedence: bulk Reply-To: pam-list@xxxxxxxxxx List-Help: <mailto:pam-list-request@xxxxxxxxxx?subject=help> List-Post: <mailto:pam-list@xxxxxxxxxx> List-Subscribe: <https://listman.redhat.com/mailman/listinfo/pam-list>, <mailto:pam-list-request@xxxxxxxxxx?subject=subscribe> List-Id: Pluggable Authentication Modules <pam-list.redhat.com> List-Unsubscribe: <https://listman.redhat.com/mailman/listinfo/pam-list>, <mailto:pam-list-request@xxxxxxxxxx?subject=unsubscribe> List-Archive: <https://listman.redhat.com/mailman/private/pam-list/> Hi, Please help me. I need to get a conversation function for a command line program that only does the following: if (!root) authenticate user with pam_authenticate() change user's password pam_chauthtok(); All the conv() needs to do is: - Prompt for the password with a string I specify instead of the msg in struct message. - Read the password (prolly with getpass() too). - Save the password in a program global - return to PAM. I cannot get my scrumblings of code to work, so if someone could please send me a skeleton that is working, I will do the necessary. **PS: When I call pam_start() with my conv(), does my conv() only get called when I call pam_chauthtok()? Or can I also call it for pam_authenticate() - where the program also interacts with the user? Thanks, Allen. --__--__----
_______________________________________________ Pam-list@xxxxxxxxxx https://listman.redhat.com/mailman/listinfo/pam-list
begin:vcard n:Gaddam;Kali version:2.1 email;internet:kali1@xxxxxxxxxxxxx end:vcard