summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Grooms <mgrooms@pfsense.org>2008-08-06 07:09:59 +0000
committerMatthew Grooms <mgrooms@pfsense.org>2008-08-06 07:09:59 +0000
commit651d468705f4317c7c6a08ee7d493c9f879ebb3c (patch)
tree2b62f752a766c5556b0daac9334ac0fae57fd10f
parent5285a0e316b58fa3865a353b1a946118e4e6cbbd (diff)
downloadpfsense-651d468705f4317c7c6a08ee7d493c9f879ebb3c.zip
pfsense-651d468705f4317c7c6a08ee7d493c9f879ebb3c.tar.gz
Now that we have given the mhash extension a bit of time to settle into
the tree, enable nthash password generation.
-rw-r--r--etc/inc/auth.inc11
1 files changed, 5 insertions, 6 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc
index eed4c49..e9129cf 100644
--- a/etc/inc/auth.inc
+++ b/etc/inc/auth.inc
@@ -37,6 +37,11 @@
DISABLE_PHP_LINT_CHECKING
*/
+/*
+ * NOTE : Portions of the mschapv2 support was based on the BSD licensed CHAP.php
+ * file courtesy of Michael Retterklieber.
+ */
+
require_once("functions.inc");
$groupindex = index_groups();
@@ -251,11 +256,6 @@ function local_user_set_password(& $user, $password) {
$user['password'] = crypt($password);
$user['md5-hash'] = md5($password);
- /*
- * NOTE : This section of code id based on the BSD
- * licensed CHAP.php courtesy of Michael Retterklieber.
- */
- /* Waiting for mhash to settle into the tree
// Converts ascii to unicode.
$astr = (string) $password;
$ustr = '';
@@ -266,7 +266,6 @@ function local_user_set_password(& $user, $password) {
// Generate the NT-HASH from the unicode string
$user['nt-hash'] = bin2hex(mhash(MHASH_MD4, $ustr));
- */
}
function local_user_get_groups($user, $all = false) {
OpenPOWER on IntegriCloud