Skip to content

Commit

Permalink
UID needs to be set in connection string, so set default
Browse files Browse the repository at this point in the history
  • Loading branch information
kummerer94 committed Apr 23, 2020
1 parent efa7b7d commit 868bd2d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sql_server/pyodbc/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ def get_new_connection(self, conn_params):
if auth:
cstr_parts['Authentication'] = auth
if auth == 'ActiveDirectoryInteractive':
cstr_parts.setdefault('UID', '')
cstr_parts.pop('PWD', '')
cstr_parts['Trusted_Connection'] = 'no'

Expand Down

0 comments on commit 868bd2d

Please sign in to comment.