473,503 Members | 12,791 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

<allow users=""> question

is it possible to add a bunch of users to group and only allow group to
access the web page or do I need to add each user to the web.config file?

Or is there another way to do this?
I just took over a project and most of the web sites have users defined in
the web.config file that can access the site. Now users come and go so this
config file is always being modified. Could I just add the users to a group
and only allow that group, or would a Active Directory /LDAP path work better?

May 24 '07 #1
18 4740
On May 24, 9:52 pm, Tom <T...@discussions.microsoft.comwrote:
is it possible to add a bunch of users to group and only allow group to
access the web page or do I need to add each user to the web.config file?
yes, sure

Specify the "roles" property when configuring <denyand <allow>
elements, as shown here:

<authorization>
<allow roles="DomainName\WindowsGroup" />
<deny users="DomainName\UserName" />
</authorization>

http://msdn2.microsoft.com/en-us/library/acsd09b0.aspx
http://msdn2.microsoft.com/en-us/library/ms998358.aspx

May 24 '07 #2
when I do that I'm prompted for an ID and pwd. I don't want to the prompt to
pop up for each user.

"Alexey Smirnov" wrote:
On May 24, 9:52 pm, Tom <T...@discussions.microsoft.comwrote:
is it possible to add a bunch of users to group and only allow group to
access the web page or do I need to add each user to the web.config file?

yes, sure

Specify the "roles" property when configuring <denyand <allow>
elements, as shown here:

<authorization>
<allow roles="DomainName\WindowsGroup" />
<deny users="DomainName\UserName" />
</authorization>

http://msdn2.microsoft.com/en-us/library/acsd09b0.aspx
http://msdn2.microsoft.com/en-us/library/ms998358.aspx

May 25 '07 #3
On May 25, 1:04 pm, Tom <T...@discussions.microsoft.comwrote:
when I do that I'm prompted for an ID and pwd. I don't want to the prompt to
pop up for each user.
Something is wrong. When you typed the login and password, does it
work?

May 25 '07 #4
no, I enter it in 3 times then it takes me to an error page: 'you are unable
to view this page'.

I even have a web site were I have:
<identity impersonate="true" userName="myDomain\testuser" password="1235"/>
in the web.config file and Im prompted for a username and pwd and even when
I type in the username and pwd i get the samething. 'you are able to view
this page'

I thought I had a typo so I tried just a username and samething.
I dont' want the username and pwd prompt at all.
"Alexey Smirnov" wrote:
On May 25, 1:04 pm, Tom <T...@discussions.microsoft.comwrote:
when I do that I'm prompted for an ID and pwd. I don't want to the prompt to
pop up for each user.

Something is wrong. When you typed the login and password, does it
work?

May 25 '07 #5
On May 25, 5:54 pm, Tom <T...@discussions.microsoft.comwrote:
no, I enter it in 3 times then it takes me to an error page: 'you are unable
to view this page'.

I even have a web site were I have:
<identity impersonate="true" userName="myDomain\testuser" password="1235"/>
in the web.config file and Im prompted for a username and pwd and even when
I type in the username and pwd i get the samething. 'you are able to view
this page'
Okay, let's try to find what's wrong there. I've just tested it on my
remote server box and that's working well without prompting me for
password.

1. Why do you set impersonation? Do you need it?

2. Which Authentication method is used in IIS? Properties -
Dir.Security - Auth.Control - Edit

3. Which Authentication mode is used in web.config?

May 25 '07 #6
1. Why do you set impersonation? Do you need it?
Not sure, I just came on board for the project. not sure

2. Which Authentication method is used in IIS? Properties -
Dir.Security - Auth.Control - Edit:
the only thing checked here is 'Integrated Windows Auth.

3. Which Authentication mode is used in web.config?
<authentication mode="Windows"/>
and this is set as well:
identity impersonate="true" userName="domain\username"
password="1234"/>

and every time I hit the site I'm prompted for an ID and password.

