How can i get user name and password in jasperserver to paass in url of DB Connection
Posted on November 12, 2013 at 3:39am
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.
Posted on November 12, 2013 at 10:45am
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.
Posted on March 29, 2016 at 3:23pm
Are you trying to connect to a different database based on the user? You can do that using attributes.
"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. "