On 07/08/2010 07:39 PM, Adam Tkac wrote:
> On Thu, Jul 08, 2010 at 07:15:12PM +0700, Antoine Martin wrote:
>> On 07/08/2010 07:08 PM, Adam Tkac wrote:
>>> On Sat, Jul 03, 2010 at 09:12:31PM +0700, Antoine Martin wrote:
>>>> Hi,
>>>>
>>>> I can't seem to get vncviewer to connect to an OSX display exported via
>>>> VNC if I use the PasswordFile option!
>>>>
>>>> The server is setup using:
>>>> sudo
>>>> /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart
>>>> -activate -configure -access -on -clientopts -setvnclegacy -vnclegacy
>>>> yes -clientopts -setvncpw -vncpw mypasswd -restart -agent -privs -all
>>>>
>>>> Then the client just does:
>>>> vncviewer PasswordFile=mypasswd.txt OSX::5900
>>>>
>>>> It says it is connected, but doesn't display anything:
>>>>  CConn:       connected to host 192.168.42.111 port 5900
>>>>  CConnection: Server supports RFB protocol version 3.889
>>>>  CConnection: Using RFB protocol version 3.8
>>>> ^ Stuck at this point, no window appears.
>>>>
>>>> But if I do:
>>>> echo mypasswd | vncviewer passwdInput=1 192.168.42.111::5900
>>>> or if I just type the password into the dialog box... it works!
>>>>
>>>> I've tried vncviewer 1.0.1 on various platforms and the version that
>>>> comes with Fedora 13... no go
>>>
>>> That's weird, I tried the PasswordFile option and it works fine in my
>>> case (I tried it with UNIX Xvnc, not with OSX VNC server).
>> That's what is weird, it works just fine against Xvnc or winvnc4.exe,
>> but not against apple's ARD!
>>
>> Just to confirm/clarify:
>> echo -n "mypasswd" > passwordfile.txt
>> cat passwordfile.txt | vncviewer...           does work
>> vncviewer PasswordFile=./passwordfile.txt     does not!
>>
>> But *only* when doing it against OSX's vnc server.
>>
>>> Would it be
>>> possible to tell me how did you create mypasswd.txt file, please? Did
>>> you use "vncpasswd" utility?
>> Nope, I did not. This is just a plain text file saved by my tool and
> 
> This might be a reason why it doesn't work with ARD. All TigerVNC
> software (vncviewer, vncpasswd, Xvnc and winvnc4) treats password
> stored in the "PasswordFile" file as 3DES encrypted password. Thus
> when you put "mypasswd" string into "PasswordFile", it is firstly
> decrypted via 3DES cipher and then send to server. However when you
> use Fedora's "passwdInput" option password is read as plaintext so it
> works. Please try to run this:
Will try, methinks this will work.

> $ vncpasswd ARDpasswd
> Password: <type "mypasswd">
> Verify: <type "mypasswd">
The reason why I didn't want to use vncpasswd is that it is interactive,
are there any pure command line alternatives that I can use?

Thanks
Antoine

> 
> $ vncviewer PasswordFile=ARDpasswd OSX::5900
> 
> Now vncviewer should load 3DEC encrypted "mypasswd" string, decrypt it
> and send it to the ARD server.
> 
>> copied from server to the clients behind the scenes. *It just works*
>> So it is exactly the same text file used in:
>> * Xvnc PasswordFile= ...
>> * vncviewer PasswordFile=
>> * ARGAgent.app -vncpw CONTENTSOFFILE
> 
> Regards, Adam
> 


------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Tigervnc-devel mailing list
Tigervnc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tigervnc-devel

Reply via email to