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

#1 nhjay   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
ElseIf Page.User.IsInRole("domain1\group2") = True Then
            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   User is offline

  • Suitor #2
  • member icon

Reputation: 14097
  • View blog
  • Posts: 56,497
  • 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