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
abb42033
Commit
abb42033
authored
Jul 28, 2015
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(legacy/ldap) more ldap fixes
parent
5c8014c1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
11 deletions
+12
-11
system_authservers.php
src/www/system_authservers.php
+7
-8
system_usermanager_settings_ldapacpicker.php
src/www/system_usermanager_settings_ldapacpicker.php
+5
-3
No files found.
src/www/system_authservers.php
View file @
abb42033
...
...
@@ -195,7 +195,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
if
(
$pconfig
[
'type'
]
==
"ldap"
)
{
$reqdfields
=
explode
(
" "
,
"name type ldap_host ldap_port "
.
"ldap_urltype ldap_protver ldap_scope "
.
"ldap_attr_user ldap
_attr_group ldap_attr_member ldap
authcontainers"
);
"ldap_attr_user ldapauthcontainers"
);
$reqdfieldsn
=
array
(
gettext
(
"Descriptive name"
),
gettext
(
"Type"
),
...
...
@@ -426,8 +426,7 @@ function select_clicked() {
if
(
document
.
getElementById
(
"
ldap_port
"
).
value
==
''
||
document
.
getElementById
(
"
ldap_host
"
).
value
==
''
||
document
.
getElementById
(
"
ldap_scope
"
).
value
==
''
||
document
.
getElementById
(
"
ldap_basedn
"
).
value
==
''
||
document
.
getElementById
(
"
ldapauthcontainers
"
).
value
==
''
)
{
document
.
getElementById
(
"
ldap_basedn
"
).
value
==
''
)
{
alert
(
"
<?=
gettext
(
"Please fill the required values."
);
?>
"
);
return
;
}
...
...
@@ -925,16 +924,16 @@ endif; ?>
if
(
document
.
getElementById
(
"
ldap_port
"
).
value
==
""
)
ldap_urlchange
();
<?php
if
(
$pconfig
[
'type'
]
==
"ldap"
)
{
echo
' ldap_bindchange();\n'
;
echo
' if (document.getElementById("ldap_port").value == "") ldap_urlchange();\n'
;
echo
" ldap_bindchange();
\n
"
;
echo
" if (document.getElementById(
\"
ldap_port
\"
).value ==
\"\"
) ldap_urlchange();
\n
"
;
if
(
!
isset
(
$id
))
{
echo
' ldap_tmplchange();\n'
;
echo
" ldap_tmplchange();
\n
"
;
}
}
else
{
echo
' radius_srvcschange();\n'
;
echo
" radius_srvcschange();
\n
"
;
}
?>
}
}
);
//]]>
</script>
...
...
src/www/system_usermanager_settings_ldapacpicker.php
View file @
abb42033
...
...
@@ -33,9 +33,11 @@ include('head.inc');
$ous
=
array
();
if
(
isset
(
$_GET
[
'basedn'
])
&&
isset
(
$_GET
[
'host'
]))
{
if
(
isset
(
$_GET
[
'cert'
]))
{
$authcfg
=
array
();
$authcfg
[
'ldap_caref'
]
=
isset
(
$_GET
[
'cert'
])
?
$_GET
[
'cert'
]
:
null
;
$authcfg
[
'ldap_caref'
]
=
$_GET
[
'cert'
]
;
ldap_setup_caenv
(
$authcfg
);
}
$ldap_authcn
=
isset
(
$_GET
[
'authcn'
])
?
explode
(
";"
,
$_GET
[
'authcn'
])
:
array
();
if
(
isset
(
$_GET
[
'urltype'
])
&&
strstr
(
$_GET
[
'urltype'
],
"Standard"
))
{
...
...
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