{% load i18n %}
<h4>{% trans "Realm:" %} {{ ldap.realm }}</h4>
<div class="a2-manager-ldap-{{ ldap.realm }}">
{% if not error %}
<h5>{% blocktrans %}Base ldapsearch command:{% endblocktrans %}</h5>
 <pre>ldapsearch -v -H {{ ldap.ldap_uri }} -D "{{ ldap.binddn }}" -w "{{ ldap.bindpw }}" -b "{{ ldap.basedn }}"{% if ldap.user_filter or ldap.sync_ldap_users_filter %} "{% firstof ldap.sync_ldap_users_filter ldap.user_filter %}"{% endif %}</pre>
{% else %}
<div class="error">
{% blocktrans %}Error while attempting to connect to LDAP server, base ldapsearch command won't be displayed.{% endblocktrans %}
</div>
{% endif %}
<h5>{% trans "Configuration:" %}</h5>
<pre>{{ ldap|pprint }}</pre>
</div>
