manager: display LDAP configuration as JSON (#68286)
This commit is contained in:
parent
718c698b17
commit
997a096697
|
@ -17,5 +17,5 @@
|
|||
</div>
|
||||
{% endif %}
|
||||
<h5>{% trans "Configuration:" %}</h5>
|
||||
<pre>{{ ldap.block|pprint }}</pre>
|
||||
<pre>{{ ldap.block }}</pre>
|
||||
</div>
|
||||
|
|
|
@ -693,7 +693,7 @@ class TechnicalInformationView(TitleMixin, MediaMixin, TemplateView):
|
|||
config['error'] = True
|
||||
config['errmsg'] = str(e)
|
||||
else:
|
||||
config['block'] = block # keep unmodified block for display
|
||||
config['block'] = json.dumps(block, indent=2, ensure_ascii=False)
|
||||
# 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
|
||||
|
|
Loading…
Reference in New Issue