[BUG] Hive 数据源连接密码未传递导致 LDAP 认证失败
@xuwei-fit2cloud ya está trabajando en esto.
Desde el 22/6/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
SQLBot Version
1.9.0
Run Mode
Is it running in a Docker container or running from source code?
running in a Docker container
Describe the bug
A clear and concise description of what the bug is.
新建 Hive数据源时,即使在前端页面正确填写了密码,连接测试仍然报 LDAP 认证失败:PLAIN auth failed: javax.security.sasl.AuthenticationException: Error validating LDAP user [Caused by javax.naming.AuthenticationException: [LDAP: error code 49 - INVALID_CREDENTIALS: Bind failed]]。而使用 DBeaver 等工具使用相同连接信息可以正常连接。
To Reproduce
Steps to reproduce the behavior:
1.进入"数据源"页面,点击"新建数据源"
2.选择类型 "Apache Hive"
3.填写正确的 Host、Port、用户名(如 sql_bot_test)、密码、数据库名
4.点击"连接测试"
5.弹出连接失败提示,报 LDAP 认证错误
Expected behavior
A clear and concise description of what you expected to happen.
在前端正确填写密码后,SQLBot 应能正常通过密码认证连接到 Hive 数据源,无需用户在额外配置中手动传入密码。
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
后端 backend/apps/db/db.py 中所有 4 处 pyhive.hive.connect() 调用(第 255 行连接检查、第 444 行获取表、第 504 行获取字段、第 700 行执行 SQL)均未传入 password=conf.password 参数
HiveServer2 收到空密码后向 LDAP 发起绑定请求,LDAP 服务器拒绝空密码认证,导致报 INVALID_CREDENTIALS
临时绕过方式:在"额外的数据库连接配置"中填入 auth=LDAP&password=实际密码
- Lenguaje dominante
- JavaScript
- Estrellas
- 6.8k
- Forks
- 882
- Merge medio
- 4 h 41 min
- PR fusionados (30 d)
- 35
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de dataease/SQLBot
-
SQLBot AbiertoFeedback required
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
-
[FEATURE] 语言支持泰语 AbiertoDone feature
-
[BUG]导入表头字段不能太长,有字段长度限制,删减后能正常导入 Abiertobug Done
-
bug Done
-
Done feature
Todos los issues de dataease/SQLBot
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
avniproject/avni-client#2135 ·
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
babalae/bettergi-scripts-list#3674 ·
-
A-Release-Notes C-Editing D-Modest S-Ready-For-Implementation
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
bevyengine/bevy-website#2595 ·
-
ecosystem wording
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
matrix-org/matrix.org#3649 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
vadimdemedes/ink#1029 ·