[How to] Logout URL in Parallels Plesk Billing does not match new hostname?

Created:

2016-11-16 12:48:01 UTC

Modified:

2017-04-24 12:11:20 UTC

0

Was this article helpful?


Have more questions?

Submit a request

[How to] Logout URL in Parallels Plesk Billing does not match new hostname?

Applicable to:

  • Plesk 10.x and below for Linux

Question

Plesk and SSO server are running on the same server and integrated. That means Plesk is registered in SSO server and SSO mode is enabled.

If server hostname has been changed and Plesk has been registered in SSO server anew with utility $PRODUCT_ROOT_D/bin/sso :

    # /usr/local/psa/bin/sso -s -server https://<new hostname>:11443 -url https://< new hostname >:11444
SUCCESS: SSO preferences are successfully updated

After that Plesk is available at https://< new hostname >:8443 and new hostname is shown in Plesk configuration:

    # hostname
<new hostname>
# $PRODUCT_ROOT_D/bin/sso -g
SSO on
sso server url: https://<new hostname>:11443
sso relay url: https://<new hostname>:11444

However when click Log out button in Plesk old hostname is shown in URL: https://< old hostname >:8443/sso/signout.

How to change logout-url?

Answer

SSO logout-url is stored in database of SSO server /var/lib/sso/sso.db . It is configured during registration of Plesk in SSO server to match Plesk full hostname. Plesk full hostname is stored in table misc of Plesk database.

It may be viewed and configured through Plesk interface and in Plesk database directly.

In Plesk Settings > Server Settings > Full hostname . Use the following command to check the parameter in Plesk database:

    # MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql -u admin psa -e"select * from misc where param='FullHostName'"
+--------------+----------------+
| param        | val            |
+--------------+--------------- +
| FullHostName | <old hostname> |
+--------------+----------------+

To reconfigure SSO logout-url you should change Plesk full hostname and re-register Plesk in SSO server anew.Check Plesk full hostname via Parallels Plesk Panel interface Plesk Settings > Server Settings > Full hostname } or with utility /usr/local/psa/bin/server_pref :

    # /usr/local/psa/bin/server_pref --update -hostname <new hostname>
SUCCESS: Server preferences are successfully updated

And re-register Plesk on SSO server:

    # $PRODUCT_ROOT_D/bin/sso -s -server https://<new hostname>:11443 -url https://<new hostname>:11444
SUCCESS: SSO preferences are successfully updated

After new registration of Plesk in SSO server all connections of global and local accounts should be restored.

Have more questions? Submit a request
Please sign in to leave a comment.