troubleshooting Question

Windows Authentication on an intranet website

Avatar of Tonysieu
Tonysieu asked on
Programming.NET ProgrammingVisual Basic.NET
7 Comments1 Solution290 ViewsLast Modified:

I am deploying a website on IIS 7 that requires windows authentication (this is to be used on an intranet only). We would like the authentication to occur using the logged in user's Windows login without the user's input, i.e. when the user navigates to the site, we want to be able to authenticate against Active Directory to check if the logged in user is in a particluar group, but we don't want the pop-up asking for the username and password to appear.

I have most of it working, I just can't find a way to supress the windows authentication pop-up.

Is this even possible?

In IIS 7 I have set Windows Authentication to enabled, is there anything else I need to do?

In my Web.config I have:

<authentication mode="Windows" />

In my class I have:

If User.IsInRole("DOMAIN\GroupName") Then
            Response.Write(User.Identity.Name.ToString & " Is in role")
            Response.Write(User.Identity.Name.ToString & " Is NOT in role")
 End If

Any help is greatly appreciated!

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 7 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros