Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I want one intranet address, www.myintranet.com to be used for every member in the company. There are two main groups, employees and contractors. I want to use the same IP address and the same name, but I want to redirect it to a different page based on AD group membership. IIS is the platform. Is there any way to do this?

share|improve this question
1  
What version of IIS are you using? It's best to do this in your application logic. –  squillman Aug 16 '12 at 15:55
add comment

1 Answer 1

You will probably be better off doing this in your application code. Enable Integrated Windows Authentication to your application, which will allow your code to get the logon user.

Then, in code, you will need to check if that logon user is a member of a group that you care about; if so you will want to redirect to that group's folder, if not you will want to show a generic page.

If your intranet app is built in ASP.NET, you should be able to get the user's groups from the Request.LogonUserIdentity.Groups collection and perform the redirect with Response.Redirect("path/to/folder");.

There may be a third-party HttpModule that you could install into IIS to do this for you (so you wouldn't have to write the code yourself) but I've not worked with any.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.