question on windows auth

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

  1. #1

    Default question on windows auth

    Hi
    I am working on an intranet application. I am using windows integrated authentication. Now since the authentication is done by active directory can I use a specified user name and password in my connection string and not SSPI? You see I created a user/login in sql server with minimum privledges

    Thanks
    chris Guest

  2. Similar Questions and Discussions

    1. Forms Auth Info passed to Windows Auth?
      The requirement is to build an ASP.Net intranet application, so external users can log in to the main web portal via forms authentication, using...
    2. ASP.NET 2.0 - Windows Auth and Roles
      Is it possible to use Windows authentication and the builtin role provider in ASP.NET 2 Beta 2? The intranet app I'm developing uses Windows...
    3. Configuring Windows Auth & Forms Auth in Asp.Net
      Configuring Windows Auth & Forms Auth in Asp.Ne Hi, I've configured a web app to use windows authentication and also set up two separate...
    4. Windows Auth Problem
      We're having a problem where our application is timing out after 60 minutes no matter what type of activity is occuring. A user can be in the...
    5. Windows Auth, MUST change password
      If a user's password expires or an admin otherwise set the "user must change password" flag it appears that a user can no longer access the web...
  3. #2

    Default Re: question on windows auth

    Yes, and no.

    The connection to SQL Server needs to be in the context of the calling user.
    If you are using Windows Auth, that doesn't mean you need to use
    impersonation of the authenticating user. You can have ASP.NET impersonate a
    fixed identity instead (i.e. the fixed user you granted permissions in SQL
    Server).

    The easiest way to do this is just to set the <identity impersonate="true"
    user="" password="" /> section in web.config.

    Cheers
    Ken

    "chris" <anonymous@discussions.microsoft.com> wrote in message
    news:A866CBB1-1BFA-4A57-B263-3DDCB6BE9A75@microsoft.com...
    : Hi,
    : I am working on an intranet application. I am using windows integrated
    authentication. Now since the authentication is done by active directory can
    I use a specified user name and password in my connection string and not
    SSPI? You see I created a user/login in sql server with minimum privledges.
    :
    : Thanks


    Ken Schaefer Guest

  4. #3

    Default Re: question on windows auth

    i think you have created user/login in sql server to provide access to set
    of objects (giving read/exec permissions right).
    but do that only if your functionality demands. in this case you will not be
    utilizing benefits of connection pooling.

    use only one identity to connect to sql server.

    Av.

    "chris" <anonymous@discussions.microsoft.com> wrote in message
    news:A866CBB1-1BFA-4A57-B263-3DDCB6BE9A75@microsoft.com...
    > Hi,
    > I am working on an intranet application. I am using windows integrated
    > authentication. Now since the authentication is done by active directory
    > can I use a specified user name and password in my connection string and
    > not SSPI? You see I created a user/login in sql server with minimum
    > privledges.
    >
    > Thanks

    avnrao 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