SSMS and Active Directory Authentication doesn't work with Azure SQL and non-Azure SQL









up vote
0
down vote

favorite












So we have Azure AD synced with our on-premise domain. We have an Azure SQL Server configured with the active directory admin. We also have a non Azure SQL server running on a virtual machine in Azure that is domain joined to this same domain. The following are the results of using the various authentication mechanisms offered by SQL Management Studio (SSMS). Can someone explain why the failures occur with the various options that should be supported?



Facts about environment:



  • Passthrough authentication is the sign-in method configured on AD Connect

  • Password hash sync is also enabled so password hashes are stored in Azure AD

  • Azure SQL is configured with Active Directory admin

  • Latest version of SSMS was downloaded when performing these test

  • On premise account was used to test all scenarios

Domain joined client connecting to Azure SQL from SSMS



  • Active Directory Password (PASS)

  • Active Directory Universal (PASS)

  • Windows Integrated (FAIL - not supported by Azure SQL)

  • Active Directory Integrated (FAIL – see error below)

Failure when client is standard domain joined client
enter image description here



Failure when client is Azure domain joined client
enter image description here



Domain joined client connecting to non-Azure SQL hosted on same domain



  • Active Directory Integrated (PASS)

  • Windows Integrated (PASS)

  • Active Directory Password (FAIL – Login failed for user ‘’)

  • Active Directory Universal (FAIL – Login failed for user ’’)

enter image description here