not sure if this makes a difference or not but, under IIS application pools,
I have a appPool for my web site and I have the identiy set to
'domain\username" and the 1234 password, and I'm still challenged.

any suggestions?

"Alexey Smirnov" <al************@gmail.comwrote in message
news:11*********************@u30g2000hsc.googlegro ups.com...
On May 25, 5:54 pm, Tom <T...@discussions.microsoft.comwrote:
>no, I enter it in 3 times then it takes me to an error page: 'you are
unable
to view this page'.

I even have a web site were I have:
<identity impersonate="true" userName="myDomain\testuser"
password="1235"/>
in the web.config file and Im prompted for a username and pwd and even
when
I type in the username and pwd i get the samething. 'you are able to view
this page'

Okay, let's try to find what's wrong there. I've just tested it on my
remote server box and that's working well without prompting me for
password.

1. Why do you set impersonation? Do you need it?

2. Which Authentication method is used in IIS? Properties -
Dir.Security - Auth.Control - Edit

3. Which Authentication mode is used in web.config?

May 25 '07 #7
On May 25, 8:08 pm, "Mike" <whyamih...@gmail.comwrote:
1. Why do you set impersonation? Do you need it?
Not sure, I just came on board for the project. not sure
Okay, I guess you don't need it :-) With impersonation ASP.NET Web
application would access the file system using as the user "myDomain
\testuser". Maybe this is the reason of a login prompt. Either remove
that section, or set

<identity impersonate="false" />

More about impersonation
http://msdn2.microsoft.com/en-us/library/aa292118.aspx

Now, try to set

<authorization>
<allow users="*"/>
<authorization>

Make sure that your account has access

Set up an access rule for specific group (your user must be a member
of that group)

<authorization>
<allow roles="DOMAIN\group"/>
<deny users="*"/>
<authorization>

See what happens

May 25 '07 #8
Tom
still prompted for ID and Password.

"Alexey Smirnov" <al************@gmail.comwrote in message
news:11*********************@w5g2000hsg.googlegrou ps.com...
On May 25, 8:08 pm, "Mike" <whyamih...@gmail.comwrote:
> 1. Why do you set impersonation? Do you need it?
Not sure, I just came on board for the project. not sure

Okay, I guess you don't need it :-) With impersonation ASP.NET Web
application would access the file system using as the user "myDomain
\testuser". Maybe this is the reason of a login prompt. Either remove
that section, or set

<identity impersonate="false" />

More about impersonation
http://msdn2.microsoft.com/en-us/library/aa292118.aspx

Now, try to set

<authorization>
<allow users="*"/>
<authorization>

Make sure that your account has access

Set up an access rule for specific group (your user must be a member
of that group)

<authorization>
<allow roles="DOMAIN\group"/>
<deny users="*"/>
<authorization>

See what happens

May 25 '07 #9
Tom
still prompted,
what would happen if I set ther username and password under:

IIS -->website --properties --directory security --Edit

and add the username and pwd I want my site to run under as?

would that work for the impersonation or no?

"Alexey Smirnov" <al************@gmail.comwrote in message
news:11*********************@w5g2000hsg.googlegrou ps.com...
On May 25, 8:08 pm, "Mike" <whyamih...@gmail.comwrote:
> 1. Why do you set impersonation? Do you need it?
Not sure, I just came on board for the project. not sure

Okay, I guess you don't need it :-) With impersonation ASP.NET Web
application would access the file system using as the user "myDomain
\testuser". Maybe this is the reason of a login prompt. Either remove
that section, or set

<identity impersonate="false" />

More about impersonation
http://msdn2.microsoft.com/en-us/library/aa292118.aspx

Now, try to set

<authorization>
<allow users="*"/>
<authorization>

Make sure that your account has access

Set up an access rule for specific group (your user must be a member
of that group)

<authorization>
<allow roles="DOMAIN\group"/>
<deny users="*"/>
<authorization>

See what happens

May 25 '07 #10
Tom
I also gave my domain ID access to every folder for .net just to see if that
was an issue.

