ITADN

Fix -E parameter conflict with AAD authentication

#187Pull Requestalelapeyre 创建于 2024-10-11已合并
A
alelapeyrecommented
When no username is passed to the sqlserver connection URL, the adapter adds the -E parameter to the sqlcmd command. However, when using ActiveDirectoryDefault in the --authentication-method parameter, it doesn't work because the go-sqlcmd program will choose integrated authentication instead of AAD authentication. Integrated authentication is chosen in go-sqlcmd either because the -E parameter is provided or because the username is empty and the authentication method is not specified. This commit prevents the -E parameter from being passed if the authentication method parameter is provided, ensuring that AAD authentication can be used properly.
合并状态:已合并 合并于 2025-04-27 关闭于 2025-04-27 2 条评论