About Terminal Server, Citrix, Delphi and other stuff
If this is your first visit, take your time and look around. Here are some things you might be looking for:
Do you like my work? Did my work help you?
Thank you!
After figuring out how to encode and decode the Citrix passwords my next step for the upcoming Citrix Launcher is experiment with config.xml and authenticating to the Citrix Web Interface.
I imported the NFuse.dtd from the Citrix Web Interface into Delphi with the XML Data Binding Wizard. The results in an NFuse Unit so I can easily create the XML data.
To create an authentication packet I use the following code:
I am working on a launcher tool for Citrix XenApp that can not only connect to a published application or published desktop but can also leverage Citrix Workspace Control to reconnect to disconnected and/or active sessions.
There doesn’t seem to be any sdk that exposed the data we need so I am trying to reproduce what the Citrix online plugi-in does.
I used a HTTP monitoring tool to capture the traffic between the Online plug-in and the Web Interface. First the online plug-in will retrieve the config.xml from the server specified via the Change Server option:
10 May
For a research project I tried to install Windows NT 4 Terminal Server on VMWare Workstation (version 8).
The setup would always fail however with the following error:
Obviously the installation doesn’t really fail because of too little memory and neither is the installation disc (an iso file) corrupt, it’s a bug.
I needed to dome some Bit Shifting in PowerShell but unfortunately PowerShell lacks operator for Bit Shifting. I searched the .NET Framework for anything that allows for bit shifting but was unable to find anything suitable.
I didn’t want to revert to C# so I implemented shift left and shift right functions in PowerShell.
The code isn’t really pretty and could probably be improved (comments/improvements are welcome!) but here goes (please note that I implemented for bit shifting a byte):
A user reported that the following error while visiting a website on a Citrix XenApp server:
I tried adding the site to the Trusted Sites List and adding the url to the Per Site Privacy list:
But this didn’t work, but I noticed that the site was “flickering” a lot so I suspected that HDX Flash Acceleration was the problem.
I needed to login as root on a Linux based virtual appliance to do some troubleshooting. In my case the appliance was running Suse Linux Enterprise.
I booted the VA using the Ubuntu Live CD and opened a Terminal. Then I used the cfdisk tool (sudo cfdisk /dev/sda) to view the partitions:
If you want to Create an Active Directory group with PowerShell there are a few things you need to be aware of:
First of all there is no direct way to create new objects in Active Directory. You always need to bind to the Domain or an Organizational Unit and call the Create method.
Example:
|
1 2 3 4 5 6 |
# Bind to OU
$ou = [ADSI]"LDAP://OU=OU=Groups,DC=Contoso,DC=COM"
# Create the Group
$group = $ou.Children.Add("CN=TestGroup", "Group")
$group.CommitChanges() |
However the group is not yet complete:
When Launching a PowerShell script I noticed the following error: “AuthorizationManager check failed.“
This happens because either the Current User or the All Users PowerShell profile is empty.
Interesting case today: customer uses Imprivate for two factor logon in combination with Citrix XenApp.
Users reported that logons failed after they had changed their password. After contacting the users we learned that this only happened with special characters in the password like ! and +.
To do the actual logon to Citrix Imprivata uses an executable which is actually an AutoIT script compiled to an executable.
After authentication the executable get’s the password from the Imprivata Appliance.
I decompiled the executable to source and read the line that passes the password to XenApp:
Active Directory Altiris Automation Manager bug Citrix Dell Delphi Exchange Exchange2003 Exchange2010 Hack Hewlett-Packard HP iOS Jailbreak Java LinkedIn Linux Lync McAfee MSI MySQL Navigation Objects Office Outlook Passat Password PowerPoint PowerShell RES RNS315 RNS510 SasLibEx Terminal Server ThinApp TSAdminEx VBS VCDS Vista VMWare Volkswagen Windows PE Wordpress XenApp
WP Cumulus Flash tag cloud by Roy Tanck requires Flash Player 9 or better.