Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XMPP authentication failure #4

Closed
SUNWfrk opened this issue May 18, 2016 · 9 comments
Closed

XMPP authentication failure #4

SUNWfrk opened this issue May 18, 2016 · 9 comments

Comments

@SUNWfrk
Copy link

SUNWfrk commented May 18, 2016

Hello,

I'm using the Buderus (Belgium) branded version but I'm unable to login:

$ node -v
v6.2.0
$ npm -v
3.8.9
$ easy-server -v
2.1.0
$ easy-server --serial=123456789 --access-key=XXXXXXXX --password=xxxxxx
XMPP authentication failure

When using strace I can see it connecting to a bosch.com ip address.

@robertklep
Copy link
Owner

Does the Buderus have a seperate app, or does it use the Nefit Easy app too? If not, it might be that some "magic numbers" for Buderus are different from the Nefit numbers, which could explain why authentication isn't working.

The Easy connects to IP-number 139.15.227.112, is that the same as what you're seeing? Also, is your access key 16 bytes long?

@SUNWfrk
Copy link
Author

SUNWfrk commented May 18, 2016

The app is called "Buderus EasyMode" the access key is indeed 16 bytes long.

How would I best figure out to which IP it connects? I saw your explanation about the "magic numbers" on the domoticz forum but I do not know how I would find them for the buderus authentication.

@robertklep
Copy link
Owner

You said that strace is showing it's connecting to bosch.com IP address, so I assumed that you knew what that IP address was. Hostname is fine too, for the Easy it's wa2-mz36-qrmzh6.bosch.de.

I was able to retrieve the Easy magic numbers from the Android app. If you happen to have Android, and you can supply me with an APK of the Buderus app, I can try and see if I can determine if that uses different numbers.

@SUNWfrk
Copy link
Author

SUNWfrk commented May 18, 2016

Hi Robert,

you can find the android apk here: https://sunwfrk.com/pub/com.bosch.tt.buderus.easymode-1.tar.gz

@robertklep
Copy link
Owner

Thanks! It looks like the encryption methods for both Buderus and Nefit are exactly the same, so that's not what causing the issues. Hostname is also shared between the two apps, so that's also not the problem.

I seem to remember an issue that people were having with long passwords, but I can't remember the specifics (also can't find the issue). Try removing characters from the end of your password until its 10 characters long (although I can't remember the maximum length).

@SUNWfrk
Copy link
Author

SUNWfrk commented May 18, 2016

Hi,

I now installed nodejs v4 and now it seems to work:

$ node -v
v4.4.4
$ npm -v
2.15.1
$ easy-server -v
2.1.0

Thanks, so this is resolved and confirmed to work.

@robertklep
Copy link
Owner

Hmm that's weird though, it should work with Node v6 (although I haven't tested it yet). I'll create a new issue to remind myself that it needs testing, perhaps some crypto internals have changed and are now breaking stuff.

I'll close this issue, thanks for letting me know that you were able to solve it!

@robertklep
Copy link
Owner

FWIW, I just released a bunch of new module versions that should solve the problems with Node v6; nefit-easy-http-server@2.2.0 should be okay to use with Node 6.

@SUNWfrk
Copy link
Author

SUNWfrk commented May 23, 2016

Ok Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants