개발자의 백팩

[SQL]Login failed. The login is from an untrusted domain and cannot be used with Windows authentication. 에러 해결책 본문

Network

[SQL]Login failed. The login is from an untrusted domain and cannot be used with Windows authentication. 에러 해결책

gunnoooow 2018. 11. 27. 11:28

SQL 서버에 연결이 안되는 경우가 발생했다


다양한 해결책들을 시도해보았지만 번번히 실패했다.


1. SQL구성관리자에서 TCP 항목을 사용안함에서 사용으로 바꿔라

2. SQL management 에서 데이터베이스에서 > 속성 > 보안 > Window인증을 SQL 및 WIndow혼합 인증으로 바꿔라

3. 명령프롬프트창에서 netsh 리셋시키는 명령어를 입력해라.. 등등


찾아 헤메던중 SQL management master db의 로그인 로그를 뽑아서 왜 안되는지 찾아보았다


Login failed. The login is from an untrusted domain and cannot be used with Windows authentication. [클라이언트: x.x.x.x] 


SSPI handshake failed with error code 0x8009030c, state 14 while establishing a connection with integrated security; the connection has been closed. Reason: AcceptSecurityContext가 실패했습니다. Windows 오류 코드는 오류 원인을 나타냅니다. 로그온하지 못했습니다. [클라이언트: x.x.x.x]


위와같은 에러가 같이 발생하는데 필자는 첫번째 에러가 발생했었다. 


해결책은 레지스트리를 추가 해주는 것이다.



경로는 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa 에서


오른쪽 마우스를 클릭해서 새로 추가해주면된다.


값 이름은 DisableLoopbackCheck 나머지는 아래의 그림과 동일하게 데이터와 단위를 맞추면 된다.



'Network' 카테고리의 다른 글

[SQL]로그 확인하기  (0) 2018.11.27