mysqli::real_connect(): Authentication data too long. Won't fit into the buffer and will be truncated. Authentication will thus fail
未关闭
还没有人认领这个 Issue。
Bug
Extension: mysqlnd
Status: Needs Triage
- 主要语言
- C
- 星标
- 40.4k
- 派生
- 8.2k
- 平均合并
- 2 天 13 小时
- 30 天内合并 PR
- 96
描述
Description
I'm using JWT tokens as passwords for MariaDB (via PAM auth) and while using phpmyadmin 5.2.1 I see this message pop up. However, even though the message appears authentication does succeed.
It looks like mysqlnd_wireprotocol.c will set this message if (packet->auth_data_len > 0xFF)
Passwords can actually be extremely long though.
PHP Version
PHP 8.1.15
Operating System
No response
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
当 packet->auth_data_len 超过 0xFF 时,mysqlnd_wireprotocol.c 会发出警告。从这里开始,追踪 MariaDB/PAM 凭据的身份验证数据长度是如何编码和处理的。完成标准是:使用长凭据进行身份验证时,行为和警告能够准确反映该情况,并且有针对该案例的测试覆盖。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- c, mariadb, php
- 领域
- databases
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100