manager: display unmodified LDAP configuration in tech info page (#68279)

This commit is contained in:
Frédéric Péters 2022-08-19 10:17:41 +02:00
parent c5b4c0205c
commit 054cc05f49
3 changed files with 2 additions and 2 deletions

View File

@ -13,5 +13,5 @@
</div>
{% endif %}
<h5>{% trans "Configuration:" %}</h5>
<pre>{{ ldap|pprint }}</pre>
<pre>{{ ldap.block|pprint }}</pre>
</div>

View File

@ -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

View File

@ -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',