linkedin - 安装 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"
解决方案
从这篇 github 帖子(https://github.com/linkedin/WhereHows/issues/874#issuecomment-346031871)中得到提示,似乎wherehows
在数据库后端寻找有效用户(参见https://github.com/ linkedin/WhereHows/blob/master/wherehows-docs/getting-started.md#database-setup)wherehows.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 凭据问题的根本原因。
推荐阅读
- c++ - LUT 避免 uint32_t 幂指数
- c - 什么负责为变量分配和链接地址?
- ionic-framework - 如何在具有背景img的离子中生成精美的二维码
- python - 尝试在 gensim 中创建 doc2vec 模型时出现类型错误
- spring-boot - 无法连接到在不同系统中的redis,在docker和spring boot服务器中运行在docker容器中的不同系统上
- asp.net-core - DotNetCore的graphql中DataLoader的缓存机制
- typescript - 使用 typescript 在原型上声明类型
- loops - Nightwatch if .waitforelement 条件
- php - Laravel/Passport 获取守卫用户 id
- angular - Angular:设置自定义错误和编辑字段的方法