From e530375c02707fd0dfee7b8db082e3b56e1354f6 Mon Sep 17 00:00:00 2001 From: matt6697 <32440697+matt6697@users.noreply.github.com> Date: Mon, 11 Dec 2017 08:22:00 +0100 Subject: [PATCH 1/3] Trust requests sent to XML service Trust requests sent to XML service. Required for domain-passthrough or smartcard logon --- manifests/joinsite.pp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/manifests/joinsite.pp b/manifests/joinsite.pp index 0329d49..a9dfad0 100644 --- a/manifests/joinsite.pp +++ b/manifests/joinsite.pp @@ -10,6 +10,20 @@ dsc_sitename => $sitename, dsc_existingcontrollername => $site_mastercontroller, dsc_credential => {'user' => $svc_username, 'password' => $svc_password} - } + }-> + + #Trust request sent to XML service + dsc_script{ 'CitrixBrokerServiceSSL': + dsc_getscript => 'Add-PSSnapin Citrix* + Return @{ Result = [bool]$(Get-BrokerSite | fl TrustRequestsSentToTheXmlServicePort) }', + dsc_testscript => 'Add-PSSnapin Citrix* + If (Get-BrokerSite | fl TrustRequestsSentToTheXmlServicePort) { + Return $true + } Else { + Return $false + }', + dsc_setscript => 'Add-PSSnapin Citrix* + Set-BrokerSite -TrustRequestsSentToTheXmlServicePort $true' + } } \ No newline at end of file From 782dfb600f4fb12f868dec840d9f4e24ad090922 Mon Sep 17 00:00:00 2001 From: matt6697 <32440697+matt6697@users.noreply.github.com> Date: Mon, 11 Dec 2017 18:30:33 +0100 Subject: [PATCH 2/3] Trust requests sent to Citrix XML Service Trust requests sent to Citrix XML Service --- manifests/joinsite.pp | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/manifests/joinsite.pp b/manifests/joinsite.pp index 0329d49..9bcf050 100644 --- a/manifests/joinsite.pp +++ b/manifests/joinsite.pp @@ -10,6 +10,23 @@ dsc_sitename => $sitename, dsc_existingcontrollername => $site_mastercontroller, dsc_credential => {'user' => $svc_username, 'password' => $svc_password} - } + }-> + + #Trust request sent to XML service + dsc_script{ 'TrustRequestsToXMLService': + dsc_getscript => 'Add-PSSnapin -Name Citrix.Broker.Admin.V2 -ErrorAction SilentlyContinue + $brokersite = Get-BrokerSite + Return @{ Result = $brokersite.TrustRequestsSentToTheXmlServicePort) }', + dsc_testscript => 'Add-PSSnapin -Name Citrix.Broker.Admin.V2 -ErrorAction SilentlyContinue + $brokersite = Get-BrokerSite + If ($brokersite.TrustRequestsSentToTheXmlServicePort) { + Return $true + } Else { + Return $false + }', + dsc_setscript => 'Add-PSSnapin -Name Citrix.Broker.Admin.V2 -ErrorAction SilentlyContinue + Set-BrokerSite -TrustRequestsSentToTheXmlServicePort $true', + dsc_psdscrunascredential => {'user' => $svc_username, 'password' => $svc_password} + } } \ No newline at end of file From 6ee62485742e1758d1c016222a3d662aae6eb486 Mon Sep 17 00:00:00 2001 From: matt6697 <32440697+matt6697@users.noreply.github.com> Date: Tue, 12 Dec 2017 08:50:21 +0100 Subject: [PATCH 3/3] Used dsc_xd7siteconfig for XML Service Trust instead of DSC script + paging Used dsc_xd7siteconfig for XML Service Trust instead of DSC script + paging --- manifests/joinsite.pp | 39 ++++++++++++++------------------------- 1 file changed, 14 insertions(+), 25 deletions(-) diff --git a/manifests/joinsite.pp b/manifests/joinsite.pp index 53820d9..ef172e6 100644 --- a/manifests/joinsite.pp +++ b/manifests/joinsite.pp @@ -1,32 +1,21 @@ class xd7slavecontroller::joinsite inherits xd7slavecontroller { - dsc_xd7waitforsite{ 'WaitForXD7Site': - dsc_sitename => $sitename, - dsc_existingcontrollername => $site_mastercontroller, - dsc_credential => {'user' => $svc_username, 'password' => $svc_password} - }-> + dsc_xd7waitforsite{ 'WaitForXD7Site': + dsc_sitename => $sitename, + dsc_existingcontrollername => $site_mastercontroller, + dsc_credential => {'user' => $svc_username, 'password' => $svc_password} + }-> dsc_xd7controller{ 'XD7ControllerJoin': - dsc_sitename => $sitename, - dsc_existingcontrollername => $site_mastercontroller, - dsc_credential => {'user' => $svc_username, 'password' => $svc_password} + dsc_sitename => $sitename, + dsc_existingcontrollername => $site_mastercontroller, + dsc_credential => {'user' => $svc_username, 'password' => $svc_password} }-> - #Trust request sent to XML service - dsc_script{ 'TrustRequestsToXMLService': - dsc_getscript => 'Add-PSSnapin -Name Citrix.Broker.Admin.V2 -ErrorAction SilentlyContinue - $brokersite = Get-BrokerSite - Return @{ Result = $brokersite.TrustRequestsSentToTheXmlServicePort) }', - dsc_testscript => 'Add-PSSnapin -Name Citrix.Broker.Admin.V2 -ErrorAction SilentlyContinue - $brokersite = Get-BrokerSite - If ($brokersite.TrustRequestsSentToTheXmlServicePort) { - Return $true - } Else { - Return $false - }', - dsc_setscript => 'Add-PSSnapin -Name Citrix.Broker.Admin.V2 -ErrorAction SilentlyContinue - Set-BrokerSite -TrustRequestsSentToTheXmlServicePort $true', - dsc_psdscrunascredential => {'user' => $svc_username, 'password' => $svc_password} - } - + #Trust request sent to XML service + dsc_xd7siteconfig{'XD7GlobalSiteSetting': + dsc_issingleinstance => 'Yes', + dsc_trustrequestssenttothexmlserviceport => true, + dsc_psdscrunascredential => {'user' => $svc_username, 'password' => $svc_password} + } } \ No newline at end of file