首页 > 解决方案 > 安装 Linkedin 的 WhereHows 后凭据无效

问题描述

WhereHows根据 github 文档(https://github.com/linkedin/WhereHows/blob/master/wherehows-docs/getting-started.md#getting-started )安装 Linkedin 后,我发现我无法登录登录屏幕哪里wherehows抱怨凭据无效(使用某些 LDAP 用户) 在此处输入图像描述

有谁知道这是怎么回事?

** 我的Play前端配置变量(https://github.com/linkedin/WhereHows/blob/master/wherehows-docs/getting-started.md#frontend-setup)如下所示:

export WHZ_DB_USERNAME="wherehows"
export WHZ_DB_PASSWORD="wherehows"
export WHZ_DB_URL="jdbc:mysql://localhost/wherehows"

export WHZ_ES_DATASET_URL="localhost:9200/wherehows"
export WHZ_ES_METRIC_URL="localhost:9200/_nodes/stats"
export WHZ_ES_FLOW_URL="localhost:9200/wherehows/flows_jobs"

export YOUR_HDFS_BROWSER_LINK="http://node004.myco.local:8888/filebrowser/#"

export WHZ_LDAP_URL="ldap://co.myco.local:389"
export WHZ_LDAP_PRINCIPAL_DOMAIN="@co.local"
export WHZ_LDAP_SEARCH_BASE="ou=mapr access,dc=co,dc=local"

标签: linkedinlinkedin-api

解决方案


从这篇 github 帖子(https://github.com/linkedin/WhereHows/issues/874#issuecomment-346031871)中得到提示,似乎wherehows在数据库后端寻找有效用户(参见https://github.com/ linkedin/WhereHows/blob/master/wherehows-docs/getting-started.md#database-setupwherehows.users

所以做类似的事情

> [me@mapr07 wherehows-frontend]$ mysql -u root -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 231
Server version: 5.6.40 MySQL Community Server (GPL)

Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> select * from wherehows.users;
Empty set (0.00 sec)

mysql> INSERT INTO wherehows.users 
    (name, email, username, password_digest, password_digest_type, authentication_type) 
    VALUES ('testuser', 'rvillanueva@ucera.org', 'testuser', SHA1('testuser'), 'SHA1', 'default');
Query OK, 1 row affected (0.02 sec)

mysql> exit

然后我们可以wherehows使用 name=testuser 和 password=testuser 登录登录屏幕。

**尽管这确实让我对 LDAP 究竟在哪里出现有点困惑,如果唯一重要的事情是作为安装的一部分设置的 sql 后端上的用户的存在(如果有人知道这个问题的答案请告诉我)。

更新:这似乎只是一个已知的解决方法,用户应该能够使用 LDAP(https://github.com/linkedin/WhereHows/issues/616#issuecomment-323164744),所以这个答案可以通过调查来改进无法在登录屏幕上使用 LDAP 凭据问题的根本原因。


推荐阅读