diff options
author | Jim Thompson <jim@netgate.com> | 2015-08-25 14:53:12 -0500 |
---|---|---|
committer | Jim Thompson <jim@netgate.com> | 2015-08-25 14:54:16 -0500 |
commit | 8e71705835ad3b4d53abf8e8c2bf224f055d09ba (patch) | |
tree | a6df384f16cf82380393796816e41eb84d04510e /src | |
parent | afbac7f38b75db124f3d2570fa37916d93f67675 (diff) | |
download | pfsense-8e71705835ad3b4d53abf8e8c2bf224f055d09ba.zip pfsense-8e71705835ad3b4d53abf8e8c2bf224f055d09ba.tar.gz |
update config to rid of nt-hash
credit to: das projekt der goatse
Diffstat (limited to 'src')
-rw-r--r-- | src/etc/inc/globals.inc | 2 | ||||
-rw-r--r-- | src/etc/inc/upgrade_config.inc | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/src/etc/inc/globals.inc b/src/etc/inc/globals.inc index f7fe0fc..a5c5312 100644 --- a/src/etc/inc/globals.inc +++ b/src/etc/inc/globals.inc @@ -74,7 +74,7 @@ $g = array( "disablecrashreporter" => false, "crashreporterurl" => "https://crashreporter.pfsense.org/crash_reporter.php", "debug" => false, - "latest_config" => "11.9", + "latest_config" => "12.1", "nopkg_platforms" => array("cdrom"), "minimum_ram_warning" => "101", "minimum_ram_warning_text" => "128 MB", diff --git a/src/etc/inc/upgrade_config.inc b/src/etc/inc/upgrade_config.inc index 3f14248..200b3a6 100644 --- a/src/etc/inc/upgrade_config.inc +++ b/src/etc/inc/upgrade_config.inc @@ -3822,4 +3822,13 @@ function upgrade_119_to_120() { } } +function upgrade_120_to_121() { + global $config; + foreach ($config['system']['user'] as &$user) { + if (isset($user['nt-hash'])) { + unset($user['nt-hash']); + } + } +} + ?> |