1 Replies - 1562 Views - Last Post: 22 August 2013 - 06:37 AM Rate Topic: -----

#1 nhjay  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 06-May 13

vb.net web form cross domain authentication errors

Posted 22 August 2013 - 05:02 AM

Hi Everyone,

I wasn't sure if it best to post this in the vb.net forum as that's what I'm using or asp.net, please move as appropriate.

I have a simple web form application that should be redirecting users to specific pages based on their active directory global group membership.

We have 3 regional AD domains with 2 global groups in domain1, each of those groups contains a collection of members from all three domains.

The members that have their accounts in domain1, the same where the groups reside, authenticate properly. Group members in domains 2 and 3 receive 401 errors.

I'm still learning so I'm probably missing something simple, below is my code, using Windows Authentication on IIS 7.5, .NET 4.0.


Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load

        If My.User.IsAuthenticated Then

            If Page.User.IsInRole("domain1\group1") = True Then
                Response.Redirect("~/admin/default.aspx")
            
ElseIf Page.User.IsInRole("domain1\group2") = True Then
Response.Redirect("~/support/default.aspx")
            
Else
                
                Response.Redirect("~/default.aspx")
            End If
End If
    End Sub




Is This A Good Question/Topic? 0
  • +

Replies To: vb.net web form cross domain authentication errors

#2 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 9081
  • View blog
  • Posts: 34,127
  • Joined: 12-June 08

Re: vb.net web form cross domain authentication errors

Posted 22 August 2013 - 06:37 AM

Moving to ASP.NET.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1