manager: display unmodified LDAP configuration in tech info page (#68279)
This commit is contained in:
parent
c5b4c0205c
commit
054cc05f49
|
@ -13,5 +13,5 @@
|
|||
</div>
|
||||
{% endif %}
|
||||
<h5>{% trans "Configuration:" %}</h5>
|
||||
<pre>{{ ldap|pprint }}</pre>
|
||||
<pre>{{ ldap.block|pprint }}</pre>
|
||||
</div>
|
||||
|
|
|
@ -693,6 +693,7 @@ class TechnicalInformationView(TitleMixin, MediaMixin, TemplateView):
|
|||
config['error'] = True
|
||||
config['errmsg'] = str(e)
|
||||
else:
|
||||
config['block'] = block # keep unmodified block for display
|
||||
# retrieve ldap uri, not directly visible in configuration block
|
||||
config['ldap_uri'] = conn.get_option(ldap.OPT_URI)
|
||||
# user filters need to be formatted to ldapsearch syntax
|
||||
|
|
|
@ -2263,7 +2263,6 @@ def test_technical_info_ldap(app, admin, superuser, slapd, settings, monkeypatch
|
|||
'keep_password_in_session',
|
||||
'keyfile',
|
||||
'ldap_options',
|
||||
'ldap_uri',
|
||||
'limit_to_realm',
|
||||
'lname_field',
|
||||
'lookups',
|
||||
|
|
Loading…
Reference in New Issue