Jump to content

How can i get user name and password in jasperserver to paass in url of DB Connection


netti royala
Go to solution Solved by elizam,

Recommended Posts

Hai Friends . I want to get username and password of jasper server logged in user ,then i want to pass those username and password in URL of DB to get connection from the DB,then after i would like execute the report by using URL.here my DB user name , password are the JasperServer users and their password are equal ,how can i pass,Colud you please some one help me.
Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

  • Solution

What are you trying to accomplish with this?  Since the connection to the database is set up with a specific name and password, I don't think you can change that on the fly.  This also doesn't sound very secure.  If you are trying to control the data that a user can access, the pro version allows you to do this by setting up a domain and a security file.

Link to comment
Share on other sites

Thank you for responding to this.I am trying Pass username and password in the URL,so i can see which user can modify the data,here user name and password are not same for all time.it can be changed based on the user.I could perform this one in java application ,but how can i here ?
Link to comment
Share on other sites

  • 2 years later...

Are you trying to connect to a different database based on the user?  You can do that using attributes.

http://community.jaspersoft.com/documentation/tibco-jasperreports-server-administration-guide/v62/managing-attributes-0

"Attributes are name-value pairs that are associated with users, organizations, and the server itself. Attribute values can be used to parameterize access to data sources, Domain data, OLAP data, and report output. "

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...