Results 1 to 5 of 5

Thread: how do i produce a web application that can...

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2002
    Location
    England
    Posts
    9

    Question how do i produce a web application that can...

    how do i produce a web application that can be configured to limit access to specified users, limiting access to a Windows Group, membership of which can be maintained by the system administrator??

    bernie

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    You can use System.Security.Principal.IsInRole to find out if a user is in a certain Windows Group. You have to use WindowsAuthentication mode for it to work.

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2002
    Location
    England
    Posts
    9
    i a very new to all things vb, i have a database table called tblLogin and am using web.config and global.asax files that an example told me to use.

    global.asax:
    <%@ Import Namespace="System.Net" %>
    <script runat="server">
    Sub Session_OnStart()
    Session("conClasf") = _
    "Data Source=localhost;Integrated Security=SSPI;" & _
    "Initial Catalog=DB"
    Try
    Session("hostname") = _
    Dns.GetHostByAddress(Request.UserHostAddress).HostName
    Catch ex As Exception
    Session("hostname") = Request.UserHostAddress
    End Try
    End Sub
    </script>

    web.config:
    <configuration>
    <system.web>
    <customErrors mode="Off"/>
    <authentication mode="Forms">
    <forms loginUrl="login.aspx" name=".AUTHCOOKIE" protection="All" timeout="300"/>
    </authentication>
    <authorization>
    <allow users="*,?"/>
    </authorization>
    <compilation>
    <assemblies>
    <add assembly="CrystalDecisions.CrystalReports.Engine, Version=9.1.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
    <add assembly="CrystalDecisions.ReportSource, Version=9.1.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
    <add assembly="CrystalDecisions.Shared, Version=9.1.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
    <add assembly="CrystalDecisions.Web, Version=9.1.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
    </assemblies>
    </compilation>
    </system.web>
    <location path="reg">
    <system.web>
    <authorization>
    <deny users="?"/>
    </authorization>
    </system.web>
    </location>
    </configuration>

    what will i need to change,
    do you know of any walk throughs???

  4. #4

  5. #5

    Thread Starter
    New Member
    Join Date
    Aug 2002
    Location
    England
    Posts
    9
    thanks, will look at those and get back to you if i have any problems tomorrow, but as i am in the UK, it might be a little early for you

Posting Permissions

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



Click Here to Expand Forum to Full Width