pfn / passifox

Extensions to allow Chrome and Firefox (4.0+) to auto form-fill passwords from KeePass (requires KeePassHttp)
GNU General Public License v3.0
907 stars 186 forks source link

chromeIPass Remote Connection Issue #346

Open yuuzhan opened 9 years ago

yuuzhan commented 9 years ago

chromeIPass version 2.6.8 Google Chrome Version 39.0.2171.95 m KeePassHttp version: 1.8.4.0 KeePass version: 2.28

Server: Ubuntu 14.04 Client: Windows 7

I am able to connect to the database with Localhost on the server, but from the internal network I am unable to connect. I have (also) set up port forwarding, and I was able to see the HTTP traffic go through to the server on netstat.

It seems to detect the install: image

however when I press connect, nothing happens on the server, and I get the following errors on the console Chrome (Windows 7)

image

Majesty00 commented 9 years ago

Any fix yet? I've also got the problem.

jodett commented 9 years ago

Found and fixed the problem, but solution includes some manual work, so i guess a better solution needs to be developed:

failure happens in KeePassHttp

for the developer in keepasshttp.cs:, ln 204:

listener.Prefixes.Add(HTTP_PREFIX + configOpt.ListenerPort.ToString() + "/");

HTTP_PREFIX is set to "http://localhost:" should be better "http://+:" to listen on all dns names, not just requests to localhost

ln 50: private const string HTTP_PREFIX = "http://+:";

but for this to work i had to execute following command as admin to allow url-reservation:

netsh http add urlacl url=http://+:19455/ user=DOMAIN\user

see http://stackoverflow.com/questions/4019466/httplistener-access-denied/4115328#4115328

with these changes it worked

yuuzhan commented 9 years ago

This change worked for me. Since I was using a Linux box, I did not need to run the netsh command. Simply the line 50 fix was sufficient.

Thank you for your assistance!

kowenzhang commented 8 years ago

image