On 18/11/2010 17:10, daniele menzaghi wrote:
is there a way to test if a password is valid or not?

Like with sudo command:
   sudo<command>
   password:

To be able answer that I need to understand what problem you are trying to solve and a little more context.

Why do you need to do this ?

Is it a specific users password ?

Or do you want to determine if a user can authenticate to the system at this time ?

Is this from C code or shell script ?


I'd recommend you start by looking at the documentation for PAM:

docs.sun.com Home  >
        Oracle Solaris 11 Express Software Developer Collection  >
        Developer's Guide to Oracle Solaris Security  >
        3.  Writing PAM Applications and Services

http://docs.sun.com/app/docs/doc/819-2145/ch3pam-01?l=en&a=view


--
Darren J Moffat
_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to