Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 07 Dec 2013 20:07:42 +0300
From:      Daniel Corbe <corbe@corbe.net>
To:        Waitman Gobble <gobble.wa@gmail.com>
Cc:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: PAM Application Programming and Password prompts
Message-ID:  <xon1u1oegip.fsf@desktop.hga1.somcable.com>
In-Reply-To: <CAFuo_fwYUYctvzZ__bEjrW_Aqz==C0O%2ByacixpZo-piAMDHpew@mail.gmail.com> (Waitman Gobble's message of "Sat, 7 Dec 2013 07:39:56 -0800")
References:  <xon7gbgel30.fsf@desktop.hga1.somcable.com> <CAFuo_fwYUYctvzZ__bEjrW_Aqz==C0O%2ByacixpZo-piAMDHpew@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

Waitman Gobble <gobble.wa@gmail.com> writes:

> On Sat, Dec 7, 2013 at 7:29 AM, Daniel Corbe <corbe@corbe.net> wrote:
>
>     Hi,
>    
>     I hope this is the right place to ask programming related questions.
>    
>     I'm looking at the sample PAM application in the handbook and it appears
>     straight-froward enough.
>    
>     But pam_authenticate() seems to emit its own password prompt and there
>     seems to be no obvious way to simply feed it a plain text password.
>    
>     I'm manually collecting a password from the user.
>    
>     Can someone point me in the right direction?
>     _______________________________________________
>     freebsd-questions@freebsd.org mailing list
>     http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>     To unsubscribe, send any mail to "
>     freebsd-questions-unsubscribe@freebsd.org"
>
> Take a look at the src for su in src/usr.bin/su/su.c
> ie,
> https://dx.burplex.com/src/usr.bin/su/su.c
>
> Also, here is a simple example of Qt authenticating with pam.
>
> https://github.com/creamy/qt-pam-example/blob/master/mainwindow.cpp
>
> --
> Waitman Gobble
> San Jose California USA
> 510-830-7975

I think you answered my question with the second link.  I need to look
at pam_conv a little more closely. 

Thank you.

-Daniel



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xon1u1oegip.fsf>