Skip to content

Commit

Permalink
Merge pull request #1535 from flanksource/1512-smb-connection-form-is…
Browse files Browse the repository at this point in the history
…-missing

feat: add smb connection type
  • Loading branch information
moshloop authored Dec 7, 2023
2 parents 356162d + 072c64d commit 11fb419
Showing 1 changed file with 26 additions and 23 deletions.
49 changes: 26 additions & 23 deletions src/components/Connections/connectionTypes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -793,41 +793,44 @@ export const connectionTypes: ConnectionType[] = [
title: "SMB",
icon: "smb",
value: ConnectionValueType.SMB,
hide: true,
fields: [
...commonConnectionFormFields,
{
label: "Username",
key: "username",
type: ConnectionsFieldTypes.input,
required: true
label: "Server",
key: "server",
type: ConnectionsFieldTypes.GroupField,
groupFieldProps: {
fields: [
{
label: "Server",
key: "server",
type: ConnectionsFieldTypes.input,
required: true
},
{
label: "Port",
key: "port",
type: ConnectionsFieldTypes.numberInput,
default: 445
}
]
}
},
{
label: "Password",
key: "password",
label: "Share",
key: "share",
type: ConnectionsFieldTypes.input,
required: true
},
{
label: "Workstation",
key: "workstation",
type: ConnectionsFieldTypes.input
},
{
label: "Share name",
key: "sharename",
type: ConnectionsFieldTypes.input
},
{
label: "Search path",
key: "searchPath",
label: "Username",
key: "username",
type: ConnectionsFieldTypes.input
},
{
label: "Port",
key: "port",
type: ConnectionsFieldTypes.numberInput,
default: 445
label: "Password",
key: "password",
type: ConnectionsFieldTypes.EnvVarSource
}
],
convertToFormSpecificValue: (data: Record<string, any>) => {
Expand Down

0 comments on commit 11fb419

Please sign in to comment.