Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. Gelöst: Mikrotik Adapter kann nicht mehr einloggen

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    SOLVED Gelöst: Mikrotik Adapter kann nicht mehr einloggen

    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      J.Feiler last edited by J.Feiler

      Der Mikrotik Adapter kann sich seit der letzten Router-OS Aktualisierung > 6.43 nicht mehr per API anmelden.

      Anmeldedaten zigmal gecheckt.... Der Adapter funktioniert so leider nicht mehr....

      LOG:

      TRAP {"errors":[{"category":"","message":"invalid user name or password (6)"}],"channelId":"login","channel":{"id":"login","running":true,"closing":false,"closed":false,"clearEvents":false,"saveBuffe
      
      J 1 Reply Last reply Reply Quote 0
      • J
        J.Feiler last edited by Negalein

        Gefunden !

        Im micronode-ng code, wie vermutet....
        findet sich im file connection.js folgender Block....

        _(_this).status = 'Sending Credentials';
        				debugLogin('%s %s %s', _(_this).status, _(_this).user, _(_this).password, resp);
        				this.write('/login', {
        					"=name" : _(_this).user,
        					resp
        				});
        

        muss geändert werden auf....

        _(_this).status = 'Sending Credentials';
        				debugLogin('%s %s %s', _(_this).status, _(_this).user, _(_this).password, resp);
        				this.write('/login', {
        					"=name" : _(_this).user,
        					"=password" : _(_this).password
        				});
        

        Und schon funktioniert es....

        P 1 Reply Last reply Reply Quote 1
        • J
          J.Feiler @J.Feiler last edited by Negalein

          addendum...
          Mikrotik-LOG

          login failure for user apiuser from 192.168.x.x via api
          
          1 Reply Last reply Reply Quote 0
          • J
            J.Feiler last edited by Negalein

            Mikrotik API Manual says:

            /login
             !done
            =ret=ebddd18303a54111e2dea05a92ab46b4
            /login
            =name=admin
            =response=001ea726ed53ae38520c8334f82d44c9f2
             !done
            
            Warning: this login method is deprecated and no longer supported in versions above 6.45.1.
            
            
            Login method post-v6.43:
            
            /login
            =name=admin
            =password=
             !done
            

            Wo kann ich das änder ?
            where can i change this ?

            ich fürchte das liegt irgendwo im micronode-ng code vergraben....
            i am afraid the reason is the login-method and this is to change elsewhere in micronode-ng-code...

            Kann da jemand helfen ?

            1 Reply Last reply Reply Quote 0
            • J
              J.Feiler last edited by Negalein

              Gefunden !

              Im micronode-ng code, wie vermutet....
              findet sich im file connection.js folgender Block....

              _(_this).status = 'Sending Credentials';
              				debugLogin('%s %s %s', _(_this).status, _(_this).user, _(_this).password, resp);
              				this.write('/login', {
              					"=name" : _(_this).user,
              					resp
              				});
              

              muss geändert werden auf....

              _(_this).status = 'Sending Credentials';
              				debugLogin('%s %s %s', _(_this).status, _(_this).user, _(_this).password, resp);
              				this.write('/login', {
              					"=name" : _(_this).user,
              					"=password" : _(_this).password
              				});
              

              Und schon funktioniert es....

              P 1 Reply Last reply Reply Quote 1
              • P
                perplexstar @J.Feiler last edited by

                Leider funktioniert bei mir mit RouterOS 6.45.5 auch die Instanz nicht.
                Habe die Connection.js bereits abgeändert. Ohne Erfolg.
                Kann jmd vielleicht eine funktionierende Connection.js hochladen? Ich verzweifele an dem Thema.

                1 Reply Last reply Reply Quote 0
                • J
                  jeti last edited by

                  Hallo zusammen,

                  bei mir RouterOS 6.45.7 komme ich auch nicht auf den Router, gibt es hier schon eine Lösung?

                  1 Reply Last reply Reply Quote 0
                  • H
                    hajuerue last edited by hajuerue

                    Hallo,
                    ich hab inzwischen auf dem Mikrotik den ich einbinden wollte die 6.46.3 drauf.
                    Hab es mit der Stable Version 1.0.4 vom Adapter nicht zum laufen bekommen.

                    Mit der Version vom GIT 1.0.10. Wird die Verbindung aufgebaut 🙂

                    Gruss
                    HaJueRueIoBroker-Mikrotik-Adapter-1010_090220-hajuerue.png

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post

                    Support us

                    ioBroker
                    Community Adapters
                    Donate

                    922
                    Online

                    31.9k
                    Users

                    80.1k
                    Topics

                    1.3m
                    Posts

                    api login mikrotik
                    4
                    7
                    1086
                    Loading More Posts
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes
                    Reply
                    • Reply as topic
                    Log in to reply
                    Community
                    Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                    The ioBroker Community 2014-2023
                    logo