• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved Autologin problem with IPv6

multikreher

New Pleskian
Hello all,

I am currently working on an automatic login for different Plesk servers for my final project in my apprenticeship.

Everything works as expected only I have one problem!

I make the XML request as described in the documentation. It also works and gives me a token to create a login link.
Request looks like this:

XML:
  <packet version="1.6.9.1">
    <server>
      <create_session>
        <login>${loginData.user}</login>
        <data>
          <user_ip>${loginIp}</user_ip> // in BASE64
          <source_server></source_server>
        </data>
      </create_session>
    </server>
  </packet>

I am currently running the application locally on my pc.

Now about the problem:
I create the login link and it works fine. But when I try to log in to my network at home or via a hotspot with the link, it only redirects me, but does not log me in as usual.
At home my network uses IPv6 by default.

when I force my PC to use IPv4 the link works again as usual.
But now it's getting funny. At work it works with IPv6 too. In addition, the servers are not located locally.

Does anyone have any idea what the problem is?

Thanks for reading :)
 
I have found a way to do it differently. With the help from the user mjauvin and the Rest API!

 
Back
Top