Hacktoberfest 2026 : les issues que les mainteneurs ont marquées pour octobre, ouvertes et accessibles aux débutants. Parcourir les issues Hacktoberfest

mssql-odbc provider does not support ActiveDirectoryIntegrated authentication

Ouverte
#846 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 2 jours

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
35/100
Type d'issue
Bug
Clarté
Clairement spécifiée
Activité
Active
Stack technique
azure, python

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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
Langage dominant
Python
Étoiles
478
Forks
62
Merge moyen
3 j 19 min
PR mergées (30 j)
28

Préparer son environnement

Ouvrir dans Codespaces

Lance le conteneur de développement du projet dans votre navigateur, avec votre propre compte GitHub.

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de microsoft/mssql-python

Toutes les issues de microsoft/mssql-python

Issues similaires

Plus d'issues Python

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.