Skip to main content

#Auth토론 중인 항목 0개

더 빠른 답변과 실시간 도움을 받으려면 Slack에서 논의하세요.

Steps to reproduce:

 

Create a new Ubuntu Xenial server:

root@tableau-1:/# lsb_release -a

LSB Version:    core-9.20160110ubuntu0.2-amd64:core-9.20160110ubuntu0.2-noarch:security-9.20160110ubuntu0.2-amd64:security-9.20160110ubuntu0.2-noarch

Distributor ID:    Ubuntu

Description:    Ubuntu 16.04.6 LTS

Release:    16.04

Codename:    xenial

Follow the steps to install Tableau Server found here: Running Setup - Tableau

The only change to the steps is to use this data directory due to the size of the Tableau Server:

gdebi -n tableau-server-2019-4-2_amd64.deb -d /mnt/data/tableau

 

 

Start the server which results in this login page:

Redirection to Login after Succesful Login on Ubuntu Xenial

Attempting to login with incorrect credentials results in the following message:

Invalid username or password

This results in the following logs:

==> data/tabsvc/logs/tabadmincontroller/tabadmincontroller_node1-0.log <==

2020-01-28 19:58:22.625 +0000  qtp650417367-962 : INFO  com.tableausoftware.tabadmin.webapp.api.v1.LoginController - Login request from client 'webui' at '172.19.21.119' for user 'a'

2020-01-28 19:58:22.625 +0000  qtp650417367-962 : INFO  com.tableausoftware.tabadmin.webapp.impl.linux.LinuxAuthenticationManager - Attempting to authenticate user 'a' with PAM service 'login'

2020-01-28 19:58:26.147 +0000  qtp650417367-962 : INFO  com.tableausoftware.tabadmin.webapp.impl.linux.LinuxAuthenticationManager - Failed to authenticate user 'a' with PAM service 'login': pam_authenticate failed : Error in service module

2020-01-28 19:58:26.156 +0000  qtp650417367-962 : INFO  com.tableausoftware.tabadmin.webapp.impl.linux.LinuxAuthenticationManager - checkpasswd for 'a' exited with code 1: su returned failure exit code, usually due to incorrect username or password.

2020-01-28 19:58:26.157 +0000  qtp650417367-962 : INFO  com.tableausoftware.tabadmin.webapp.GlobalExceptionHandler - Handling client exception com.tableausoftware.tabadmin.webapp.exceptions.RestException: errors.login.failure: errors.login.failure

This all makes sense so far.

 

Attempting to log in with valid credentials causes a redirect which returns to the same login page.

This results in the following logs:

==> data/tabsvc/logs/tabadmincontroller/tabadmincontroller_node1-0.log <==

2020-01-28 19:59:38.625 +0000  qtp650417367-958 : INFO  com.tableausoftware.tabadmin.webapp.api.v1.LoginController - Login request from client 'webui' at '172.19.21.119' for user 'myuser'

2020-01-28 19:59:38.625 +0000  qtp650417367-958 : INFO  com.tableausoftware.tabadmin.webapp.impl.linux.LinuxAuthenticationManager - Attempting to authenticate user 'myuser' with PAM service 'login'

2020-01-28 19:59:41.688 +0000  qtp650417367-958 : INFO  com.tableausoftware.tabadmin.webapp.impl.linux.LinuxAuthenticationManager - Failed to authenticate user 'myuser' with PAM service 'login': pam_authenticate failed : Authentication failure

2020-01-28 19:59:41.722 +0000  qtp650417367-958 : INFO  com.tableausoftware.tabadmin.webapp.impl.linux.LinuxAuthenticationManager - checkpasswd for 'myuser' exited with code 0: Valid username and password

2020-01-28 19:59:41.731 +0000  qtp650417367-958 : INFO  com.tableausoftware.tabadmin.webapp.impl.linux.LinuxAuthenticationManager - User myuser is authorized

 

I'm not sure if this data is relevant but here's the output from some status and start / stop commands:

root@tableau-1:/# /opt/tableau/tableau_server/packages/bin.20194.20.0119.2058/tsm status

Status: STOPPED

root@tableau-1:/# /opt/tableau/tableau_server/packages/bin.20194.20.0119.2058/tsm status

Status: STOPPED

root@tableau-1:/# /opt/tableau/tableau_server/packages/bin.20194.20.0119.2058/tsm start

Starting service...

 

Unable to determine if all components of the service started properly.

 

node1: localhost

        Status: STOPPED

        'Tableau Server Coordination Service 0' is running.

        'Tableau Server Administration Agent 0' is running.

        'Tableau Server Administration Controller 0' is running.

        'Tableau Server License Manager 0' is running.

        'Tableau Server Client File Service 0' is running.

 

