Bug #2018
LDAP browser does not work in edit authentication servers page
100%
Description
There is a Javascript error in the edit authentication servers page /system_authservers.php?act=edit&id=0
Here the Select button should show a popup window with suggested DNs. In my configuration the Select button does nothing which I have traced to the line:
url += '&cert=' + document.getElementById("ldap_caref").value;
in the function:
function select_clicked() {
with the error:
Cannot read property 'value' of null
I think you need to add an id attribute to the 'ldap_caref' form field in the html web interface. I fixed it by editing /usr/local/www/system_authservers.php and changing:
if ($pconfig['ldap_caref'] == $ca['refid'])
$selected = "selected";
to:
if ($pconfig['ldap_caref'] == $ca['refid'])
$selected = "id='ldap_caref' selected";
Associated revisions
Resolves #2018. Add an id to the html object to make javascript work
History
#1
Updated by Ermal Luçi over 9 years ago
- Status changed from New to Feedback
- % Done changed from 0 to 100
Applied in changeset f64532e5cb1a0f39c2ab84252754f5dd5967db3d.
#2
Updated by Ermal Luçi over 9 years ago
Applied in changeset a8db73919ca72947678142249138ba6c55841c5b.
#3
Updated by Jim Pingle almost 9 years ago
- Status changed from Feedback to Resolved
Resolves #2018. Add an id to the html object to make javascript work