Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

mssql-odbc provider does not support ActiveDirectoryIntegrated authentication

オープン
#846 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
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 の本文から書いたものです。

説明

triage needed

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.0
  • mssql-python-rs==0.3.0
  • mssql-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:

  • msodbcsql18 with ActiveDirectoryIntegrated: succeeds
  • mssql-odbc with ActiveDirectoryIntegrated: fails with NotSupportedError
  • mssql-odbc with ActiveDirectoryInteractive: succeeds
  • mssql-odbc with ActiveDirectoryDefault: succeeds
主要言語
Python
スター
478
フォーク
62
平均マージ
3日 19分
マージ済み PR(30日)
28

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/mssql-python のほかの issue

microsoft/mssql-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。