See '/mnt/data/tableau/data/tabsvc/logs/tabadmincontroller/tabadmincontroller_*.log' on Tableau Server nodes running the Administration Controller process for server log information.

 

The server must be initialized before using this feature.

You have new mail in /var/mail/root

root@tableau-1:/# /opt/tableau/tableau_server/packages/bin.20194.20.0119.2058/tsm stop

Stopping service...

 

Service failed to stop properly.

 

node1: localhost

        Status: STOPPED

        'Tableau Server Coordination Service 0' is running.

        'Tableau Server Administration Agent 0' is running.

        'Tableau Server Administration Controller 0' is running.

        'Tableau Server License Manager 0' is running.

        'Tableau Server Client File Service 0' is running.

 

See '/mnt/data/tableau/data/tabsvc/logs/tabadmincontroller/tabadmincontroller_*.log' on Tableau Server nodes running the Administration Controller process for server log information.

 

The server must be initialized before using this feature.

 

Any guidance on how to debug this?

답변 8개
  1. 2020년 1월 29일 오전 11:11

    Hi Robin !

     

    1. If you would like to specify a different path for the "data directory", it's during the installation of Tableau Server.

    You can specify a different directory for data (extract) storage during installation (source)

    You need to specify the path during the initialisation of Tableau Server, not with gdebi :

    ./initialize-tsm -d /mnt/data/tableau --accepteula

     

    There is more information on this page: Help Output for initialize-tsm Script - Tableau

     

    When you run "gdebi -n tableau-server-2019-4-2_amd64.deb -d /mnt/data/tableau" it will be all the installation of Tableau Server, not only the data directory.

     

    2. If you would like to specify a different path for all Tableau Server (so not only data directory), it's possible, but only on a RHEL-like distributions. (RHEL, Centos, Amazon Linux 2, Oracle Linux) not Ubuntu. This is due to fundamental limitations of the deb packaging format.

     

    Example for RHEL : sudo rpm -i --prefix /preferred/install/path tableau-server.rpm

     

    Unfortunately, rpm does not install package dependencies automatically like yum does. rpm will output the list of missing dependencies, which can be installed manually.

     

    ps: You are running the installation as Root, it works, but it might be better to create and use a sudo user instead

     

    Kind regards,

We had a cyber intrusion on campus - Tableau server was not hit, but with all of the changes IT has made following the intrusion the Tableau server is refusing connections.

 

I can remote in to the server with an account that has admin privileges. When I try to sign in to Tableau Services Manager with what should be a good username/password at https://tableau.ad.nccu.edu:8850/ I get "invalid username or password", so I'm trying to reset the initialuser password.

 

My predecessor handled the original install several years ago and we lost all of his notes. Installation is version 2021.4 on Windows Server 2019 Standard. I am wondering if it's going to be easier to just reset the password or if I should uninstall Tableau and start from square one. I don't think there are any dashboards we absolutely need to recover but am not sure.

답변 1개
  1. 2024년 6월 27일 오후 11:07

    @Jim Price​ 

    I would start by testing the option three as described in:

    https://help.salesforce.com/s/articleView?id=001472907&type=1

     

    So, execute:

    sudo cat /etc/pam.d/su

    If you find a line like:

    auth       required     pam_wheel.so use_uid

    then edit it, and comment it (sudo nano /etc/pam.d/su):

    #auth       required     pam_wheel.so use_uid

    There could be some additional parameters, if the line contains #auth required pam_wheel.so use_uid, just comment it

    #auth       required     pam_wheel.so     use_uid, group=nosu

    Also, test if the user belongs to the tsmadmin group:

    grep tsmadmin /etc/group

    Finally, there could be several lines that have the same text, check all the lines and comment those the ones that have the text.

     

    If this post resolves the question, would you be so kind to "Select as Best"?. This will help other users find the same answer/resolution and help community keep track of answered questions. Thank you.

     

    Regards,

     

    Diego Martinez

    Tableau Visionary and Forums Ambassador

Hello,

 

I tried to implement Salesforce Auth JWT but am getting unsupported grant type error.

 

JWTBearerTokenExchange Error 400 unsupported grant type

 

Code:

Auth.JWT jwt = new Auth.JWT();

jwt.setSub('user@email.ca');

jwt.setAud('https://custom.sandbox.lightning.force.com');

jwt.setIss('0000000000000000000000000000000000000000000000000');

Auth.JWS jws = new Auth.JWS(jwt, 'certificate');

String token = jws.getCompactSerialization();

System.debug(token);

String tokenEndpoint = 'https://custom.com/services/rest/auth/oauth2/v1/token';

Auth.JWTBearerTokenExchange bearer = new Auth.JWTBearerTokenExchange(tokenEndpoint, jws);

