windows authentication

W

wh

I'm having problems setting up a web application up to only allow access to
users in a specific Windows group:

<authentication mode="Windows"/>
<authorization>
<deny users="?"/>
<allow roles="GroupToAllow"/>
<deny users="*"/>
</authorization>

where "GroupToAllow" is the Windows 2000 group containing all users that are
able to access the application.

It appears that I need to specify a domain name as well though no domain
exists as it's on a standalone server. I've tried the following

<allow roles="MACHINENAME\GroupToAllow"/>

but still the same problem.

Is there a solution? If not then I think I can get away checking whether the
user belongs to a Windows 2000 group at runtime in the page_load event
handler though don't know whether this is possible in .NET. Any ideas where
I can start looking?

Wayne.
 
P

Paul Glavich

Try this :-

<authentication mode="Windows"/>
<authorization>
<allow roles="MACHINENAME\GroupToAllow"/>
<deny users="*"/>
</authorization>

- Paul Glavich
 
H

Harry Poulter

I hada similar problem using "User.isInRole" until I used "BUILTIN" as the
domain for local groups, as in "BUILTIN\Group Name". Doesn't seem logical,
since these groups aren't "built in" but are local groups I created, but it
works. Using MACHINENAME did not.


Harry Poulter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top