69 lines
1.4 KiB
Cheetah
69 lines
1.4 KiB
Cheetah
{{ 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="group name (filter)"
|
|
value={{ default "" .CurrentFilter }}
|
|
>
|
|
|
|
|
|
<input type="submit" value="update">
|
|
</form>
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
{{ end }}
|