Project

General

Profile

Bug #2018

LDAP browser does not work in edit authentication servers page

Added by Max Lyth about 8 years ago. Updated over 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Web Interface
Target version:
-
Start date:
11/22/2011
Due date:
% Done:

100%

Estimated time:
Affected Version:
2.0
Affected Architecture:

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

Revision f64532e5 (diff)
Added by Ermal Luçi about 8 years ago

Resolves #2018. Add an id to the html object to make javascript work

Revision a8db7391 (diff)
Added by Ermal Luçi about 8 years ago

Resolves #2018. Add an id to the html object to make javascript work

History

#1 Updated by Ermal Luçi about 8 years ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 100

#2 Updated by Ermal Luçi about 8 years ago

#3 Updated by Jim Pingle over 7 years ago

  • Status changed from Feedback to Resolved

Also available in: Atom PDF