Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

mssql-odbc provider does not support ActiveDirectoryIntegrated authentication

Đang mở
#846 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
azure, python
Lĩnh vực
authentication, database

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
Python
Star
478
Fork
62
Merge trung bình
3 ngày 19 phút
Pull request đã merge (30 ngày)
28

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoft/mssql-python

Tất cả issue của microsoft/mssql-python

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.