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
cc05a977
Commit
cc05a977
authored
Dec 18, 2016
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(pam) for non local users trigger different exit code (user doesn't exist)
parent
ff8632c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
opnsense-auth
src/sbin/opnsense-auth
+3
-0
No files found.
src/sbin/opnsense-auth
View file @
cc05a977
...
...
@@ -83,6 +83,9 @@ if (!empty($auth_data['user']) && isset($auth_data['password'])) {
syslog
(
LOG_NOTICE
,
"user '"
.
$auth_data
[
'user'
]
.
"' authenticated successfully (using fallback)
\n
"
);
$exit_status
=
0
;
}
else
{
if
(
getUserEntry
(
$auth_data
[
'user'
])
===
false
)
{
$exit_status
=
2
;
}
syslog
(
LOG_WARNING
,
"user '"
.
$auth_data
[
'user'
]
.
"' could not authenticate.
\n
"
);
}
}
...
...
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