asking credentials when opening worksheet - tableau-api

I had published my Dashboard to server and while opening it to server it is asking me to login. even I gave the correct credentials it is asking me to login again.
When I try to connect SQL server with the same credentials it is working.

To view a published a workbook (that uses a live connection) without being prompted for credentials, the credentials for the underlying data source must be embedded.

How is your data source configured? Live or Data Extract?
Did you choose the "Embedded Password" option when publishing to the server?

Related

Azure "MySQL in App" An attempt was made to access a socket in a way forbidden by its access permissions

I activated “MySQL in app” on Azure and clicked the “Manage” link. A phpMyAdmin login page launches.
Login does not accept any username/password combo including what I find in MYSQLCONNECTSTR_localdb.ini.
Is there any other setup required to access the tool, or is there another tool I could use to create a new db on MySQL in App?
I found the problem. If the website has been stopped and restarted you have to first connect to the website URL from a browser.
Once you do that, the instance is running and you can connect to phpMyAdmin.
It will launch without a login screen.

Get IBM Bluemix SQL Database service credentials before I bind it to application, is it possible?

When I bind SQL Database service to an application I can see credentials from application panel. But in case I've created a service and would like to work with it before I'm binding to any application, is it possible? I haven't find a way to see credentials, only internal tools to work with database.
Thank you.
Once you provision a new SQL Database instance, you need to enter the service details page in bluemix, find the 'Launch' button to go to the service page which will open up separately. On the service page go to Set up `-->` Connect Applications `-- >` Connection settings. You will get all the connection details except the username and password.
If you are not able to resolve the username and password then you have got two alternatives :-
1. Create a dummy application, bind it to your SQL Database, get the credentials from VCAP_SERVICES, and you can use them externally.
2. If you are looking for something only on `DB2` then you have another alternative called `DashDB` available in Bluemix. Here the settings are well defined, credentials are clearly available and will work even without binding the service to an application.
Hope this helps you. Thanks.

Tableau Reporting

I am currently using Tableau for my reporting module. However, I have several issues I need answered. I tried the following; please comment if I am on the right track.
I want to embed Tableau generated report to my website, so I used Javascript API. My data may come from Tableau Online (Cloud Server), or Tableau Server, for now I used Tableau Online.
Now, I have to create my report so I used Tableau Desktop to create how my report would look like. Tableau Desktop can connect to my local DB for get data.
Then, I published my workbook to my server . However, in Tableau Online, I need to data connection which fails since I don't have a live server.
I downloaded Tableau Server but I can't proceed since in configuration it want an Active Directory credentials.
I haven't done any output, I think I am stuck. I would welcome some input.
Tableau supports both Active Directory and Local Authentication Mode. We have tableau server running in local authentication mode but however its not highly advisable to run the server in local authentication.
If you have installed tableau server in active directory mode, reinstall the server. During your reinstall select local authentication as the default authentication. Once you have installed it, you need to add on Administrator Account.
Another workaround is go to All Programs > Tableau Server > Configure Tableau Server. In General Tab, you will be having the User Authentication. Try changing it if its enabled. If its disabled you need to reinstall tableau.
below are the steps to reinstall tableau server
Back up and remove Tableau Server
When Tableau Server has been uninstalled, open Windows Explorer and navigate to C:\Program Files\Tableau.
Delete the Tableau Server folder.
Navigate to the C:\ProgramData\Tableau.
Delete the Tableau Server folder.
Reinstall Tableau Server and restore the backup
Install Tableau Server. This step will allow you to set a new authentication method.
After installing Tableau Server, a browser window will display and you will be prompted to create a new administrator account. Ignore this, and close the browser window.
After restoring your backup file, a browser window will display and you will be prompted to create a new administrator account again. Ignore this, and close the browser window. If you are prompted to type in the Run As user password, type the password and continue with the next step. You will not see a password confirmation.
In the Command Prompt window, from the Tableau Server bin directory, type the following command to reset Tableau Server back to a state that requires an administrator account to be set up:
tabadmin reset
Open a browser window, and type http://localhost in the address bar to set up the administrator account for Tableau Server.
I may have assumed that when you say Tableau Online, you dont mean the Tableau Public..
I assume your tableau online is your local or let's say company hosted tableau server...
for the answers to your questions in sequence
1 - 3 it can be done.
tableau supports a lot of datasources even the classic text based data it can read..
did you tried installing your database drivers?
If the server is configured to use local authentication, when you add
a user identity, you specify a username, a password and a site role.
In that case, the Tableau Server repository is used exclusively to
authenticate the user.
http://onlinehelp.tableau.com/current/server/en-us/security_auth.htm

