Add LDAP user index

This commit is contained in:
2020-11-07 16:50:26 +01:00
parent 20a8102032
commit 259856a033
9 changed files with 90 additions and 2 deletions

View File

@@ -0,0 +1,25 @@
<h1>LDAP users</h1>
<ul>
<li><%= link_to 'kosmos.org', ldap_users_path %></li>
<li><%= link_to '5apps.com', ldap_users_path(ou: '5apps.com') %></li>
</ul>
<table>
<thead>
<tr>
<th>UID</th>
<th>E-Mail</th>
<th>Admin</th>
</tr>
</thead>
<tbody>
<% @entries.each do |entry| %>
<tr>
<td><%= entry[:uid] %></td>
<td><%= entry[:mail] %></td>
<td><%= entry[:admin] %></td>
</tr>
<% end %>
</tbody>
</table>