Added a basic user search

This commit is contained in:
2022-05-25 00:34:10 -04:00
parent cf94bde3a3
commit 6bd5f8798d
7 changed files with 294 additions and 13 deletions

View File

@ -8,23 +8,23 @@
</header>
<div class="row">
<form id="loginForm" class="columns twelve">
<form id="loginForm" class="columns twelve" action="/auth/login" method="POST">
<div class="row">
<label class="columns twelve">
LDAP Host:
<input class="u-full-width" type="text" name="ldap_host" placeholder="Enter LDAP host...">
<input class="u-full-width" type="text" name="ldap_bind_host" placeholder="Enter LDAP host...">
</label>
</div>
<div class="row">
<label class="columns six">
Bind DN:
<input class="u-full-width" type="text" name="bind_dn" placeholder="Enter bind DN...">
<input class="u-full-width" type="text" name="ldap_bind_dn" placeholder="Enter bind DN...">
</label>
<label class="columns six">
Bind Password:
<input class="u-full-width" type="password" name="bind_pw" placeholder="Enter bind password...">
<input class="u-full-width" type="password" name="ldap_bind_pw" placeholder="Enter bind password...">
</label>
</div>

View File

@ -28,7 +28,15 @@
<th>Email Address</th>
</tr>
</thead>
<tbody id="ldapUserList"></tbody>
<tbody id="ldapUserList">
{% for user in users %}
<tr>
<td>{{ user.uid }}</td>
<td>{{ user.displayName }}</td>
<td>{{ user.mail }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</section>
{% endblock %}