The VNC Manager - SmartCode Solutions Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Enable DSM encryption in HTML Expand / Collapse
Author
Message
Posted 1/6/2009 2:41:28 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 1/26/2009 7:05:26 AM
Posts: 8, Visits: 16
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.

Sincerely,

Ben

Post #2314
Posted 1/6/2009 10:11:28 PM


Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Administrators
Last Login: Yesterday @ 7:10:09 PM
Posts: 1,163, Visits: 1,909
Hi,
EnableSecurity and KeyFilePath are the only two properties that must be set. I could think of two reasons why it doesn't work:
1) Your UltraVNC server doesn't have DSM plug-in security enabled or RC4 keys mismatch on the server and client
2) For some reason ViewerX fails to load the key file specified in the KeyFilePath property.

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:

//allows you to pass RC4 key as a binary data in form of SAFEARRAY
HRESULT UVNCS_KeyData([in] VARIANT arrDsmKeyData);

//allows you to pass RC4 key as a HEX string
HRESULT UVNCS_KeyDataAsHexStr([in] BSTR strDsmKeyData);




Kindest Regards,
SmartCode Solutions Support
Post #2315
Posted 1/7/2009 7:26:53 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 1/26/2009 7:05:26 AM
Posts: 8, Visits: 16
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.

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.

Here's an example snippet that I've tried to use:


function OnConnect() {
window.ViewerX.Disconnect()
window.ViewerX.HostIP = document.VNCViewer.Address.value
window.ViewerX.Port = document.VNCViewer.Port.value
window.ViewerX.UltraVNCSecurity.EnableSecurity = 1
window.ViewerX.UltraVNCSecurity.KeyFilePath = "C:\rc4.key"
window.ViewerX.Connect()
}


Also, I know the VNC server is fine because I can connect to it using the UltraVNC Viewer (properly configured).
Post #2316
Posted 1/7/2009 8:01:03 AM


Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Administrators
Last Login: Yesterday @ 7:10:09 PM
Posts: 1,163, Visits: 1,909
I suggest you to try the following two things:

instead of EnableSecurity = 1, assign it to window.ViewerX.UltraVNCSecurity.EnableSecurity = true; This is a boolean property so you should use boolean values.

Another trick, is to replace ViewerX.UltraVNCSecurity.XXX calls with:
window.ViewerX.UVNCS_EnableSecurity = true;
window.ViewerX.UVNCS_KeyFilePath = "file path";



Kindest Regards,
SmartCode Solutions Support
Post #2317
Posted 1/7/2009 8:13:47 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 1/26/2009 7:05:26 AM
Posts: 8, Visits: 16
When I used true instead of 1, I got an error that true is undefined.

I was able to get beyond my error by using the UVNCS_EnableSecurity property and setting it to 1.

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.

Thanks for your help!
Post #2318
Posted 1/7/2009 8:53:48 AM


Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Administrators
Last Login: Yesterday @ 7:10:09 PM
Posts: 1,163, Visits: 1,909
By default ViewerX tries to authenticate using VNC password authentication.
You should set property LoginType to 1, this will tell ViewerX to use NTLM authentication.



Kindest Regards,
SmartCode Solutions Support
Post #2319
Posted 1/7/2009 8:54:25 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 1/26/2009 7:05:26 AM
Posts: 8, Visits: 16
I should probably clarify...

I have ServerA which uses MSLogon authentication but not DSM encryption.
I have ServerB which uses MSLogon authentication and DSM encryption.

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).

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).

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.
Post #2320
Posted 1/7/2009 8:56:10 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 1/26/2009 7:05:26 AM
Posts: 8, Visits: 16
By default ViewerX tries to authenticate using VNC password authentication.
You should set property LoginType to 1, this will tell ViewerX to use NTLM authentication.


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.
Post #2321
Posted 1/8/2009 10:27:12 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 1/26/2009 7:05:26 AM
Posts: 8, Visits: 16
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.

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.

Thanks for your help.

Post #2332
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 1 (1 guest, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Support (s-code), Alex (s-code)

Permissions Expand / Collapse

All times are GMT -8:00, Time now is 9:37am

Powered by InstantForum.NET v4.1.4 © 2010
Execution: 0.141. 8 queries. Compression Disabled.