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 Feb 15, 2021
1 parent 0b7b5c8 commit be4c980
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 @@ -300,6 +300,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 be4c980

Please sign in to comment.