Skip to content

Commit

Permalink
add web
Browse files Browse the repository at this point in the history
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
  • Loading branch information
BeryJu committed May 8, 2022
1 parent d7fa2e4 commit e85888e
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions web/src/pages/providers/ldap/LDAPProviderForm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { ifDefined } from "lit/directives/if-defined.js";
import { until } from "lit/directives/until.js";

import {
BindModeEnum,
CoreApi,
CryptoApi,
FlowsApi,
Expand Down Expand Up @@ -119,6 +120,25 @@ export class LDAPProviderFormPage extends ModelForm<LDAPProvider, number> {
${t`Users in the selected group can do search queries. If no group is selected, no LDAP Searches are allowed.`}
</p>
</ak-form-element-horizontal>
<ak-form-element-horizontal label=${t`Bind mode`} name="bindMode">
<select class="pf-c-form-control">
<option
value="${BindModeEnum.Cached}"
?selected=${this.instance?.bindMode === BindModeEnum.Cached}
>
${t`Cached binding, flow is executed and session is cached in memory. Flow is executed when session expires.`}
</option>
<option
value="${BindModeEnum.Direct}"
?selected=${this.instance?.searchMode === BindModeEnum.Direct}
>
${t`Direct querying, always execute the configured bind flow to authenticate the user.`}
</option>
</select>
<p class="pf-c-form__helper-text">
${t`Configure how the outpost authenticates requests.`}
</p>
</ak-form-element-horizontal>
<ak-form-element-horizontal label=${t`Search mode`} name="searchMode">
<select class="pf-c-form-control">
<option
Expand Down

0 comments on commit e85888e

Please sign in to comment.