summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-11-11 23:46:42 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-11-11 23:46:42 +0000
commit6f891c200db6f6f59c2d2f7eaddd76a0ee4d8184 (patch)
tree29a41c23c8bdbf8a8b3ceeb776601992671a498f /etc
parentd7d8257c30a1be842f4b191e8b157a10e65a1940 (diff)
downloadpfsense-6f891c200db6f6f59c2d2f7eaddd76a0ee4d8184.zip
pfsense-6f891c200db6f6f59c2d2f7eaddd76a0ee4d8184.tar.gz
Another missed needed conf_mount_rw().
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/auth.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc
index 9e65c0a..4b3d6ce 100644
--- a/etc/inc/auth.inc
+++ b/etc/inc/auth.inc
@@ -120,6 +120,7 @@ function local_backed($username, $passwd) {
function local_sync_accounts() {
global $debug, $config;
+ conf_mount_rw();
/* remove local users to avoid uid conflicts */
$fd = popen("/usr/sbin/pw usershow -a", "r");
@@ -173,6 +174,9 @@ function local_sync_accounts() {
if (is_array($config['system']['group']))
foreach ($config['system']['group'] as $group)
local_group_set($group);
+
+ conf_mount_ro();
+
}
function local_user_set(& $user) {
@@ -265,7 +269,7 @@ function local_user_del($user) {
}
function local_user_set_password(& $user, $password) {
- conf_mount_rw();
+
$user['password'] = crypt($password);
$user['md5-hash'] = md5($password);
OpenPOWER on IntegriCloud