From 6f891c200db6f6f59c2d2f7eaddd76a0ee4d8184 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 11 Nov 2008 23:46:42 +0000 Subject: Another missed needed conf_mount_rw(). --- etc/inc/auth.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'etc/inc') 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); -- cgit v1.1