Repository navigation
Conversation
GaussDB authType=10 的 SHA256 认证中,服务器即使报文携带 iteration=10000,实际仍以 2048 次迭代校验 proof;官方 JDBC 驱动对协议 3.0/3.50 客户端硬编码 2048(ConnectionFactoryImpl.server_iteration_350)。旧实现无条件信任报文值,导致 ClientProof 计算错误,登录被拒(28P01 用户名或密码不合法),而相同密码经 JDBC 可正常登录。 新增 sha256Iterations 连接参数:默认 2048 对齐 JDBC;设为 'server' 时信任报文值(等价 JDBC 3.51 行为);支持连接串与 GAUSSSHA256ITERATIONS 环境变量,非法取值抛 RangeError。补充单元测试覆盖默认值、'server' 模式、自定义值、边界校验及参数传递链路。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GaussDB authType=10 的 SHA256 认证中,服务器即使报文携带 iteration=10000,实际仍以 2048 次迭代校验 proof;官方 JDBC 驱动对协议 3.0/3.50 客户端硬编码 2048(ConnectionFactoryImpl.server_iteration_350)。旧实现无条件信任报文值,导致 ClientProof 计算错误,登录被拒(28P01 用户名或密码不合法),而相同密码经 JDBC 可正常登录。
新增 sha256Iterations 连接参数:默认 2048 对齐 JDBC;设为 'server' 时信任报文值(等价 JDBC 3.51 行为);支持连接串与 GAUSSSHA256ITERATIONS 环境变量,非法取值抛 RangeError。补充单元测试覆盖默认值、'server' 模式、自定义值、边界校验及参数传递链路。