Disable windows authentication login

  • hi,

    I'm using sqlserver2005, and i just want to deny access to the windows authentication mode. Is it possible to disable windows authentication.

    thanks,

    🙂

  • The only two options at the global level are Windows Authentication or Mixed Mode (Windows and SQL Server). Unfortunately there is no SQL Server only authentication.

    If you have existing domain logins that you wish to prevent from accessing the server but cannot delete permanently, how about writing something to loop through the syslogins table extracting the names where they start with your domain name, and then run an alter login disable statement for that subset of logins.

  • No, it's not possible.

    But if you didn't grant Windows account access to MSSQL, you'll have only MSSQL logins working on the instance.

    Ensure that BUILTIN\Administrator was removed too.

    ---------------------
    Alex Rosa
    http://www.keep-learning.com/blog

  • Before choosing to remove BUILTIN\Administrator, please be aware that this is the default mechanism used by SQL Server to grant the local admin group SysAdmin privilege to SQL Server. If you remove "BUILTIN\Administrator", you might removed your own access.

    If you choose to remove BUILTIN\Administrator, you need to make sure that either you know the SA password and/or your windows account has been granted SQL Server SysAdmin privilege directly or through another group.

  • With SQL Server 6.5 you could work with SQL Server authentication only, but this feature was taken out when SQL Server 7 was released. Windows Authentication is regarded as more secure then SQL Server authentication, so it brings out the question – why would you want to work only with SQL Server authentication?

    Adi

    --------------------------------------------------------------
    To know how to ask questions and increase the chances of getting asnwers:
    http://www.sqlservercentral.com/articles/Best+Practices/61537/

    For better answers on performance questions, click on the following...
    http://www.sqlservercentral.com/articles/SQLServerCentral/66909/

  • Itz not possible.I think itz better u disable the windows login for that user in the machine.

    [font="Comic Sans MS"]+++BLADE+++[/font]:cool:

  • Why would you need to disable domain authentication? Even though SQL authentication in 2005+ is encrypted, it is still a recommended practice to continue to use Windows Authentication.

  • Could you please specify why do you want to disable the windows authentication!

  • happycat59 (5/3/2009)


    Before choosing to remove BUILTIN\Administrator, please be aware that this is the default mechanism used by SQL Server to grant the local admin group SysAdmin privilege to SQL Server. If you remove "BUILTIN\Administrator", you might removed your own access.

    If you choose to remove BUILTIN\Administrator, you need to make sure that either you know the SA password and/or your windows account has been granted SQL Server SysAdmin privilege directly or through another group.

    I'd be sure you have at least three secure and tested methods to connect to the SQL Server instance before you remove the BUILTIN\Administrator group from the instance.

  • Hi guys,

    It's very important to test the sysadmin connections before remove the BUILTIN\Administrator group, but don't forget that since MSSQL 2005, we have an workaround if the SA password was lost:

    Disaster Recovery: What to do when the SA account password is lost in SQL Server 2005

    http://blogs.msdn.com/raulga/archive/2007/07/12/disaster-recovery-what-to-do-when-the-sa-account-password-is-lost-in-sql-server-2005.aspx

    ---------------------
    Alex Rosa
    http://www.keep-learning.com/blog

  • You can prevent connecting to the server through window authentication without deleting the BUILTIN\Administrators account.

    This can be done in two steps:

    1 Step: Remove the sysadmin server roles for the BUILTIN\Administrators.

    2 Step: deny "permission to connect to the database engine"

Viewing 11 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic. Login to reply