{% extends 'safety/members/index.html' %} {% block toolbar_member_ldap %}class="active"{%endblock%} {% block member_heading%}{%endblock%} {% block member_content %} {% if form.non_field_errors %}
{% for error in form.non_field_errors %} {{ error|escape }} {% endfor %}
{% endif %}
{% csrf_token %}
{% if form.name.errors %} {{form.name.errors|striptags}} {% else %} Type the partial name of Active Directory security group and press Search AD button to search for it in Active Directory. After search completes, select the desired group name and its DN below. {%endif%}
{% if groups and groups.list %}
{% if groups.result %} {% for group in groups.list %} {% empty %} {% endfor %}
#Group NameGroup Distinguished Name
{{forloop.counter}} {{group.name}} {{group.dn}}
No groups found, please refine your search
{% else %}
Failure! Cannot search LDAP server, error {{groups.error}}.
{% endif %}
{% endif %}
{% if form.dn.errors %} {{form.dn.errors|striptags}} {% else %} Specify LDAP group distinguished name. If search returns a record, the user is considered to be found in this policy, otherwise search continues. The negative/positive result of the LDAP search will be cached for the specified number of seconds (default 30). When LDAP search fails for some reason (e.g. LDAP server is temporary down) user is considered to be not found. {%endif%}
{% if form.comment.errors %} {{form.comment.errors|striptags}} {% else %} Specify comment for your own use. {%endif%}
{% endblock %}