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
ed7e3c3e
Commit
ed7e3c3e
authored
Feb 21, 2015
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src: fix syntax errors
parent
25bd166a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
openvpn.auth-user.php
src/etc/inc/openvpn.auth-user.php
+7
-9
No files found.
src/etc/inc/openvpn.auth-user.php
View file @
ed7e3c3e
...
@@ -75,13 +75,13 @@ function getNasIP()
...
@@ -75,13 +75,13 @@ function getNasIP()
/* setup syslog logging */
/* setup syslog logging */
openlog
(
"openvpn"
,
LOG_ODELAY
,
LOG_AUTH
);
openlog
(
"openvpn"
,
LOG_ODELAY
,
LOG_AUTH
);
if
(
count
(
$argv
)
>
3
)
{
if
(
count
(
$argv
)
>
6
)
{
$authmodes
=
explode
(
","
,
$
5
);
$authmodes
=
explode
(
','
,
$argv
[
5
]
);
$username
=
$
1
;
$username
=
$
argv
[
1
]
;
$password
=
urldecode
(
$
2
);
$password
=
urldecode
(
$
argv
[
2
]
);
$common_name
=
$
3
;
$common_name
=
$
argv
[
3
]
;
$modeid
=
$
6
;
$modeid
=
$
argv
[
6
]
;
$strictusercn
=
$
4
==
"false"
?
false
:
true
;
$strictusercn
=
$
argv
[
4
]
==
'false'
?
false
:
true
;
}
else
{
}
else
{
/* read data from environment */
/* read data from environment */
$username
=
getenv
(
"username"
);
$username
=
getenv
(
"username"
);
...
@@ -194,5 +194,3 @@ if (isset($_GET))
...
@@ -194,5 +194,3 @@ if (isset($_GET))
echo
"OK"
;
echo
"OK"
;
else
else
exit
(
0
);
exit
(
0
);
?>
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