made "simple" the default authentication type (#993)
This commit is contained in:
parent
9ce3f2c53c
commit
54dca4df65
1 changed files with 4 additions and 3 deletions
|
@ -76,6 +76,7 @@ export const LdapSettingsConnection = ({
|
||||||
const ldapBindType = useWatch({
|
const ldapBindType = useWatch({
|
||||||
control: form.control,
|
control: form.control,
|
||||||
name: "config.authType",
|
name: "config.authType",
|
||||||
|
defaultValue: ["simple"],
|
||||||
});
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -248,7 +249,7 @@ export const LdapSettingsConnection = ({
|
||||||
>
|
>
|
||||||
<Controller
|
<Controller
|
||||||
name="config.authType[0]"
|
name="config.authType[0]"
|
||||||
defaultValue="none"
|
defaultValue="simple"
|
||||||
control={form.control}
|
control={form.control}
|
||||||
render={({ onChange, value }) => (
|
render={({ onChange, value }) => (
|
||||||
<Select
|
<Select
|
||||||
|
@ -266,8 +267,8 @@ export const LdapSettingsConnection = ({
|
||||||
variant={SelectVariant.single}
|
variant={SelectVariant.single}
|
||||||
data-testid="ldap-bind-type"
|
data-testid="ldap-bind-type"
|
||||||
>
|
>
|
||||||
<SelectOption key={0} value="simple" />
|
<SelectOption value="simple" />
|
||||||
<SelectOption key={1} value="none" isPlaceholder />
|
<SelectOption value="none" />
|
||||||
</Select>
|
</Select>
|
||||||
)}
|
)}
|
||||||
></Controller>
|
></Controller>
|
||||||
|
|
Loading…
Reference in a new issue