Removed LDAP web UI
This commit is contained in:
No files matched your search
@@ -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 }}
|
||||
|
||||
@@ -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 }}
|
||||
Reference in New Issue
Block a user