Highlighted
Absent Member.
Absent Member.
1395 views

Direct link to a report without authentication

Jump to solution

Hi,

 

I created views and reports in my uCMDB (9.04) and now I'd like to publish a direct link to a few of these. But to access to these reports using these links the authentication is required.

 

Is there a way to use direct links without authentication or, if this is not possible, to access to the link automatically using a default user (then skipping the authentication page..)?

 

Best regards,

Sutot

0 Likes
1 Solution

Accepted Solutions
Highlighted
Acclaimed Contributor.. Acclaimed Contributor..
Acclaimed Contributor..

Re: Direct link to a report without authentication

Jump to solution

Yes, it's possible on 9.05. Almost sure 9.04 works same way.

Generate direct link with credentials or just add bold parameters to generated link. For instance:
  http://ucmdbhostname:8080/ucmdb-ui/cms/directAppletLogin.do?cmd=ShowReport&reportType=view&reportName=AllUnix&archiveName=&archiveDate=&reportTitle=&reportSubtitle=&userName=JohnDoe&password=748N0kwacLGVcmXWGWAV+Q==&customerId=1&encoded=true&interfaceVersion=9.0.0

 

Encrypt password with JMX method UCMDB-UI:name=UCMDB Integration:encryptString

 

Hope this helps.

 

Regards
-Dmitry Gomel, PMP
Click the Like button at the bottom to say 'Thanks'.

View solution in original post

11 Replies
Highlighted
Acclaimed Contributor.. Acclaimed Contributor..
Acclaimed Contributor..

Re: Direct link to a report without authentication

Jump to solution

Yes, it's possible on 9.05. Almost sure 9.04 works same way.

Generate direct link with credentials or just add bold parameters to generated link. For instance:
  http://ucmdbhostname:8080/ucmdb-ui/cms/directAppletLogin.do?cmd=ShowReport&reportType=view&reportName=AllUnix&archiveName=&archiveDate=&reportTitle=&reportSubtitle=&userName=JohnDoe&password=748N0kwacLGVcmXWGWAV+Q==&customerId=1&encoded=true&interfaceVersion=9.0.0

 

Encrypt password with JMX method UCMDB-UI:name=UCMDB Integration:encryptString

 

Hope this helps.

 

Regards
-Dmitry Gomel, PMP
Click the Like button at the bottom to say 'Thanks'.

View solution in original post

Highlighted
Absent Member.
Absent Member.

Re: Direct link to a report without authentication

Jump to solution
It works!

Dilma, thank you for your answer!
0 Likes
Highlighted
Absent Member.
Absent Member.

Re: Direct link to a report without authentication

Jump to solution

Is it possible to do the same thing in uCMDB 10.01?

 

I would like to supply username and password credentials to a saved report URL.

 

Here is my URL from using generate link:

http:/cmdb:8080/ucmdb-ui/cms/directAppletLogin.do?cmd=ShowReport&reportType=view&reportName=MAPxyz+New&archiveName=&archiveDate=&reportTitle=View+Based+Report&reportSubtitle=&reportTableFormat=Hierarchical 

 

I tried many iterations of what you supplied with 9.0, but had no luck, it still prompts for login.

 

Also,

Do I need to use the JMX Command encrypt password instead of string ?

Encrypt password with JMX method UCMDB-UI:name=UCMDB Integration: getEncryptedPasswordForURL

 

Any help would be greatly appreciated !

 

Thank you,

 

Justin

 

0 Likes
Highlighted
Acclaimed Contributor.. Acclaimed Contributor..
Acclaimed Contributor..

Re: Direct link to a report without authentication

Jump to solution

That's work for me on UCMDB 10.01:

http://localhost:8080/ucmdb-ui/cms/directAppletLogin.do?cmd=ShowViewTopologySA&viewName=NetworkTopology&navigation=false&interfaceVersion=9.0.0&userName=admin&password=admin&encoded=false

 

in case you need to ecode the password please use instructions below and change encoded attribute to be true.

Regards
-Dmitry Gomel, PMP
Click the Like button at the bottom to say 'Thanks'.
0 Likes
Highlighted
Absent Member.
Absent Member.

Re: Direct link to a report without authentication

Jump to solution

Hi Dima, 

 

Thank you very much !That worked with the network view. Do you know if this is the command that I use for report ?

 

http://cmdb/ucmdb-ui/cms/directAppletLogin.do?cmd=ShowViewTopologySA&viewName=MAPxyz&navigation=false&interfaceVersion=9.0.0&userName=userxyz&password=passxyz&encoded=true

 

Or should I replace view with report ?

0 Likes
Highlighted
Acclaimed Contributor.. Acclaimed Contributor..
Acclaimed Contributor..

Re: Direct link to a report without authentication

Jump to solution

Dear Justin,

Adding "&userName=admin&password=admin&encoded=false" at the end of any generated direct link should do magic. 

 

Regards
-Dmitry Gomel, PMP
Click the Like button at the bottom to say 'Thanks'.
0 Likes
Highlighted
Absent Member.
Absent Member.

Re: Direct link to a report without authentication

Jump to solution

When I append that to my generated link

 

//cmdb:8080/ucmdb-ui/cms/directAppletLogin.do?cmd=ShowReport&reportType=view&reportName=MAP+XYZ+New&archiveName=&archiveDate=&reportTitle=Production+Infrastructure&reportSubtitle=&reportTableFormat=Hierarchical

&userName=userName&password=passwordxyz&encoded=true

 


it shows login page. Any help would be appreciated

0 Likes
Highlighted
Acclaimed Contributor.. Acclaimed Contributor..
Acclaimed Contributor..

Re: Direct link to a report without authentication

Jump to solution

Following link is for NetworkTopology report.

 

http://localhost:8080/ucmdb-ui/cms/directAppletLogin.do?cmd=ShowSavedReport&reportType=view&reportName=NetworkTopology&navigation=false&interfaceVersion=9.0.0&userName=admin&password=admin&encoded=false

 

Works for me like a charm.

Regards
-Dmitry Gomel, PMP
Click the Like button at the bottom to say 'Thanks'.
0 Likes
Highlighted
Absent Member.
Absent Member.

Re: Direct link to a report without authentication

Jump to solution

Works great ! Thank you Dima !

0 Likes
Highlighted
Acclaimed Contributor.. Acclaimed Contributor..
Acclaimed Contributor..

Re: Direct link to a report without authentication

Jump to solution

In case of reporting  in UCMDB Browser please use following format:

http://hostname:8088/ucmdb-browser/ucmdb_browser.jsp?locale=en&username=admin&password=admin#report=HugoC;tab=reports

Was tested on Browser 3.2 and UCMDB 10.01...

Regards
-Dmitry Gomel, PMP
Click the Like button at the bottom to say 'Thanks'.
0 Likes
Highlighted
Visitor.

Re: Direct link to a report without authentication

Jump to solution

Hey Dima

This Sounds great ,but could you please help on encrpting the Password i think we have a Server and Browser deployed on same environmen,concern is direct password is exposed .

Even Encrpypted password doesnt work

Cheers 🙂

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.