Linux server > NTLM Authentication via PDO

Shaun Gorneau 0 Reputation points
2024-12-14T17:46:33.5433333+00:00

I have a situation where I must establish a SQL Server connection from a linux box using PHP.

I have the correct Microsoft ODBC driver installed, but I'm unsure how to configure the PDO connection to make use of NTLM authentication.

SQL Server Other
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
    2024-12-15T16:52:55.1933333+00:00

    You don’t use Ntlm, but rather Kerberos. You would use the knint to get the token. Linux only supports one Kerberos user at a time.

    https://learn.microsoft.com/en-us/azure-data-studio/enable-kerberos?tabs=ubuntu

    note: on a mac just use the ticket viewer app to login.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.