summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorJim Thompson <jim@netgate.com>2015-08-25 12:42:16 -0500
committerJim Thompson <jim@netgate.com>2015-08-25 12:42:16 -0500
commit4d9801c2dbd2b3e54a39578ee62b93af66607227 (patch)
tree62be220fcb3421d07b1cfc96f8693613dd1482a9 /etc
parent032f04564ea0627d21800ddf4bfdb472421df301 (diff)
downloadpfsense-4d9801c2dbd2b3e54a39578ee62b93af66607227.zip
pfsense-4d9801c2dbd2b3e54a39578ee62b93af66607227.tar.gz
Get rid of NT-hash crap
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/auth.inc4
1 files changed, 1 insertions, 3 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) {
OpenPOWER on IntegriCloud