web site folder
asp.net temp files folder
and still prompted
"Alexey Smirnov" <al************@gmail.comwrote in message
news:11*********************@w5g2000hsg.googlegrou ps.com...
On May 25, 8:08 pm, "Mike" <whyamih...@gmail.comwrote:
> 1. Why do you set impersonation? Do you need it?
Not sure, I just came on board for the project. not sure

Okay, I guess you don't need it :-) With impersonation ASP.NET Web
application would access the file system using as the user "myDomain
\testuser". Maybe this is the reason of a login prompt. Either remove
that section, or set

<identity impersonate="false" />

More about impersonation
http://msdn2.microsoft.com/en-us/library/aa292118.aspx

Now, try to set

<authorization>
<allow users="*"/>
<authorization>

Make sure that your account has access

Set up an access rule for specific group (your user must be a member
of that group)

<authorization>
<allow roles="DOMAIN\group"/>
<deny users="*"/>
<authorization>

See what happens

May 25 '07 #11
On May 25, 8:46 pm, "Tom" <whyamih...@gmail.comwrote:
I also gave my domain ID access to every folder for .net just to see if that
was an issue.

web site folder
asp.net temp files folder

and still prompted
wait... still prompted with <allow roles="DOMAIN\group"/>

or with an access for everyone?

<authorization>
<allow users="*"/>
<authorization>

Sorry, but it was unclear for me

May 25 '07 #12
Tom
if I have this:
<allow roles="DOMAIN\group"/>
I'm prompted for username and password
if i have this:
<authorization>
<allow users="myDomain\testuser"/>
<authorization>

I'm prompted for username and password

if i have this:
<identity impersonate="true" userName="myDomain\testuser" password="1235"/>

again prompted for username and password.

no matter what I have i'm prompted for username and password
"Alexey Smirnov" <al************@gmail.comwrote in message
news:11**********************@h2g2000hsg.googlegro ups.com...
On May 25, 8:46 pm, "Tom" <whyamih...@gmail.comwrote:
>I also gave my domain ID access to every folder for .net just to see if
that
was an issue.

web site folder
asp.net temp files folder

and still prompted

wait... still prompted with <allow roles="DOMAIN\group"/>

or with an access for everyone?

<authorization>
<allow users="*"/>
<authorization>

Sorry, but it was unclear for me

May 25 '07 #13
On May 25, 9:37 pm, "Tom" <whyamih...@gmail.comwrote:
>
if i have this:
<identity impersonate="true" userName="myDomain\testuser" password="1235"/>
Please, switch the impersonation off, otherwise we will never never
find an answer ;-)

Using impersonation, ASP.NET executes using the identity of the user
userName. As I understood your initial question, you need to allow a
group to access the web page. And this can be done without
impersonation.

>
no matter what I have i'm prompted for username and password
Should I understand it that you don't have the access at all?

Even with "allow users to everyone"?

<authorization>
<allow users="*"/>
<authorization>

What I want to understand is your current configuration. As I told
you, I did a test with two users today and allow roles rule in the
web.config. It took me about 2 min to get stuff working

May 25 '07 #14
Tom
I have to do both. I need impersonation on for some web apps and some I can
have off.But I need both options and both working and no prompts for the
username and password if impresonation = true
"Alexey Smirnov" <al************@gmail.comwrote in message
news:11**********************@p77g2000hsh.googlegr oups.com...
On May 25, 9:37 pm, "Tom" <whyamih...@gmail.comwrote:
>>
if i have this:
<identity impersonate="true" userName="myDomain\testuser"
password="1235"/>

Please, switch the impersonation off, otherwise we will never never
find an answer ;-)

Using impersonation, ASP.NET executes using the identity of the user
userName. As I understood your initial question, you need to allow a
group to access the web page. And this can be done without
impersonation.

>>
no matter what I have i'm prompted for username and password

Should I understand it that you don't have the access at all?

Even with "allow users to everyone"?

<authorization>
<allow users="*"/>
<authorization>

