PC Review


Reply
Thread Tools Rate Thread

<allow users=""> question

 
 
=?Utf-8?B?VG9t?=
Guest
Posts: n/a
 
      24th May 2007
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?

 
Reply With Quote
 
 
 
 
Alexey Smirnov
Guest
Posts: n/a
 
      24th May 2007
On May 24, 9:52 pm, Tom <T...@discussions.microsoft.com> wrote:
> 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 <deny> and <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

 
Reply With Quote
 
=?Utf-8?B?VG9t?=
Guest
Posts: n/a
 
      25th May 2007
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.com> wrote:
> > 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 <deny> and <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
>
>

 
Reply With Quote
 
Alexey Smirnov
Guest
Posts: n/a
 
      25th May 2007
On May 25, 1:04 pm, Tom <T...@discussions.microsoft.com> wrote:
> 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?



 
Reply With Quote
 
=?Utf-8?B?VG9t?=
Guest
Posts: n/a
 
      25th May 2007
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.com> wrote:
> > 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?
>
>
>
>

 
Reply With Quote
 
Alexey Smirnov
Guest
Posts: n/a
 
      25th May 2007
On May 25, 5:54 pm, Tom <T...@discussions.microsoft.com> wrote:
> 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?

 
Reply With Quote
 
Mike
Guest
Posts: n/a
 
      25th May 2007
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> On May 25, 5:54 pm, Tom <T...@discussions.microsoft.com> wrote:
>> 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?
>



 
Reply With Quote
 
Alexey Smirnov
Guest
Posts: n/a
 
      25th May 2007
On May 25, 8:08 pm, "Mike" <whyamih...@gmail.com> wrote:
> 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

 
Reply With Quote
 
Tom
Guest
Posts: n/a
 
      25th May 2007
still prompted for ID and Password.



"Alexey Smirnov" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> On May 25, 8:08 pm, "Mike" <whyamih...@gmail.com> wrote:
>> 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
>



 
Reply With Quote
 
Tom
Guest
Posts: n/a
 
      25th May 2007
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> On May 25, 8:08 pm, "Mike" <whyamih...@gmail.com> wrote:
>> 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
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"Safely remove hardware" not shown in "Users" vs "Domain Users" grouped user SE Windows XP General 3 22nd Nov 2006 09:02 AM
Quick question about the "all users" local profile dev_prog@freemail.com.au Windows XP Setup 0 26th Jul 2006 04:07 AM
"Allow users to connect remotely to this computer" checkbox and "Select Remote Users..." button are both disabled in "Remote" tab R. G. Windows XP Work Remotely 2 8th Apr 2004 07:24 PM
Adding common "Favorites" for "All Users" or "Default Users" TonyAdmin Microsoft Windows 2000 New Users 0 6th Jan 2004 09:59 PM
question on case in "ad users and computers" Joe Richards [MVP] Microsoft Windows 2000 Active Directory 3 12th Jul 2003 06:52 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:12 AM.