Removed LDAP web UI

This commit is contained in:
Daniel Hall
2024-04-01 10:40:42 -07:00
parent 3cf6d0a28b
commit dc3682dc8f
4 changed files with 1 additions and 191 deletions

No files matched your search

+1 -2
View File
@@ -44,8 +44,7 @@
{{ end }}
{{ if .User.IsAdmin }}
<div class="col-span-full">{{ component "link" (props . "To" (path
"/admin/create_user")) }}create new{{ end }} {{component "link"
(props . "To" (path "/admin/ldap")) }}LDAP{{ end }}</div>
"/admin/create_user")) }}create new{{ end }}</div>
{{ end }}
</div>
{{ end }}
-68
View File
@@ -1,68 +0,0 @@
{{ component "layout" . }}
{{ component "layout_user" . }}
{{ component "block" (props .
"Icon" "user"
"Name" "configuring LDAP"
) }}
<form class="flex flex-col gap-2 items-end" action="{{ path
"/admin/ldap_do" }}" method="post">
<p>Leave the server empty to disable LDAP.</p>
<input
type="username"
id="bind_user"
name="bind_user"
placeholder="bind username"
value={{ default "" .CurrentBindUID }}
>
<input
type="password"
id="bind_user_password"
name="bind_user_password"
placeholder="bind password"
>
<input
type="text"
id="fqdn"
name="fqdn"
placeholder="LDAP server"
value={{ default "" .CurrentFQDN }}
>
<input
type="number"
id="port"
name="port"
placeholder="port"
value={{ default "389" .CurrentPort }}
>
<select name="tls" id="tls">
<option value="true">TLS</option>
<option value="false" {{ .CurrentNoTLS }}>None</option>
</select>
<input
type="text"
id="base_dn"
name="base_dn"
placeholder="Base DN"
value={{ default "" .CurrentBaseDN }}
>
<input
type="text"
id="filter"
name="filter"
placeholder="filter"
value={{ default "" .CurrentFilter }}
>
<input type="submit" value="update">
</form>
{{ end }}
{{ end }}
{{ end }}