String accessToken = String.valueOf(bearer.getAccessToken());

//String accessToken = String.valueOf(bearer.getHttpResponse());

System.debug(accessToken);

The bearer grant type was defaulted to urn:ietf:params:oauth:grant-type:jwt-bearer. I tried using Named Credentials instead of Apex implementation and am still getting the same error.

 

How do I resolve this issue?

 

Regards,

Shylesh

 

#Apex #Authentication Token #Auth #JWT Bearer Token Exhcange

답변 1개

Hello,

 

I am having hard time debugging table tsm login, though I can access and login to tableau as a test admin,in user, I cannot login to TSM at 8850.

 

I have reffered the help article - https://kb.tableau.com/articles/issue/authentication-error-incorrect-username-or-password-or-username-not-member-of-admi…

But this doesn't solve it as well.

 

My config - Using local authentication

Tableau version being used - https://downloads.tableau.com/tssoftware/tableau-server-2020-1-0.x86_64.rpm

Setup on AWS Amazon 2 AMI - Linux ip-x-y-z 4.14.165-133.209.amzn2.x86_64 #1 SMP Sun Feb 9 00:21:30 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

$tsm version

Tableau Services Manager command line version 20201.0.0.0.

Tableau Server version 20201.20.0220.1252.

 

I can do a tsm login logging in via those users, as in

 

[ec2-user@ip-xyz ~]$ tsm login

[ec2-user@ip-xyz ~]$ sudo su - centosadmin

[centosadmin@ip-xyz ~]$ tsm login

[centosadmin@ip-1xyz ~]$

 

But when I login via TSM UI or via the -u option in tsm, I get the error - Authentication error. Incorrect username or password, or username not member of administrative group

 

[ec2-user@ip-xyz ~]$ tsm login -u ec2-user

Password:

Authentication error. Incorrect username or password, or username not member of administrative group?

 

The users are in tsmadmin gp:

 

[root@ip-10-83-62-34 ec2-user]# cat /etc/group|grep tsm

tsmadmin:x:991:centosadmin,ec2-user

[root@ip-10-83-62-34 ec2-user]#

 

And have sudo priveleges -

 

# User privilege specification

root          ALL=(ALL) ALL

 

centosadmin ALL=(ALL) PASSWD:ALL

 

ec2-user ALL=(ALL) NOPASSWD:ALL

 

[root@ip-xyz ec2-user]# cat /etc/group|grep whee

wheel:x:10:ec2-user,ea,centosadmin

 

[root@ip-xyz ec2-user]# cat /etc/pam.d/su

 

auth        sufficient  pam_rootok.so

#auth        required    pam_wheel.so use_uid

account     sufficient  pam_succeed_if.so uid = 0 use_uid quiet

account     include     system-auth

password    include     system-auth

session     include     system-auth

session     optional    pam_xauth.so

 

Any help is appreciated, as I have almost given it all! Tried multiple times, different older 10.x rpms as well! And still unsure why is it not allowing to login as other admin user.

답변 1개
  1. 2020년 7월 25일 오후 8:05

    Hi Dheeraj,

     

    Did you set/change the password for the ec2-user?

     

    sudo passwd ec2-user

     

    i guess it is an empty password by default,

    when setting it to something non-empty

    you could login to the TSM web interface.

     

    Yours,

    Yuri

SFMC API users: Can anyone explain where you would use the refresh token returned in the v2/token request response? Why wouldn't you just create a new auth token to replace the expired one?

댓글 3개
  1. 2019년 3월 22일 오후 6:55
    The documentation will not have everything a developer can do in the account, as it is too extension. So of it will be based on experience and figuring out if it can/will work or not. Also with the developer community in that forum, you can search for answers and also ask questions there.

Dear @Salesforce Identity , @Itzik Koren ,

 

We're using a Named Credential + OAuth/Open ID-based Auth. Provider to authorize a callout from SFDC to a 3rd-party service. Whatever Auth. Provider I use seem to stubbornly require a callback to include the state parameter.

 

I'm aware it's the best practice and that security comes first at SFDC, but how can we authorize our callouts when the 3rd-party's IdP is not capable of providing back the state we sent it first (not on their roadmap)?

 

(handleCallback() of Auth.AuthProviderPluginClass is not even getting called if there's no state in the callback.)

 

Poignant is the 3rd-party is actually a leading bank group... SFDC is more secure than a bank and I like it!

  1. Is there a way I don't see how to take the risks and make use of an Auth. Provider when there's no state in the callback?
  2. Would you consider allowing such a configuration in the future improvements around Open ID / OAuth capabilities of Salesforce?

Thank you!

댓글 3개
  1. 2018년 8월 31일 오후 2:47
    Honestly no idea if that would pass. I’d bet it with your partner team first.