In CodeCharge Studio 4.3, i get a database error

I made a page and a Login page to secure that first page. When you login, it show the error:
Unable to establish connection to database.
Error information:
Microsoft OLE DB Provider for SQL Server (0x80040E4D)
Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.
Anyone know what this exactly means and what to do about it?
Answers help! :D
Check your Connection string settings for your 'Design' and the 'Live' server (which might be your own PC with IIS installed)
You may be able to access the tables etc when in Design mode, but when you publish it (even locally) it will use the 'Live' server details - which will mean you need to check that IIS has an appropriate user to access the SQL Server and database.
Most of the time I use 'SQL Authentication', but either way you need to allow the user access to SQL and DB.
Have a look at these other questions for options:
How do I configure SQL Server to allow access via IIS
and Microsoft has several options from this article:
MSDN Accessing SQL Server from a Web Application

Lost access to websphere admin console

I'm kind of new with websphere. I was following an internal guide for setting up one of our company apps in websphere, but I changed one parameter in the admin console and after restarting the server, we cannot access with the administration console.
I checked the first option, when before the second one was, with user admin, and password admin also. Now, because It says "Server identity generated automatically" I have no idea what combination of user and password I need to enter in the administration console..
The administration console I'm referring to is the one located in server:port/ibm/console.
Thanks, this is really a serious problem for me, I would really appreciate any help I can get...
You should still be able to use whatever password you were using for admin user before making the change. Server user id is not used for restricting access to administrative console (see What is security property 'Server user identity' used for in Websphere Application Server?).
Nonetheless, since you can't access admin console at the moment (I'm assuming you mean that admin colsole login page shows up but you can't get admin user authenticated due to wrong password), first thing I'd suggest is turning of global security, so that you can use admin console to fix your settings and re-enable security. Once security is turned off, you won't be asked for a password during admin console login. Changing security settings in WebSphere Application Server with wsadmin technote gives step by step instructions.
If you are not sure about what password you have used for admin user, you must reset the password in the user repository you have configured (for example if you've configured LDAP, you must reset password at LDAP), before enabling security. If you are using a federated repository (this is default if you've not changed it), most probably admin user resides in file based repository, which is the first member of federated repository. In this case, you can just follow steps at How to reset the administrator's password in the file registry technote to reset your password. Otherwise you can try alternative documented at Updating your WAS administrator password (the link is from Lotus documentation but still is applicable).
Given that you have the command line 'xmlstarlet' in your terminal and,
WAS_HOME = Is your Websphere root location
PROFILENAME = IS your
profile's name
CELLNAME = Is your cell's name
Then,
xmlstarlet edit --update "/security:Security[#enabled='true']/#enabled" --value "false" $WAS_HOME/profiles/$PROFILENAME/config/cells/$CELLNAME/security.xml > /tmp/security.xml
cp /tmp/security.xml $WAS_HOME/profiles/$PROFILENAME/config/cells/$CELLNAME/security.xml
Summary: You are simply editing the correct security.xml file by changing the enabled="true" attribute to enabled="false" programmatically using xmlstarlet. Note that sed,awk,ed and other GNU tools lack the necessary ability to properly deal with the nested tree structure of XML.