• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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