mssql-odbc provider does not support ActiveDirectoryIntegrated authentication
維護者通常 2 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 35/100
- Issue 類型
- 缺陷
- 描述清晰度
- 描述清楚
- 活躍度
- 活躍
- 技術堆疊
- azure, python
研究方向
Start from the reproduction script, which sets mssql_python.native_provider to mssql-odbc and connects with Authentication=ActiveDirectoryIntegrated. Search the provider code for the error text 'Authentication method ActiveDirectoryIntegrated is not yet supported' to find where that auth mode is rejected, then compare it with the working ActiveDirectoryInteractive path. Done when the same connection succeeds on mssql-odbc and the test suite still passes for the other auth modes.
由索引模型根據 Issue 內容生成。
描述
Problem
The opt-in mssql-odbc provider cannot connect when the connection string uses Authentication=ActiveDirectoryIntegrated.
The same connection succeeds with the default msodbcsql18 provider. ActiveDirectoryInteractive and ActiveDirectoryDefault also succeed with mssql-odbc in the same environment.
Environment
- Windows 11 x64, build 26300
- Python 3.13.9
mssql-python==1.16.0mssql-python-rs==0.3.0mssql-python-odbc==18.6.2.2- Target: SQL database in Microsoft Fabric
Reproduction
import mssql_python
mssql_python.native_provider = "mssql-odbc"
connection_string = (
"Server=<server>,1433;"
"Database=<database>;"
"Encrypt=yes;"
"TrustServerCertificate=no;"
"Authentication=ActiveDirectoryIntegrated"
)
conn = mssql_python.connect(connection_string)
Actual result
mssql_python.exceptions.NotSupportedError:
Driver Error: Optional feature not implemented;
DDBC Error: [Microsoft]Authentication method ActiveDirectoryIntegrated is not yet supported
Expected result
mssql-odbc supports ActiveDirectoryIntegrated, matching the default msodbcsql18 provider.
Controls
Using the same Python environment, account, server, and database:
msodbcsql18withActiveDirectoryIntegrated: succeedsmssql-odbcwithActiveDirectoryIntegrated: fails withNotSupportedErrormssql-odbcwithActiveDirectoryInteractive: succeedsmssql-odbcwithActiveDirectoryDefault: succeeds
- 主要語言
- Python
- 星號
- 478
- 分支
- 62
- 平均合併
- 3 天 1 小時
- 30 天內合併 PR
- 26
環境準備
在瀏覽器裡用你自己的 GitHub 帳號啟動這個專案的開發容器。
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
microsoft/mssql-python 的其他 Issue
-
area: bulk-copy triage needed
難度 2/5 1-3 小時 新手友好度 70/100
microsoft/mssql-python#843 · 1 則留言 ·
維護者通常 2 天內回覆
-
triage needed
難度 4/5 3-5 天 新手友好度 22/100
microsoft/mssql-python#849 · 1 則留言 ·
維護者通常 2 天內回覆
-
triage needed
難度 4/5 3-5 天 新手友好度 20/100
microsoft/mssql-python#848 · 1 則留言 ·
維護者通常 2 天內回覆
-
macOS: encrypted connections fail after Homebrew moved the `openssl` alias to `openssl@4`可能已有人在做 @bewithgaurav 於 16 天前認領。 未關閉area: packaging-platform bug triage needed
難度 4/5 3-5 天 新手友好度 55/100
microsoft/mssql-python#826 · 2 則留言 · 已指派 1 人 ·
維護者通常 2 天內回覆
-
Announcement: mssql-python is coming to Django through mssql-django 2.0可能重新可做 @bewithgaurav 於 43 天前認領,目前沒有進行中的 PR。 未關閉announcement
microsoft/mssql-python#748 · 已指派 1 人 ·
維護者通常 2 天內回覆
查看 microsoft/mssql-python 的全部 Issue
相似的 Issue
-
bot-triaged module: LrScheduler module: optimizer triaged
難度 2/5 1-3 小時 新手友好度 70/100
維護者通常 1 天內回覆
-
documentation glm5 llm-model
難度 2/5 1-3 小時 新手友好度 78/100
vllm-project/vllm-ascend#19062 ·
維護者通常 1 天內回覆
-
author-page correction
難度 2/5 1-3 小時 新手友好度 68/100
acl-org/acl-anthology#10496 · 1 則留言 ·
維護者通常 1 天內回覆
-
Issue Type: Bug Report
難度 2/5 1-3 小時 新手友好度 82/100
維護者通常 1 天內回覆
-
enhancement good first issue
難度 2/5 1-3 小時 新手友好度 76/100
SasanLabs/VulnerableApp#836 ·
維護者通常 1 天內回覆