Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

mssql-odbc provider does not support ActiveDirectoryIntegrated authentication

Aperta
#846 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
azure, python

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
Python
Stelle
478
Fork
62
Merge medio
3g 19m
PR unite (30g)
28

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoft/mssql-python

Tutte le issue di microsoft/mssql-python

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.