安装Linkedin'后的凭据无效;怎么了
根据github文档()安装Linkedin的安装Linkedin'后的凭据无效;怎么了,linkedin,linkedin-api,Linkedin,Linkedin Api,根据github文档()安装Linkedin的WhereHows后,我发现我无法登录到登录屏幕,其中WhereHows抱怨凭据无效(使用某些LDAP用户) 有人知道这是怎么回事吗 **Playfrontend()的配置变量如下所示: export WHZ_DB_USERNAME="wherehows" export WHZ_DB_PASSWORD="wherehows" export WHZ_DB_URL="jdbc:mysql://localhost/wherehows" export W
WhereHows
后,我发现我无法登录到登录屏幕,其中WhereHows
抱怨凭据无效(使用某些LDAP用户)
有人知道这是怎么回事吗
**Play
frontend()的配置变量如下所示:
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帖子()中得到一个提示,
wherehows
似乎在数据库后端查找有效用户(请参阅)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
然后,我们可以使用name=testuser和password=testuser登录到wherehows
login屏幕
**尽管这确实让我有点困惑,如果唯一重要的是作为安装一部分设置的sql后端上是否存在用户(如果有人知道这个问题的答案,请让我知道),那么LDAP究竟在哪里出现
更新:
这似乎只是一个已知的解决方法,用户应该能够使用LDAP(),因此可以通过调查无法在登录屏幕上使用LDAP凭据的问题的根本原因来改进这个答案