Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
76283768
Commit
76283768
authored
Dec 18, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rc: chain local_sync_accounts() into system_login_configure()
parent
98ffa9fe
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
11 deletions
+4
-11
auth.inc
src/etc/inc/auth.inc
+1
-10
system.inc
src/etc/inc/system.inc
+3
-0
rc.bootup
src/etc/rc.bootup
+0
-1
No files found.
src/etc/inc/auth.inc
View file @
76283768
...
@@ -337,15 +337,10 @@ function userHasPrivilege($userent, $privid = false)
...
@@ -337,15 +337,10 @@ function userHasPrivilege($userent, $privid = false)
return
true
;
return
true
;
}
}
function
local_sync_accounts
(
$verbose
=
false
)
function
local_sync_accounts
()
{
{
global
$config
;
global
$config
;
if
(
$verbose
)
{
echo
'Synchronizing user settings...'
;
flush
();
}
/* remove local users to avoid uid conflicts */
/* remove local users to avoid uid conflicts */
$fd
=
popen
(
'/usr/sbin/pw usershow -a'
,
'r'
);
$fd
=
popen
(
'/usr/sbin/pw usershow -a'
,
'r'
);
if
(
$fd
)
{
if
(
$fd
)
{
...
@@ -395,10 +390,6 @@ function local_sync_accounts($verbose = false)
...
@@ -395,10 +390,6 @@ function local_sync_accounts($verbose = false)
local_group_set
(
$group
);
local_group_set
(
$group
);
}
}
}
}
if
(
$verbose
)
{
echo
"done.
\n
"
;
}
}
}
function
local_user_set
(
&
$user
,
$force_unlock
=
false
)
function
local_user_set
(
&
$user
,
$force_unlock
=
false
)
...
...
src/etc/inc/system.inc
View file @
76283768
...
@@ -1702,6 +1702,9 @@ function system_login_configure($verbose = false)
...
@@ -1702,6 +1702,9 @@ function system_login_configure($verbose = false)
flush
();
flush
();
}
}
/* depends on user account locking */
local_sync_accounts
();
configd_run
(
'template reload OPNsense/Auth'
);
configd_run
(
'template reload OPNsense/Auth'
);
$serialspeed
=
(
!
empty
(
$config
[
'system'
][
'serialspeed'
])
&&
is_numeric
(
$config
[
'system'
][
'serialspeed'
]))
?
$config
[
'system'
][
'serialspeed'
]
:
'115200'
;
$serialspeed
=
(
!
empty
(
$config
[
'system'
][
'serialspeed'
])
&&
is_numeric
(
$config
[
'system'
][
'serialspeed'
]))
?
$config
[
'system'
][
'serialspeed'
]
:
'115200'
;
...
...
src/etc/rc.bootup
View file @
76283768
...
@@ -122,7 +122,6 @@ system_resolvconf_generate(true);
...
@@ -122,7 +122,6 @@ system_resolvconf_generate(true);
filter_configure_sync
(
true
);
filter_configure_sync
(
true
);
filter_pflog_start
(
true
);
filter_pflog_start
(
true
);
setup_gateways_monitor
(
true
);
setup_gateways_monitor
(
true
);
local_sync_accounts
(
true
);
system_webgui_configure
(
true
);
system_webgui_configure
(
true
);
system_cron_configure
(
true
);
system_cron_configure
(
true
);
system_routing_configure
(
''
,
true
);
system_routing_configure
(
''
,
true
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment