06-12-2017 02:22 PM - edited 03-01-2019 03:51 AM
Hi Team,
I would like to use the Webui redirection option available via ncs.conf
I would like to redirect to the ncs:service web page after a successful login
I added this command and made a reload of NSO but it didn't work for my browser (chrome/I.E)
<webui-index-url>
/index.html#/model/ncs%3Aservices
</webui-index-url>
What do you think is the correct syntax ?
Thanks and Regards,
Yannick
07-03-2017 05:48 PM
Hi Yannick,
Can you please compose and try another test-file, say index-test.html and see if the "webui-index-url" works with that.
Then we can raise this with engineering as to the correct way of encoding special characters and whether this type of URL formatting is supported.
08-09-2017 03:58 PM
Hi Yannick,
the documentation suggests the following configuration for redirections (see page 458 of the nso_man-4.4.pdf guide that covers all configuration options for the ncs.conf file):
<webui>
<enabled>true</enabled>
<transport>
<tcp>
<enabled>true</enabled>
<ip>0.0.0.0</ip>
<port>8080</port>
<redirect>https://www.cisco.com</redirect>
</tcp>
</transport>
</webui>
This however will redirect all users without ever reaching NSO login.
The option that will probably cover your needs is a combination of leveraging the docroot folder (by default under var/ncs/webui/dist/ncs) and modifying the login.html and/or the index.html to address your needs, i.e. once logged in redirect to another URL)
Best to copy the folder to another location, modify ncs.conf to use that location as the docroot and change the login / index html files.
<webui>
<enabled>true</enabled>
<docroot>/new/docroot/path</docroot>
..
..
</webui>
Regards,
Dimitris
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide