On Wed, Oct 08, 2008 at 03:16:25PM -0700, Gary Winiger wrote:
> > In order to test pam_eval() I've written a pam_test.so.1 module that
> 
>       There's been one available since SunOS 5.6.  It's pam_sample(5).  It
>       may be a bit long in the tooth, but it's there.  If you recall,
>       I pointed you to one that I did to test the internal use only
>       libpam conversation code.  I suspect other folk who needed to
>       test libpam changes also have written test modules.

I remembered you had, but I couldn't recall where it was.

It took about two hours to get this module to do all that I wanted.
Although my pam_test is limited in that it uses __pam_display_msg()
instead of using the conversation function directly, which it really
ought to do, to give good control over conversations/prompts.

But all I wanted/needed was to be able to test pam_eval() and
depth/invocation limits so I could observe pam_eval()/include
interactions.

I should probably just merge the conversation code from your pam_sample
into my pam_test and put that somewhere where search engines can find
it.

>       It seems like something useful for a catch all OpenSolaris repo.
>       I'm not sure it's something to ship with the base OpenSolaris.

Well, certainly not in the install CD.

>       How many of us actually change libpam and need to exercise our
>       specific changes?

I was thinking this could help PAM *application* developers too.
Alright, so there's not many of *those* either :/

Nico
--

Reply via email to