Forum Discussion

Nei_Bala's avatar
Nei_Bala
Copper Contributor
Sep 28, 2022

How Get Application name in a Login Failure

 

Group

 

      How could I get the name of an application, in a login failure, by SQL Server.

      Where normally the error code would be

 

Login failed for user '(???)'. Reason: Password did not match that for the login provided. [CLIENT: <local machine>]
Error: 18456, Severity: 14, State: 8.

7 Replies

    • Nei_Bala's avatar
      Nei_Bala
      Copper Contributor

      bake13 

           

      This as I would need at the end (+/-) to know the password that would be incorrect, even if it is in a format ( hash / hex or something like that ), it can be a way, so that after I have the password, I can upload the user with this password and try to get the script after execution.
      To check which script could be there, I have a connection problem, even before getting to its execution.

       

      Example : As if it were an old process of an application with an old password that has not been updated to the current password.

       

      See based on the script below, where I was able to identify the name of the application, but so far I could not identify the password.


      https://www.mssqltips.com/sqlservertip/2581/sql-server-error-18456-finding-the-missing-databases/

       

      • olafhelper's avatar
        olafhelper
        Bronze Contributor
        You can not get the application name in the error message, and even if, anyone can "fake" the app name within the connection string.
        And it is not possible to get a password in clear text.

        Olaf

Resources