FitTech
@FitTech

Почему получаю cannot authenticate using Kerberos?

Когда пробую подключиться к БД(MS SQL) из проекта(.NET), то получаю ошибку:
Unhandled exception. Microsoft.Data.SqlClient.SqlException (0x80131904): 
Cannot authenticate using Kerberos. 
Ensure Kerberos has been initialized on the client with 'kinit' and a Service Principal Name has been registered for the SQL Server to allow Kerberos authentication.
ErrorCode=InternalError, Exception=Interop+NetSecurityNative+GssApiException: GSSAPI operation failed with error -  An unsupported mechanism was requested (unknown mech-code 0 for mech unknown).


{
  "ConnectionStrings": {
    "MyDb": "Server=localhost,1433;Database=MyDb;Integrated Security=False;User Id=UserName;Password=SomePass;",
  },


Docker:
version: '3.1'
services:
    sqldata:
        image: mcr.microsoft.com/mssql/server:2019-latest
        environment:
            - SA_PASSWORD=SomePass
            - ACCEPT_EULA=Y
        ports:
            - "1433:1433"


Кто-то может сталкивался подскажите, пожалуйста, решение?

p.s Подключение через jdbc:sqlserver://localhost:1433;database= MyDb - работает.
  • Вопрос задан
  • 587 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы