Hi,
Could you please help us to understand the root cause with the below error,
Please note, we have this issues when we enabled Kerberos authentication to SAS Studio environment(running on windows with SAS 9.4 M8). It was working fine before Kerberos implementation.
73 libname SQLXXX01 SQLSVR datasrc=SQLXXX01 schema=abc;
ERROR: CLI error trying to establish connection: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Login failed for user 'NT
AUTHORITY\ANONYMOUS LOGON'. : [Microsoft][ODBC Driver 17 for SQL Server]Invalid connection string attribute
ERROR: Error in the LIBNAME statement.
Please check that your SQL Server is using NT authentication or SA authentication.
Where do you provide the DB user account and password to set up the library before the Kerberos implementation?
Thanks, that makes sense. Our SAS application server and SQL Server are indeed hosted on different machines, so I’ve requested the AD team to delegate the required SPNs to the service account running the Object Spawner. I’ll share an update once I hear back from them.
Everything else seems to be in place, since Kerberos authentication is already working successfully from SAS Studio and the backend SAS services. It looks like only the database side was missing the required configuration.
I do have one additional question: If you can assist me, we also connect to other databases such as Oracle and PostgreSQL through ODBC drivers on different servers. Should we expect a similar Kerberos delegation requirement for those, or is this issue specific to SQL Server? So far, no one has reported authentication problems with Oracle or PostgreSQL, so I’m not entirely sure whether Kerberos is involved for those connections in our SAS environment.
This got fix as you suggested, thanks for help.
The SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment.
Learn how to explore data assets, create new data discovery agents, schedule data discovery agents, and much more.
Find more tutorials on the SAS Users YouTube channel.