Avatar of dkim18
dkim18
 asked on

Window Authentication using Active Directory security group for ASP.net

Hi,
I am trying to convert my form authentication asp.net web app to window authentication using active directory security.
But it is not working correclty.
Looks like it doesn't how to check against the active directory.

My enrionment is i have a web server and active directory on another server.
I have Depart1Emp and Depart2Emp security groups on the active directory.

Is this all I need to do in my web.config file?
<authorization>
 <deny roles="DomainName\Depart1Emp" />
 <allow roles="DomainName\Depart2Emp" />
</authorization>
 

Do I need to have access to the Active Directory server to check this?
I read several articles but I am not getting this right.
Can you help?
ASP.NETMicrosoft IIS Web Server

Avatar of undefined
Last Comment
dkim18

8/22/2022 - Mon
SOLUTION
SteveDot

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER CERTIFIED SOLUTION
Mlanda T

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
dkim18

ASKER
MlandaT,

That's what I did with IIS & web.config.
But it is not authenticating users correctly.

So I thought I need a user ID & Password to check against the AD server.
I am not adding any users or managing  programmatically.
I'm just checking against this AD security groups.

So what you have is all I need to check against the AD.
This is really weird.

Thanks.
dkim18

ASKER
This win authentication is pretty straight forward and standard but it is not working out for me.
I am just going to close this out.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23