Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: 新增 rdp 平台域账号 #225

Merged
merged 1 commit into from
Jul 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions pkg/jms-sdk-go/model/platform.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,12 @@ type PlatformProtocol struct {
Setting ProtocolSetting `json:"setting"`
}
type ProtocolSetting struct {
Security string `json:"security"`
Console bool `json:"console"`
SftpEnabled bool `json:"sftp_enabled"`
SftpHome string `json:"sftp_home"`
AutoFill bool `json:"auto_fill"`
UsernameSelector string `json:"username_selector"`
PasswordSelector string `json:"password_selector"`
SubmitSelector string `json:"submit_selector"`
Security string `json:"security"`
Console bool `json:"console"`
SftpEnabled bool `json:"sftp_enabled"`
SftpHome string `json:"sftp_home"`
AutoFill bool `json:"auto_fill"`
AdDomain string `json:"ad_domain"`
}

/*
Expand Down
8 changes: 7 additions & 1 deletion pkg/session/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,13 @@ func (r RDPConfiguration) GetGuacdConfiguration() guacd.Configuration {
//if r.SystemUser.AdDomain != "" {
// conf.SetParameter(guacd.RDPDomain, r.SystemUser.AdDomain)
//}

if r.Platform != nil {
if rdpSetting, ok := r.Platform.GetProtocolSetting("rdp"); ok {
if rdpSetting.Setting.AdDomain != "" {
conf.SetParameter(guacd.RDPDomain, rdpSetting.Setting.AdDomain)
}
}
}
// 设置 录像路径
if r.TerminalConfig.ReplayStorage.TypeName != "null" {
recordDirPath := filepath.Join(config.GlobalConfig.RecordPath,
Expand Down