diff options
author | Matthew Grooms <mgrooms@pfsense.org> | 2008-08-03 17:54:35 +0000 |
---|---|---|
committer | Matthew Grooms <mgrooms@pfsense.org> | 2008-08-03 17:54:35 +0000 |
commit | 659fa7f23bb28d316ec6c99a538ee74bc7ffc0a3 (patch) | |
tree | 31ce9604a21b27b3f88c50332251ea570136c817 /etc/inc/system.inc | |
parent | 5064cec7670cffa8efa3d7276ebf13c2c9d5e23c (diff) | |
download | pfsense-659fa7f23bb28d316ec6c99a538ee74bc7ffc0a3.zip pfsense-659fa7f23bb28d316ec6c99a538ee74bc7ffc0a3.tar.gz |
Cleanup authentication code. The basic auth method, the passwd, htpasswd
and pam backing functions have been removed. The basic auth method was
legacy code and the backing functions were redundant with no added value
that I could see. A simplified replacement backing function named
local_backed has been added that authenticates to the local configuration
info which should be identical to system pwdb credentials. Since the
htpassword file is no longer required, sync_webgui_passwords and its
wrapper function system_password_configure have been removed.
The local account management functions were renamed for consistency. A few
minor bugs related to setting local passwords have also been corrected.
Diffstat (limited to 'etc/inc/system.inc')
-rw-r--r-- | etc/inc/system.inc | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc index 24617c9..c161e8f 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -494,9 +494,6 @@ function system_webgui_start() { sleep(1); - /* generate password file */ - system_password_configure(); - chdir($g['www_path']); /* non-standard port? */ @@ -592,9 +589,6 @@ function system_webgui_start_old() { /* kill any running mini_httpd */ killbypid("{$g['varrun_path']}/mini_httpd.pid"); - /* generate password file */ - system_password_configure(); - chdir($g['www_path']); /* non-standard port? */ @@ -1000,21 +994,6 @@ EOD; } -function system_password_configure() { - global $config, $g; - if(isset($config['system']['developerspew'])) { - $mt = microtime(); - echo "system_password_configure() being called $mt\n"; - } - - /* sync passwords */ - sync_webgui_passwords(); - - /* !NOTE! conf_mount_ro is done by sync_webgui_passwords() */ - - return 0; -} - function system_timezone_configure() { global $config, $g; if(isset($config['system']['developerspew'])) { @@ -1308,4 +1287,4 @@ function enable_watchdog() { } } -?>
\ No newline at end of file +?> |