>>> I'm looking for the simplest way to verify a linux user password from
>>> within a servlet.
[quoted text clipped - 22 lines]
>
> --Mike Amling
You also assumed that the said Linux system was running an ftp server...
To the OP, you might look at JAAS. I've never tried it myself, but it looks like
it interfaces to PAM, which I think all current Linux flavours use for
authentication.
The JAAS overview has this to say:
"JAAS APIs can be used for both authentication and authorization, as follows:
* For authenticating users to determine securely who is executing Java code,
regardless of whether the code is a stand-alone Java technology-based
application, an applet, an Enterprise JavaBean (EJB) component, or a servlet."
So it claims it can authenticate from a servlet. It's got to be worth a closer
look.

Signature
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@ion.le.ac.uk
Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555
TRW - 08 Dec 2005 18:39 GMT
Thanks for the responses.
I was looking at JAAS. However, that all depends on the underlying
LoginModule to do the a/a work
which is an abstract class. Therefore, logic still needs to be written
to access the Linux username
and password.
I was hoping to find a Linux LoginModule in OpenSource....no luck so
far.
There must be a way to directly access the shadow file on the Linux
machine.