share|improve this question

























    up vote
    0
    down vote

    favorite












    So we have Azure AD synced with our on-premise domain. We have an Azure SQL Server configured with the active directory admin. We also have a non Azure SQL server running on a virtual machine in Azure that is domain joined to this same domain. The following are the results of using the various authentication mechanisms offered by SQL Management Studio (SSMS). Can someone explain why the failures occur with the various options that should be supported?



    Facts about environment:



    • Passthrough authentication is the sign-in method configured on AD Connect

    • Password hash sync is also enabled so password hashes are stored in Azure AD

    • Azure SQL is configured with Active Directory admin

    • Latest version of SSMS was downloaded when performing these test

    • On premise account was used to test all scenarios

    Domain joined client connecting to Azure SQL from SSMS



    • Active Directory Password (PASS)

    • Active Directory Universal (PASS)

    • Windows Integrated (FAIL - not supported by Azure SQL)

    • Active Directory Integrated (FAIL – see error below)

    Failure when client is standard domain joined client
    enter image description here



    Failure when client is Azure domain joined client
    enter image description here



    Domain joined client connecting to non-Azure SQL hosted on same domain



    • Active Directory Integrated (PASS)

    • Windows Integrated (PASS)

    • Active Directory Password (FAIL – Login failed for user ‘’)

    • Active Directory Universal (FAIL – Login failed for user ’’)

    enter image description here










    share|improve this question























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      So we have Azure AD synced with our on-premise domain. We have an Azure SQL Server configured with the active directory admin. We also have a non Azure SQL server running on a virtual machine in Azure that is domain joined to this same domain. The following are the results of using the various authentication mechanisms offered by SQL Management Studio (SSMS). Can someone explain why the failures occur with the various options that should be supported?



      Facts about environment:



      • Passthrough authentication is the sign-in method configured on AD Connect

      • Password hash sync is also enabled so password hashes are stored in Azure AD

      • Azure SQL is configured with Active Directory admin

      • Latest version of SSMS was downloaded when performing these test

      • On premise account was used to test all scenarios

      Domain joined client connecting to Azure SQL from SSMS



      • Active Directory Password (PASS)

      • Active Directory Universal (PASS)

      • Windows Integrated (FAIL - not supported by Azure SQL)

      • Active Directory Integrated (FAIL – see error below)

      Failure when client is standard domain joined client
      enter image description here



      Failure when client is Azure domain joined client
      enter image description here



      Domain joined client connecting to non-Azure SQL hosted on same domain



      • Active Directory Integrated (PASS)

      • Windows Integrated (PASS)

      • Active Directory Password (FAIL – Login failed for user ‘’)

      • Active Directory Universal (FAIL – Login failed for user ’’)

      enter image description here










      share|improve this question













      So we have Azure AD synced with our on-premise domain. We have an Azure SQL Server configured with the active directory admin. We also have a non Azure SQL server running on a virtual machine in Azure that is domain joined to this same domain. The following are the results of using the various authentication mechanisms offered by SQL Management Studio (SSMS). Can someone explain why the failures occur with the various options that should be supported?



      Facts about environment:



      • Passthrough authentication is the sign-in method configured on AD Connect

      • Password hash sync is also enabled so password hashes are stored in Azure AD

      • Azure SQL is configured with Active Directory admin

      • Latest version of SSMS was downloaded when performing these test

      • On premise account was used to test all scenarios

      Domain joined client connecting to Azure SQL from SSMS



      • Active Directory Password (PASS)

      • Active Directory Universal (PASS)

      • Windows Integrated (FAIL - not supported by Azure SQL)

      • Active Directory Integrated (FAIL – see error below)

      Failure when client is standard domain joined client
      enter image description here



      Failure when client is Azure domain joined client
      enter image description here



      Domain joined client connecting to non-Azure SQL hosted on same domain



      • Active Directory Integrated (PASS)

      • Windows Integrated (PASS)

      • Active Directory Password (FAIL – Login failed for user ‘’)

      • Active Directory Universal (FAIL – Login failed for user ’’)

      enter image description here







      sql-server azure-sql-database azure-active-directory






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 9 at 20:59









      Geekn

      291314




      291314






















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          0
          down vote













          This issue may be related with the AD Syncing options. Verify in your environment that AD is not syncing passwords into the tenant. This prevents AD Integration Authentication and AD Password Authentication. The only authentication that works on these cases is AD Universal Authentication, as your test shows.






          share|improve this answer




















          • AD Connect sign-in method is set to passthrough authentication, but AD Connect is also syncing password hashes as well in case on-premise is not reachable and we need to manually switch to password sync. Password hash sync was also necessary because passthrough authentication does not currently work when trying to RDP into azure virtual machines in which case it will use the password hash stored in Azure AD. We are going to try and change the sign-in method to password hash and see if this changes out outcomes. Weird that results differ based on weather or not it's an Azure SQL instance.
            – Geekn
            Nov 9 at 22:55










          • Please consider also what Mirek is saying. It could also be related to the ADAL library in use. An old ADASQL.dll.
            – Alberto Morillo
            Nov 10 at 3:05

















          up vote
          0
          down vote













          It looks to me that his is an ADAL problem (WSTrust) related to network configuration. Please create a support case and work with the support team to solve this problem






          share|improve this answer




















            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53233203%2fssms-and-active-directory-authentication-doesnt-work-with-azure-sql-and-non-azu%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            This issue may be related with the AD Syncing options. Verify in your environment that AD is not syncing passwords into the tenant. This prevents AD Integration Authentication and AD Password Authentication. The only authentication that works on these cases is AD Universal Authentication, as your test shows.






            share|improve this answer




















            • AD Connect sign-in method is set to passthrough authentication, but AD Connect is also syncing password hashes as well in case on-premise is not reachable and we need to manually switch to password sync. Password hash sync was also necessary because passthrough authentication does not currently work when trying to RDP into azure virtual machines in which case it will use the password hash stored in Azure AD. We are going to try and change the sign-in method to password hash and see if this changes out outcomes. Weird that results differ based on weather or not it's an Azure SQL instance.
              – Geekn
              Nov 9 at 22:55










            • Please consider also what Mirek is saying. It could also be related to the ADAL library in use. An old ADASQL.dll.
              – Alberto Morillo
              Nov 10 at 3:05














            up vote
            0
            down vote













            This issue may be related with the AD Syncing options. Verify in your environment that AD is not syncing passwords into the tenant. This prevents AD Integration Authentication and AD Password Authentication. The only authentication that works on these cases is AD Universal Authentication, as your test shows.






            share|improve this answer




















            • AD Connect sign-in method is set to passthrough authentication, but AD Connect is also syncing password hashes as well in case on-premise is not reachable and we need to manually switch to password sync. Password hash sync was also necessary because passthrough authentication does not currently work when trying to RDP into azure virtual machines in which case it will use the password hash stored in Azure AD. We are going to try and change the sign-in method to password hash and see if this changes out outcomes. Weird that results differ based on weather or not it's an Azure SQL instance.
              – Geekn
              Nov 9 at 22:55










            • Please consider also what Mirek is saying. It could also be related to the ADAL library in use. An old ADASQL.dll.
              – Alberto Morillo
              Nov 10 at 3:05












            up vote
            0
            down vote










            up vote
            0
            down vote









            This issue may be related with the AD Syncing options. Verify in your environment that AD is not syncing passwords into the tenant. This prevents AD Integration Authentication and AD Password Authentication. The only authentication that works on these cases is AD Universal Authentication, as your test shows.






            share|improve this answer












            This issue may be related with the AD Syncing options. Verify in your environment that AD is not syncing passwords into the tenant. This prevents AD Integration Authentication and AD Password Authentication. The only authentication that works on these cases is AD Universal Authentication, as your test shows.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Nov 9 at 22:12









            Alberto Morillo

            6,1371616




            6,1371616











            • AD Connect sign-in method is set to passthrough authentication, but AD Connect is also syncing password hashes as well in case on-premise is not reachable and we need to manually switch to password sync. Password hash sync was also necessary because passthrough authentication does not currently work when trying to RDP into azure virtual machines in which case it will use the password hash stored in Azure AD. We are going to try and change the sign-in method to password hash and see if this changes out outcomes. Weird that results differ based on weather or not it's an Azure SQL instance.
              – Geekn
              Nov 9 at 22:55










            • Please consider also what Mirek is saying. It could also be related to the ADAL library in use. An old ADASQL.dll.
              – Alberto Morillo
              Nov 10 at 3:05
















            • AD Connect sign-in method is set to passthrough authentication, but AD Connect is also syncing password hashes as well in case on-premise is not reachable and we need to manually switch to password sync. Password hash sync was also necessary because passthrough authentication does not currently work when trying to RDP into azure virtual machines in which case it will use the password hash stored in Azure AD. We are going to try and change the sign-in method to password hash and see if this changes out outcomes. Weird that results differ based on weather or not it's an Azure SQL instance.
              – Geekn
              Nov 9 at 22:55










            • Please consider also what Mirek is saying. It could also be related to the ADAL library in use. An old ADASQL.dll.
              – Alberto Morillo
              Nov 10 at 3:05















            AD Connect sign-in method is set to passthrough authentication, but AD Connect is also syncing password hashes as well in case on-premise is not reachable and we need to manually switch to password sync. Password hash sync was also necessary because passthrough authentication does not currently work when trying to RDP into azure virtual machines in which case it will use the password hash stored in Azure AD. We are going to try and change the sign-in method to password hash and see if this changes out outcomes. Weird that results differ based on weather or not it's an Azure SQL instance.
            – Geekn
            Nov 9 at 22:55




            AD Connect sign-in method is set to passthrough authentication, but AD Connect is also syncing password hashes as well in case on-premise is not reachable and we need to manually switch to password sync. Password hash sync was also necessary because passthrough authentication does not currently work when trying to RDP into azure virtual machines in which case it will use the password hash stored in Azure AD. We are going to try and change the sign-in method to password hash and see if this changes out outcomes. Weird that results differ based on weather or not it's an Azure SQL instance.
            – Geekn
            Nov 9 at 22:55












            Please consider also what Mirek is saying. It could also be related to the ADAL library in use. An old ADASQL.dll.
            – Alberto Morillo
            Nov 10 at 3:05




            Please consider also what Mirek is saying. It could also be related to the ADAL library in use. An old ADASQL.dll.
            – Alberto Morillo
            Nov 10 at 3:05












            up vote
            0
            down vote













            It looks to me that his is an ADAL problem (WSTrust) related to network configuration. Please create a support case and work with the support team to solve this problem






            share|improve this answer
























              up vote
              0
              down vote













              It looks to me that his is an ADAL problem (WSTrust) related to network configuration. Please create a support case and work with the support team to solve this problem






              share|improve this answer






















                up vote
                0
                down vote










                up vote
                0
                down vote









                It looks to me that his is an ADAL problem (WSTrust) related to network configuration. Please create a support case and work with the support team to solve this problem






                share|improve this answer












                It looks to me that his is an ADAL problem (WSTrust) related to network configuration. Please create a support case and work with the support team to solve this problem







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 9 at 22:29









                MirekS

                1




                1



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53233203%2fssms-and-active-directory-authentication-doesnt-work-with-azure-sql-and-non-azu%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Kleinkühnau

                    Makov (Slowakei)

                    Deutsches Schauspielhaus