﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>The VNC Manager - SmartCode Solutions Forum / General Discussion / SmartCode ViewerX VNC Viewer ActiveX  / Enable DSM encryption in HTML / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>The VNC Manager - SmartCode Solutions Forum</description><link>http://vncmanager.com/forum/</link><webMaster>forums@s-code.com</webMaster><lastBuildDate>Wed, 17 Mar 2010 16:31:39 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Enable DSM encryption in HTML</title><link>http://vncmanager.com/forum/Topic2314-6-1.aspx</link><description>I was finally able to get it to work.  I was setting the security values in the function called when you click connect.  Although it does seem to do something, it appears to reset (or ignore?) the LoginType value.&lt;/P&gt;&lt;P&gt;When I changed it to set the security values inside the OBJECT tag (along with a lot of other properties), it did not reset the LoginType so I was able to successfully connect.&lt;/P&gt;&lt;P&gt;Thanks for your help.</description><pubDate>Thu, 08 Jan 2009 10:27:12 GMT</pubDate><dc:creator>Bonji</dc:creator></item><item><title>RE: Enable DSM encryption in HTML</title><link>http://vncmanager.com/forum/Topic2314-6-1.aspx</link><description>[quote]By default ViewerX tries to authenticate using VNC password authentication.&lt;br&gt;You should set property LoginType to 1, this will tell ViewerX to use NTLM authentication.&lt;br&gt;[/quote]&lt;br&gt;&lt;br&gt;It is set to 1.  I got it working on a server that was not using encryption before trying the most complicated setup I had (which included encryption).  Setting EnableSecurity to 1 changes the logon box to password only even with LoginType set to 1.</description><pubDate>Wed, 07 Jan 2009 08:56:10 GMT</pubDate><dc:creator>Bonji</dc:creator></item><item><title>RE: Enable DSM encryption in HTML</title><link>http://vncmanager.com/forum/Topic2314-6-1.aspx</link><description>I should probably clarify...&lt;br&gt;&lt;br&gt;I have ServerA which uses MSLogon authentication but not DSM encryption.&lt;br&gt;I have ServerB which uses MSLogon authentication and DSM encryption.&lt;br&gt;&lt;br&gt;With EnableSecurity set to 1, I get a password-only login prompt no matter if I try connecting to ServerA or ServerB (and I know I can never successfully logon to ServerA since the encryption settings don't match).&lt;br&gt;&lt;br&gt;With EnableSecurity set to 0, I get username and password login prompt on ServerA and a connection error on ServerB (which is what I would expect since the encryption settings don't match).&lt;br&gt;&lt;br&gt;Basically, I'm pointing out that my MSLogon authentication is working on the server side, but enabling the DSM plug-in appears to prevent using it for authentication.</description><pubDate>Wed, 07 Jan 2009 08:54:25 GMT</pubDate><dc:creator>Bonji</dc:creator></item><item><title>RE: Enable DSM encryption in HTML</title><link>http://vncmanager.com/forum/Topic2314-6-1.aspx</link><description>By default ViewerX tries to authenticate using VNC password authentication. &lt;br&gt;You should set property LoginType to 1, this will tell ViewerX to use NTLM authentication.</description><pubDate>Wed, 07 Jan 2009 08:53:48 GMT</pubDate><dc:creator>Support (s-code)</dc:creator></item><item><title>RE: Enable DSM encryption in HTML</title><link>http://vncmanager.com/forum/Topic2314-6-1.aspx</link><description>When I used [i]true[/i] instead of [i]1[/i], I got an error that [i]true[/i] is undefined.&lt;br&gt;&lt;br&gt;I was able to get beyond my error by using the UVNCS_EnableSecurity property and setting it to [i]1[/i].&lt;br&gt;&lt;br&gt;I have a new problem now in that I use MSLogon authentication and instead of getting a username and password prompt I only get a password prompt.&lt;br&gt;&lt;br&gt;Thanks for your help!</description><pubDate>Wed, 07 Jan 2009 08:13:47 GMT</pubDate><dc:creator>Bonji</dc:creator></item><item><title>RE: Enable DSM encryption in HTML</title><link>http://vncmanager.com/forum/Topic2314-6-1.aspx</link><description>I suggest you to try the following two things:&lt;br&gt;&lt;br&gt;instead of EnableSecurity = 1, assign it to &amp;#119;indow.ViewerX.UltraVNCSecurity.EnableSecurity =  true; This is a boolean property so you should use boolean values.&lt;br&gt;&lt;br&gt;Another trick, is to replace ViewerX.UltraVNCSecurity.XXX calls with:&lt;br&gt;&amp;#119;indow.ViewerX.UVNCS_EnableSecurity = true;&lt;br&gt;&amp;#119;indow.ViewerX.UVNCS_KeyFilePath = "file path";</description><pubDate>Wed, 07 Jan 2009 08:01:03 GMT</pubDate><dc:creator>Support (s-code)</dc:creator></item><item><title>RE: Enable DSM encryption in HTML</title><link>http://vncmanager.com/forum/Topic2314-6-1.aspx</link><description>I should  be more clear on the problem I'm having.  I understand that those two values need to be set, I just can't figure out how to code them to be set.&lt;br&gt;&lt;br&gt;When I try to apply values to those properties, I get the following error: "Object doesn't support this property or method".  I know I'm just not doing it correctly, but I can't figure it out.&lt;br&gt;&lt;br&gt;Here's an example snippet that I've tried to use:&lt;br&gt;&lt;br&gt;[code]&lt;br&gt;function OnConnect() {&lt;br&gt;	&amp;#119;indow.ViewerX.Disconnect()&lt;br&gt;	&amp;#119;indow.ViewerX.HostIP = &amp;#100;ocument.VNCViewer.Address.value&lt;br&gt;	&amp;#119;indow.ViewerX.Port = &amp;#100;ocument.VNCViewer.Port.value&lt;br&gt;	&amp;#119;indow.ViewerX.UltraVNCSecurity.EnableSecurity = 1&lt;br&gt;	&amp;#119;indow.ViewerX.UltraVNCSecurity.KeyFilePath = "C:\rc4.key"&lt;br&gt;	&amp;#119;indow.ViewerX.Connect()&lt;br&gt;}&lt;br&gt;[/code]&lt;br&gt;&lt;br&gt;Also, I know the VNC server is fine because I can connect to it using the UltraVNC Viewer (properly configured).</description><pubDate>Wed, 07 Jan 2009 07:26:53 GMT</pubDate><dc:creator>Bonji</dc:creator></item><item><title>RE: Enable DSM encryption in HTML</title><link>http://vncmanager.com/forum/Topic2314-6-1.aspx</link><description>Hi,&lt;br&gt;EnableSecurity and KeyFilePath are the only two properties that must be set. I could think of two reasons why it doesn't work:&lt;br&gt;1) Your UltraVNC server doesn't have DSM plug-in security enabled or RC4 keys mismatch on the server and client&lt;br&gt;2) For some reason ViewerX fails to load the key file specified in the KeyFilePath property.&lt;br&gt;&lt;br&gt;Just to let you know, soon we will be releasing a new ViewerX build. This build will allow to set RC4 key via two new properties:&lt;br&gt;&lt;br&gt;//allows you to pass RC4 key as a binary data in form of SAFEARRAY &lt;br&gt;HRESULT UVNCS_KeyData([in] VARIANT arrDsmKeyData);&lt;br&gt;&lt;br&gt;//allows you to pass RC4 key as a HEX string&lt;br&gt;HRESULT UVNCS_KeyDataAsHexStr([in] BSTR strDsmKeyData);&lt;br&gt;</description><pubDate>Tue, 06 Jan 2009 22:11:28 GMT</pubDate><dc:creator>Support (s-code)</dc:creator></item><item><title>Enable DSM encryption in HTML</title><link>http://vncmanager.com/forum/Topic2314-6-1.aspx</link><description>I am unable to figure out how to enable encryption via the DSM plug-in.  I see the EnableSecurity property (along with KeyFilePath), but I am unable to code it properly in the example HTML file.&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Ben</description><pubDate>Tue, 06 Jan 2009 14:41:28 GMT</pubDate><dc:creator>Bonji</dc:creator></item></channel></rss>