Trusted connection question

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

  1. #1

    Default Trusted connection question

    I have a question on ASP.NET security

    Currently, our ASP apps use a custom COM object to determine
    user's application role, connect to the database using a fixed account, an
    activate the role. All of the app info, role passwords, role memberships, et
    are stored in a SQLServer database which are accessible using a custom ASP
    application. This COM object runs on all of our web servers. This allows us to
    use connection pooling. It works great but takes a little work to get it configured and running
    We are in the process of modifying the component/app to support legacy Oracl
    databases too

    This is similiar to what is recommended in a Microsoft white paper "Building Secur
    ASP.NET Applications"
    >>>>>>>>>>>>>> Excerpt from white paper
    Using Multiple Database Role
    If your application has multiple categories of users, and the users within eac
    category require the same permissions within the database, your application re-quire
    multiple roles
    Each role requires a different set of permissions within the database. For example
    members of an Internet User role may require read-only permissions to the majorit
    of tables within a database, while members of an Administrator or Operator rol
    may require read/write permissions

    Option
    To accommodate these scenarios, you have two main options for role-based authori-zatio
    within SQL Server
    Peter Guest

  2. Similar Questions and Discussions

    1. Trusted sql connection failure
      Hi all I have a asp.net application, developed in Beta 2. It is working fine when the project is stored in a web file system mode. I had to...
    2. ending a trusted connection
      Dear collegues! I have a web application that utilizes integrated securty. So far everything seems to work as intended. There are some...
    3. Not associated with a trusted SQL Server connection
      We are running SQL server 2000 on MS Windows Server 2000. We have web based database (ASP.net and SQL Server 2000). When I run this page with 'sa'...
    4. Newbie Question - "trusted SQL Server connection"
      I am just getting started with ASP.Net. I am attempting to place a dateGrid on a page and I have done all the things I would do in a Windows...
    5. Trusted connection from FoxPro 5.0
      I am trying to create a trusted connection from a FoxPro 5.0 program to a SQL Server 6.5 via a VPN. I need to run an automated process, and of...
  3. #2

    Default Re: Trusted connection question

    I think you're talking about a couple of different things.

    SQL Server Application Roles are invoked from code (similar to your current
    COM object connecting as a set instance), IIRC using sp_set_approle (check
    in SQL Server Books Online). It would be possible for your code to determine
    which SQL Server Role(s) to invoke for a particular user based on some kind
    of lookup table that your application could maintain (or you could store
    this in the directory if you wanted, or where-ever). However, it does
    require a fairly constant set of roles. And, if there's an Oracle
    equivalent, you'd need to write appropriate code to invoke it.

    Another option might be the Authorization Block from Microsoft (which can
    utilise the Authorization Manager that's part of Windows 2003 Server)...

    Cheers
    Ken


    "Peter" <anonymous@discussions.microsoft.com> wrote in message
    news:4561164C-2497-4F55-ACF8-1572F0B0A51E@microsoft.com...
    : I have a question on ASP.NET security.
    :
    : Currently, our ASP apps use a custom COM object to determine a
    : user's application role, connect to the database using a fixed account,
    and
    : activate the role. All of the app info, role passwords, role memberships,
    etc
    : are stored in a SQLServer database which are accessible using a custom ASP
    : application. This COM object runs on all of our web servers. This allows
    us to
    : use connection pooling. It works great but takes a little work to get it
    configured and running.
    : We are in the process of modifying the component/app to support legacy
    Oracle
    : databases too.
    :
    : This is similiar to what is recommended in a Microsoft white paper
    "Building Secure
    : ASP.NET Applications".
    :
    : >>>>>>>>>>>>>> Excerpt from white paper
    : Using Multiple Database Roles
    : If your application has multiple categories of users, and the users within
    each
    : category require the same permissions within the database, your
    application re-quires
    : multiple roles.
    : Each role requires a different set of permissions within the database. For
    example,
    : members of an Internet User role may require read-only permissions to the
    majority
    : of tables within a database, while members of an Administrator or Operator
    role
    : may require read/write permissions.
    :
    : Options
    : To accommodate these scenarios, you have two main options for role-based
    authori-zation
    : within SQL Server:
    : .
    : .
    : .
    : SQL Application Roles. These are similar to user-defined database roles in
    that
    : they are used when you assign permissions to database objects. However,
    unlike
    : user-defined database roles, they do not contain members and are activated
    from
    : individual applications by using a built-in stored procedure.
    : When you use application roles, you check at the gate, map users to roles,
    con-nect
    : to the database using a single, trusted, service identity, and activate
    the
    : appropriate SQL application role.
    : >>>>>>>>>>>>>>>>>>>>>>>
    :
    :
    : Our user's are wondering if, the combination of Active Directory and
    ASP.NET
    : would allow us to retire the current security component/application in
    favour of an all
    : Microsoft offering. Would it provide the flexibility to allow end users
    to add/remove
    : people from an app, like our custom app does ? Would it work with Oracle
    too ?
    :
    : Thanks,
    :
    : ...Peter
    :


    Ken Schaefer 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