Project

General

Profile

Actions

Bug #2018

closed

LDAP browser does not work in edit authentication servers page

Added by Max Lyth almost 10 years ago. Updated over 9 years ago.

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

100%

Estimated time:
Plus Target Version:
Release Notes:
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";

Actions

Also available in: Atom PDF