What I want to understand is your current configuration. As I told
you, I did a test with two users today and allow roles rule in the
web.config. It took me about 2 min to get stuff working

May 25 '07 #15
On May 26, 12:09 am, "Tom" <m...@gmail.comwrote:
I have to do both. I need impersonation on for some web apps and some I can
have off.But I need both options and both working and no prompts for the
username and password if impresonation = true"Alexey Smirnov" <alexey.smir...@gmail.comwrote in message
Okay, I understand it.

Back to my question: do you have a login prompt having <allow
users="*"/?

May 25 '07 #16
Tom
no I don't. only if I specify a user at

<allow users="domain\testuser" />
and
<identity impersonate="true" userName="myDomain\testuser"
password="1235"/>

I'm prompted for and id and pwd with the above 2 configurations only.

If I have
<allow users="*"/I'm not prompted.


"Alexey Smirnov" <al************@gmail.comwrote in message
news:11*********************@g4g2000hsf.googlegrou ps.com...
On May 26, 12:09 am, "Tom" <m...@gmail.comwrote:
>I have to do both. I need impersonation on for some web apps and some I
can
have off.But I need both options and both working and no prompts for the
username and password if impresonation = true"Alexey Smirnov"
<alexey.smir...@gmail.comwrote in message

Okay, I understand it.

Back to my question: do you have a login prompt having <allow
users="*"/?

May 29 '07 #17
On May 29, 1:15 pm, "Tom" <whyamih...@gmail.comwrote:
no I don't. only if I specify a user at

<allow users="domain\testuser" />
and
<identity impersonate="true" userName="myDomain\testuser"
password="1235"/>

I'm prompted for and id and pwd with the above 2 configurations only.

If I have
<allow users="*"/I'm not prompted.
Hi Tom,

try to follow this document in MSDN
http://msdn2.microsoft.com/en-us/library/ms998358.aspx

Hope it helps to find your problem

Cheers!
May 29 '07 #18
I know this thread is a bit old, but it does not look like there was
ever a resolution.

One thing that popped to mind for me as to why you might still see a
login window for name and password when you have windows authentication
is if you are using a browser other than IE.

So far, IE is the only browser that allows complete pass-through
authenticated access using kerberos and/or NT authentication.

In my experience, all other browsers that even allow it, generally
require you to send username and password in basic authentication style.

Hope this helps

*** Sent via Developersdex http://www.developersdex.com ***
Dec 3 '07 #19

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
13049
by: Gregory | last post by:
Hello, I'm trying to do the above in order to process an image and return the result to an html image control. It fails and my key suspects are either the variable that I'm passing in -...
10
60683
by: Dieter Salath? | last post by:
Hi, in our webpage, a user could open a windows explorer to his temp directory with a simple link and usage of the file protocol: <a href="file://C:\temp" target="_blank">C:\temp</a> This...
2
8096
by: Laermans_k | last post by:
Hi, Does anyone have a solution to use the <input type="file" id="filechooser"> and the <input type="submit" id="submitbutton"> in 1 button click? I've already tried to create a javascript...
2
5342
by: Murphy | last post by:
Our website contains subdirectories for each subsidiary company, each company has it's own look and feel to the pages in their subdirectory although they are all part of the main website. The...
1
4767
by: Menno Abbink | last post by:
Hey All, I'm developing a new website and I want the customer to be able to se my work in progress so I have set up a server behind my ADSL-router. The server is using W2003. I've created a...
7
2697
by: samuelberthelot | last post by:
Hi, I have the following in my asp page: <% response.write(Header) %> where Header contains HTML markup such ass <html> <body> .... I must write the code in the aspx file and not in the...
19
2816
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - I have <a href="javascript:somefunction()"what ... ?...
23
2944
by: Stanimir Stamenkov | last post by:
I want to find out whether the following usage of the "Bookmark" link type is o.k. An example could be seen at <http://www.geocities.com/stanio/more/horoskop.html>. The text is in Bulgarian and...
0
7212
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7470
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5604
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5026
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4696
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3186
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3174
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1524
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
405
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.