martin8883/MikroTik-API

Need an option to support both the old and new auth method with the same code base

Closed this issue · 3 comments

I have a script that monitors WiFi clients on two different sets of MT equipment. One has been updated to 6.45.x and the other is still on 6.40.x. Because of this discrepancy I can't use the same script to monitor them because they use different authentication schemes.

I propose we implement a login method like this PHP Library that tries the new auth method first, and falls back to the old way if it fails. This will allow the module to work for both authentication schemes.

Login API docs

Apologies, I didn't realize you had already done this.

Good work!

Nice to know that the fallback works.

It does indeed work!