SQL Authentication from outside domain

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default SQL Authentication from outside domain

    Hello

    I've read many articles on this subject, but most seem to be concerned
    with integrated security. I'm shooting for basic SQL Authentication

    I have an IIS server on a standalone machine on our network; not part
    of the domain. My ASP.NET application has a connection string to a
    SQL Server on the domain. The connection string uses a login/password
    for a basic SQL Authentication account. Attempting to connect with
    this conn string produces the fabled "SQL server does not exist or
    access denied" error.

    Meanwhile, I am also unable to connect to this SQL server as a locally
    logged in user from Enterprise Manager etc. UNLESS I use Windows
    Explorer to navigate to the SQL Server's file-share, and log in with a
    domain account when prompted. I am then able to connect via
    Enterprise Manager. Magic!

    My understanding is that by logging into the file share with the
    domain account, I am establishing a trust between the standalone
    machine and the domain machine. This allows access to the SQL server
    in the context of the local non-domain user. (Using the same SQL
    Authentication login/password in the conn string)

    The question is, how can I establish this same trust for my ASPNET
    worker process so that it might access the SQL Server with the conn
    string?

    This is only for development purposes, and needn't be the cleanest or
    most secure solution. I would like to avoid adding the IIS machine to
    the domain.

    Thanks for any info or clarification!
    Tony
    Anthony Benbrook Guest

  2. Similar Questions and Discussions

    1. SSLVPN & Domain Authentication
      We are using SSLVPN. When a user connects to the Corporate Network using SSLVPN, they are "authenticated" by virtue of an RSA token and a username....
    2. Forms Authentication Using Domain Controller not Active Directory
      I want to authenticate user using its Domain from Combo box and then giving username and password. Please give me some hint or links or code. i m...
    3. Directory Authentication ignores domain
      I have the following code to authenticate. It works, however I have some question about its robustness The code snipped DirectoryEntry entry =...
    4. WEB FORM --> DOMAIN USER AUTHENTICATION
      Microsoft Knowledge Base Article - 306158 http://support.microsoft.com/default.aspx?scid=kb;en- us;306158] shows a method to impersonate a specific...
    5. single sign-on and domain authentication
      Our organization is in the process of deploying 9iAS/WebForms applications and we would like to somehow integrate these applications into the domain...
  3. #2

    Default Re: SQL Authentication from outside domain

    What type of authentication mode are you using on your SQL Server:
    Integrated Windows? or Mixed Mode?
    What netlib is the ASP.Net application using to connect to the SQL Server?
    TCP/IP? (or something else)?

    Cheers
    Ken

    "Anthony Benbrook" <AnthonyBenbrook@hotmail.com> wrote in message
    news:4ceb9f60.0402110820.60ea0981@posting.google.c om...
    : Hello
    :
    : I've read many articles on this subject, but most seem to be concerned
    : with integrated security. I'm shooting for basic SQL Authentication
    :
    : I have an IIS server on a standalone machine on our network; not part
    : of the domain. My ASP.NET application has a connection string to a
    : SQL Server on the domain. The connection string uses a login/password
    : for a basic SQL Authentication account. Attempting to connect with
    : this conn string produces the fabled "SQL server does not exist or
    : access denied" error.
    :
    : Meanwhile, I am also unable to connect to this SQL server as a locally
    : logged in user from Enterprise Manager etc. UNLESS I use Windows
    : Explorer to navigate to the SQL Server's file-share, and log in with a
    : domain account when prompted. I am then able to connect via
    : Enterprise Manager. Magic!
    :
    : My understanding is that by logging into the file share with the
    : domain account, I am establishing a trust between the standalone
    : machine and the domain machine. This allows access to the SQL server
    : in the context of the local non-domain user. (Using the same SQL
    : Authentication login/password in the conn string)
    :
    : The question is, how can I establish this same trust for my ASPNET
    : worker process so that it might access the SQL Server with the conn
    : string?
    :
    : This is only for development purposes, and needn't be the cleanest or
    : most secure solution. I would like to avoid adding the IIS machine to
    : the domain.
    :
    : Thanks for any info or clarification!
    : Tony


    Ken Schaefer Guest

  4. #3

    Default Re: SQL Authentication from outside domain

    The SQL Server uses Mixed Mode. The login in the connection string is
    a SQL login, not domain.

    As for the netlib, I have tried explicityly setting the Network
    Library attribute of the conn string to dbmssocn (TCP/IP), dbmsrpcn
    (Multiprotocol), and dbnmpntw (Named pipes). All 3 produce the "does
    not exist" error.

    The odd thing is that there are a few other SQL servers on the domain
    that the connection string *will* connect to successfully. But the
    one I want to connect to, as well as another server on the domain,
    produce the error. Even though I am able to establish a connection
    through Enterprise Manager as mentioned before. Could there be a SQL
    Server setting I'm missing?

    Thanks again
    Tony


    "Ken Schaefer" <kenREMOVE@THISadOpenStatic.com> wrote in message news:<O0sbvAR8DHA.2952@TK2MSFTNGP09.phx.gbl>...
    > What type of authentication mode are you using on your SQL Server:
    > Integrated Windows? or Mixed Mode?
    > What netlib is the ASP.Net application using to connect to the SQL Server?
    > TCP/IP? (or something else)?
    >
    > Cheers
    > Ken
    >
    > "Anthony Benbrook" <AnthonyBenbrook@hotmail.com> wrote in message
    > news:4ceb9f60.0402110820.60ea0981@posting.google.c om...
    > : Hello
    > :
    > : I've read many articles on this subject, but most seem to be concerned
    > : with integrated security. I'm shooting for basic SQL Authentication
    > :
    > : I have an IIS server on a standalone machine on our network; not part
    > : of the domain. My ASP.NET application has a connection string to a
    > : SQL Server on the domain. The connection string uses a login/password
    > : for a basic SQL Authentication account. Attempting to connect with
    > : this conn string produces the fabled "SQL server does not exist or
    > : access denied" error.
    > :
    > : Meanwhile, I am also unable to connect to this SQL server as a locally
    > : logged in user from Enterprise Manager etc. UNLESS I use Windows
    > : Explorer to navigate to the SQL Server's file-share, and log in with a
    > : domain account when prompted. I am then able to connect via
    > : Enterprise Manager. Magic!
    > :
    > : My understanding is that by logging into the file share with the
    > : domain account, I am establishing a trust between the standalone
    > : machine and the domain machine. This allows access to the SQL server
    > : in the context of the local non-domain user. (Using the same SQL
    > : Authentication login/password in the conn string)
    > :
    > : The question is, how can I establish this same trust for my ASPNET
    > : worker process so that it might access the SQL Server with the conn
    > : string?
    > :
    > : This is only for development purposes, and needn't be the cleanest or
    > : most secure solution. I would like to avoid adding the IIS machine to
    > : the domain.
    > :
    > : Thanks for any info or clarification!
    > : Tony
    Anthony Benbrook Guest

  5. #4

    Default Re: SQL Authentication from outside domain

    Well...nevermind.

    The guy running the SQL server "jiggled the wires" of SQL's network
    settings and it suddenly started working over TCP/IP.

    Beats me.
    Anthony Benbrook Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139