How-to: UMC Portal - Change the default startsite to /univention/management

How to:

You can configure the UMC in UCS 5, to open the classic Management interface instead of the default Portal site, similar to older UCS versions. Activating this option will also introduce a new Server entry in the burger menu, from which you can reboot or shutdown the system through the graphical interface.


Step 1: Set the UCRV for the startsite

You have to set the UCR Variable for the startsite to univention/management, so the apache will use this as first.

Default value to reach the Portal site:
ucr get apache2/startsite
univention/

Set the Value to management to reach the old UMC.
ucr set apache2/startsite=univention/management

Setting apache2/startsite
File: /etc/apache2/ucs-sites.conf.d/ucs-sites.conf

Step 2: Restart Services

To apply and use the setting, you have to restart the following Services.

  1. systemctl restart apache2.service
  2. systemctl restart univention-management-console-server

Step 3 (Optional): Modify the Portal entry login-ucs

After logging out via the burger menu, you will be redirected to univention/portal. To change the behavior so that the portal entry directs users to univention/management on their next login, you must modify the associated portal link.

Default:

udm portals/entry list --filter cn=login-ucs

cn=login-ucs
DN: cn=login-ucs,cn=entry,cn=portals,cn=univention,dc=univention,dc=intranet
  activated: TRUE
  anonymous: TRUE
  backgroundColor: None
  description: de_DE: Am Portal anmelden
  description: fr_FR: Connectez-vous au portail
  description: en_US: Log in to the portal
  displayName: en_US: Login
  displayName: fr_FR: Connexion
  displayName: de_DE: Anmelden
  icon: PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0
PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IndoaXRlIiBzdHJv
a2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3Vu
ZCIgY2xhc3M9ImZlYXRoZXIgZmVhdGhlci1sb2ctaW4iPjxwYXRoIGQ9Ik0xNSAzaDRhMiAyIDAg
MCAxIDIgMnYxNGEyIDIgMCAwIDEtMiAyaC00Ij48L3BhdGg+PHBvbHlsaW5lIHBvaW50cz0iMTAg
MTcgMTUgMTIgMTAgNyI+PC9wb2x5bGluZT48bGluZSB4MT0iMTUiIHkxPSIxMiIgeDI9IjMiIHky
PSIxMiI+PC9saW5lPjwvc3ZnPgo=
  link: en_US: /univention/login/?location=/univention/portal/
  linkTarget: samewindow
  name: login-ucs
  target: None

To change the link to univention/management:

udm portals/entry modify --dn cn=login-ucs,cn=entry,cn=portals,cn=univention,$(ucr get ldap/base) --set link='"en_US" "/univention/login/?location=/univention/management/"'

New value:
udm portals/entry list --filter cn=login-ucs

cn=login-ucs
DN: cn=login-ucs,cn=entry,cn=portals,cn=univention,dc=miro,dc=intranet
  activated: TRUE
  anonymous: TRUE
  backgroundColor: None
  description: fr_FR: Connectez-vous au portail
  description: en_US: Log in to the portal
  description: de_DE: Am Portal anmelden
  displayName: en_US: Login
  displayName: fr_FR: Connexion
  displayName: de_DE: Anmelden
  icon: PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0
PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IndoaXRlIiBzdHJv
a2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3Vu
ZCIgY2xhc3M9ImZlYXRoZXIgZmVhdGhlci1sb2ctaW4iPjxwYXRoIGQ9Ik0xNSAzaDRhMiAyIDAg
MCAxIDIgMnYxNGEyIDIgMCAwIDEtMiAyaC00Ij48L3BhdGg+PHBvbHlsaW5lIHBvaW50cz0iMTAg
MTcgMTUgMTIgMTAgNyI+PC9wb2x5bGluZT48bGluZSB4MT0iMTUiIHkxPSIxMiIgeDI9IjMiIHky
PSIxMiI+PC9saW5lPjwvc3ZnPgo=
  link: en_US: /univention/login/?location=/univention/management/
  linkTarget: samewindow
  name: login-ucs
  target: None