diff --git a/sql_server/pyodbc/base.py b/sql_server/pyodbc/base.py index bcc1104..224a0ba 100644 --- a/sql_server/pyodbc/base.py +++ b/sql_server/pyodbc/base.py @@ -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'