superset 普通使用者開啟白名單後報錯如下

2021-09-29 20:58:43 字數 2554 閱讀 3926

traceback (most recent call last):

if not self._bind_ldap(ldap, con, username, password):

con.bind_s(username, password)

file "/usr/hdp/3.1.0.0-78/superset/lib/python3.4/site-packages/ldap/ldapobject.py", line 459, in bind_s

return self.result(msgid,all=1,timeout=self.timeout)

file "/usr/hdp/3.1.0.0-78/superset/lib/python3.4/site-packages/ldap/ldapobject.py", line 738, in result

resp_type, resp_data, resp_msgid = self.result2(msgid,all,timeout)

file "/usr/hdp/3.1.0.0-78/superset/lib/python3.4/site-packages/ldap/ldapobject.py", line 742, in result2

resp_type, resp_data, resp_msgid, resp_ctrls = self.result3(msgid,all,timeout)

file "/usr/hdp/3.1.0.0-78/superset/lib/python3.4/site-packages/ldap/ldapobject.py", line 749, in result3

resp_ctrl_classes=resp_ctrl_classes

file "/usr/hdp/3.1.0.0-78/superset/lib/python3.4/site-packages/ldap/ldapobject.py", line 756, in result4

ldap_result = self._ldap_call(self._l.result4,msgid,all,timeout,add_ctrls,add_intermediates,add_extop)

file "/usr/hdp/3.1.0.0-78/superset/lib/python3.4/site-packages/ldap/ldapobject.py", line 329, in _ldap_call

reraise(exc_type, exc_value, exc_traceback)

file "/usr/hdp/3.1.0.0-78/superset/lib/python3.4/site-packages/ldap/compat.py", line 44, in reraise

raise exc_value

file "/usr/hdp/3.1.0.0-78/superset/lib/python3.4/site-packages/ldap/ldapobject.py", line 313, in _ldap_call

result = func(*args,**kwargs)

during handling of the above exception, another exception occurred:

traceback (most recent call last):

response = self.full_dispatch_request()

rv = self.handle_user_exception(e)

reraise(exc_type, exc_value, tb)

file "/usr/hdp/3.1.0.0-78/superset/lib/python3.4/site-packages/flask/_compat.py", line 33, in reraise

raise value

rv = self.dispatch_request()

return self.view_functions[rule.endpoint](**req.view_args)

if type(e.message) == dict and 'desc' in e.message:

解決辦法是使用者需要初始化下密碼才可

新建立的使用者都需要初始化下密碼否則superset登陸後會報錯

[root@ipa-01 ~]# ipa passwd liuyan

ipa: error: ticket expired

[root@ipa-01 ~]# kinit admin

password for [email protected]:

[root@ipa-01 ~]# ipa passwd liuyan

new password:

enter new password again to verify:

----------------------------------------

changed password for "[email protected]"

----------------------------------------

之後就可以正常登陸surper了

普通使用者裝配MySQL 普通使用者裝配MySQL

普通使用者安裝mysql linux這點很好,即使沒有許可權,也可以將自己想要的程式什麼的安裝到自己有許可權的目錄下。介紹一下怎麼在非root用 許可權下安裝mysql 參考 二 編譯 1 打上補丁 解壓mysql,並進入mysql 5.1.42目錄後,執行 patch np1 i mysql 5....

MySQL刪除普通使用者

mysql中,通常會建立多個普通使用者來管理資料庫 當某些使用者不再需要時,可以將其刪除 使用drop user語句刪除使用者 drop user,只需要在語句後面指定要刪除的使用者即可 drop user username hostname username hostname username,表...

普通使用者安裝MySQL

linux這點很好,即使沒有許可權,也可以將自己想要的程式什麼的安裝到自己有許可權的目錄下。介紹一下怎麼在非root用 許可權下安裝mysql 參考 二 編譯 1 打上補丁 解壓mysql,並進入mysql 5.1.42目錄後,執行 patch np1 i mysql 5.1.42 logevent...