Koozali.org: home of the SME Server

password check

sekt

password check
« 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.

Offline gzartman

  • *
  • 306
  • +0/-0
    • LEI Engineering & Surveying
Re: password check
« Reply #1 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
----
Greg J. Zartman
LEI Engineering & Surveying

SME user and community member since 2000.