Authentication IIS / ASP.NET - Problem

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

  1. #1

    Default Authentication IIS / ASP.NET - Problem

    1) I have an intranet .
    <Directory>Intranet
    with <Subdirctory>admin
    and <Subdirctory>database with an accessdatabase (data.mdb)

    I have 2 NT-Groups
    a) NT-Group "read" can read data in all directories
    b) NT-Group "change" can read and write data in all directories

    Only the group "change" should be allowed to change data in data.mdb
    The files for changing data are in the <subdirctory>admin

    2) I am only using Windows-Authentication in IIS
    3) In ASP.NET I use authentication mode="Windows"

    This is my web.config:

    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
    <appSettings>
    <add key="ConnectionString1"
    value="Provider=Microsoft.Jet.OLEDB.4.0;" />
    <add key="ConnectionString2" value="_datenbank/daten.mdb" />
    </appSettings>
    <system.web>
    <compilation defaultLanguage="vb" debug="true" />
    <customErrors mode="Off" />
    <authentication mode="Windows" />
    </system.web>
    </configuration>

    With this configuration I thought only the group "change" can change
    date in the Access-database, but other users from the group "read" can
    change Data too !

    Why? Do you have any solution ?

    Thanks
    aaapaul


    P.S.: Is it a problem with the user ASPNET ? Does he access the
    database - Had I to change the connectionstring ? - Integrated
    Security = sspi etc. ?
    aaapaul Guest

  2. Similar Questions and Discussions

    1. Authentication problem
      I have the following web method: <WebMethod()> _ Public Function Test_CurrentCredentials() As String() Dim tmpArr(2) As String tmpArr(0) =...
    2. web.config and authentication problem.
      Hello there! I have developed a .net web application. In which I am having some .aspx files and a web.config file. All the files are in same...
    3. http authentication problem
      if ((!isset( $PHP_AUTH_USER )) || (!isset($PHP_AUTH_PW))) { header( 'WWW-Authenticate: Basic realm="Private"' ); header( 'HTTP/1.0 401...
    4. Problem with Forms Authentication
      I have an application using FormsAuthentication that does not persist the authentication cookie beyond the session so each time a user starts a...
    5. What problem is this (regarding Authentication Mode)?
      Server Error in '/' Application. ---------------------------------------------------------------------------- ---- Configuration Error...
  3. #2

    Default Re: Authentication IIS / ASP.NET - Problem

    This is probably because of ASP.NET impersonation.
    The code which reads/writes data is actually run by aspnet_wp.exe which is
    running as "ASPNET" or "SYSTEM" user. If impersonation is disabled (that is
    the deafult and probably your case), the process will use its own
    credentials to obtain access to the needed resources.
    If impersonation is enabled, aspnet_wp uses the credentials of the user
    which is impersonating to access resources.

    To enable/disable impersonation, you only need to add an <identity /> tag
    within the <system.web> tag of your web.config file. There are three
    possible solutions:
    1) <identity impersonate="false" > : the default
    2) <identity impersonate="true" > : in this case the impersonated identity
    is that of the logged remote user
    3) <identity impersonate="true" userName="domain\goofy" password="minnie">:
    in this case the impersonated identity is Goofy's!

    So, try to use 2 and it shoul work fine.

    Hi, Alessandro.

    P.S: I hope my english will work ..

    "aaapaul" <paul.kasparbauer@vit.linhardt.com> ha scritto nel messaggio
    news:9de0b61f.0310310050.72e025ba@posting.google.c om...
    > 1) I have an intranet .
    > <Directory>Intranet
    > with <Subdirctory>admin
    > and <Subdirctory>database with an accessdatabase (data.mdb)
    .....
    > P.S.: Is it a problem with the user ASPNET ? Does he access the
    > database - Had I to change the connectionstring ? - Integrated
    > Security = sspi etc. ?

    AlKa 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