VMware Cloud Community
pedjono
Enthusiast
Enthusiast

vRA - Redirect to tenant login page be default.

Hi there,

I am looking for the best solution to have "End-Users" hit the tenant login page be default when going to the vRA portal.

First some context:

We have a single vRA appliance, we have a single tenant, with multiple Business Groups.

Currently users have to go to https://longservername.longfqdn/vcac/org/tenant/  to hit the login page.
I have a cname being created to use as a short URL, but this by itself will still only hit the server, default vRealize Automation Appliance page, so users will have to add /vcac/org/tenant on the end...

I have googled a lot and read a lot of documentation, this is why now I'm asking...

While we could use a Load Balancer or F5 or proxy in front to do the redirect this is extra overhead which seems un-needed for a single appliance.

I have found the blogs and various other pages saying you can edit the file on the appliance itself. like this one : Will on IT: vRA Redirect To Login  while this works I also understand its not best practice to edit files on the appliance.

Is this what im after? Set the vRealize Automation Login URL to a Custom Name  it doesnt quite seem like it will do the redirect part.

Is there any official vmware support way of doing this?

Thanks Jonathan.

Tags (1)
7 Replies
daphnissov
Immortal
Immortal

No, you'll just have to tell (or provide) users to bookmark the appropriate URL of https://<FQDN>/vcac/org/<tenant_id>. It's really not a big deal, just make sure they don't bookmark the URL containing the SAML token.

tm19
Contributor
Contributor

It isn't officially supported, we have been using the method at Will on IT: vRA Redirect To Login

Been working since 7.1, still working on 7.5, cuts down a lot on clients confusion.

Cheers

pedjono
Enthusiast
Enthusiast

This is what I have implemented for now... I am surprised there is no option on the vRA appliance gui for this.

It is likely in the future we will add our own proxy or load balancer front end...

Cheers will close this off now

Reply
0 Kudos
Sreejesh_D
Virtuoso
Virtuoso

is 'URL shortening services' an option for you? like Tiny URL.

TinyURL.com - shorten that long URL into a tiny URL

Reply
0 Kudos
ebgloria
Contributor
Contributor

Hi,

I have tried Will on IT: vRA Redirect To Login and it does work, however, my question is what if you have multiple tenants?

Reply
0 Kudos
pedjono
Enthusiast
Enthusiast

Hi ebgloria​   Sorry I have only just seen your question...

You have probably resolved this by now... but I would suggest (without actually doing it) to use the same method to redirect but redirect to another page you create which then has the tenants listed and you can then click on the tenant you want.

Again this is without actually doing it.. just thinking about what I would try.

Cheers

ymichalak
Hot Shot
Hot Shot

Hi,

- connect with SSH on vRA appliance  then go to :  "/usr/lib/vcac/server/webapps/ROOT"

- Now duplicate the file "index.jsp" and give the name "admin.jsp" to this copy.

- make sure two file have  chmod 644.

- Edit the "index.jsp" and add this section just after <body> :

<body>

    <%-- Custom Section --%>

    <%-- Redirect default Home Page --%>

    <%-- To Production Tenant --%>

   

    <meta http-equiv="refresh" content="0; URL='https://longservername.longfqdn/vcac/org/tenant/'" />

Now all end-users will be redirect to the Production tenant from the url's :

https://longservername.longfqdn


For the administrator the ADMIN page URL is now :

https://longservername.longfqdn/admin.jsp

Best regards.

Reply
0 Kudos