Skip to content

Added Authentication keyword for ODBC driver#43757

Merged
taylorotwell merged 1 commit into
laravel:9.xfrom
flashmatt:auth-for-sql-server-dsn
Aug 18, 2022
Merged

Added Authentication keyword for ODBC driver#43757
taylorotwell merged 1 commit into
laravel:9.xfrom
flashmatt:auth-for-sql-server-dsn

Conversation

@flashmatt

Copy link
Copy Markdown
Contributor

Existing functionality does not allow the Authentication keyword to be passed into the DSN when connecting to a SQL Server instance. This prevents developers connecting to a SQL Server instance using Azure AD.

Setting the authentication keyword is done by adding the authentication option to the DSN string. Example: "sqlsrv:Server=server;Database=dbname;Authentication=ActiveDirectoryPassword"

References:
Microsoft Guide - Connect via Azure AD Auth
Microsoft connection options documentation

@taylorotwell taylorotwell merged commit 62f40bf into laravel:9.x Aug 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants