From 4d9801c2dbd2b3e54a39578ee62b93af66607227 Mon Sep 17 00:00:00 2001 From: Jim Thompson Date: Tue, 25 Aug 2015 12:42:16 -0500 Subject: Get rid of NT-hash crap --- etc/inc/auth.inc | 4 +--- usr/local/www/status.php | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc index 9c5bba6..3c0acaa 100644 --- a/etc/inc/auth.inc +++ b/etc/inc/auth.inc @@ -561,7 +561,7 @@ function local_user_del($user) { local_group_del_user($user); } -function local_user_set_password(& $user, $password) { +function local_user_set_password(&$user, $password) { $user['password'] = crypt($password); $user['md5-hash'] = md5($password); @@ -574,8 +574,6 @@ function local_user_set_password(& $user, $password) { $ustr .= sprintf("%X", $a); } - // Generate the NT-HASH from the unicode string - $user['nt-hash'] = bin2hex(hash("md4", $ustr)); } function local_user_get_groups($user, $all = false) { diff --git a/usr/local/www/status.php b/usr/local/www/status.php index b969e0a..6561c98 100755 --- a/usr/local/www/status.php +++ b/usr/local/www/status.php @@ -88,7 +88,6 @@ function doCmdT($title, $command) { $line = preg_replace("/.*?<\\/ipsecpsk>/", "xxxxx", $line); $line = preg_replace("/.*?<\\/md5-hash>/", "xxxxx", $line); $line = preg_replace("/.*?<\\/md5password>/", "xxxxx", $line); - $line = preg_replace("/.*?<\\/nt-hash>/", "xxxxx", $line); $line = preg_replace("/.*?<\\/radius_secret>/", "xxxxx", $line); $line = preg_replace("/.*?<\\/ldap_bindpw>/", "xxxxx", $line); $line = preg_replace("/.*?<\\/passwordagain>/", "xxxxx", $line); -- cgit v1.1