Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: sekt on September 29, 2004, 04:05:18 PM

Title: password check
Post by: sekt on September 29, 2004, 04:05:18 PM
Is there someone that now how to make a password check against the userdatabase, so i can use only one password database, I will like to test from a php-script that can return true or false.

Sekt.
Title: Re: password check
Post by: gzartman on September 30, 2004, 05:49:10 AM
Quote from: "sekt"
Is there someone that now how to make a password check against the userdatabase, so i can use only one password database, I will like to test from a php-script that can return true or false.
Sekt.


Passwords are stored on the system encrypted, so there really isn't a way to check them in a literal sense.  What you'd need to do is use a mechanism that can encypt the test password and check that string against what's stored in the password dbase.

This is a very commmon hurdle.

Greg Zartman