Im using ASP 2.0
As a simple demonstration i would like to do the following:
if username has permission then
response.write(secure stuff)
else
response.write("")
end if
Determining whether that user has permission is the part i want to be able
to do. For instance get a list of the users in the ContactAdmin Active
Directory group, and compare the currently logged in user to see if he is in
the list. If he is then he has permission in the above code.
I hope that makes a little more sense!
--
Mark
:
It depends on how you implement your menu. Are you planning to use the
ASP.NET 2.0 navigation objects or regular ASP.NET 1.x techniques?
For ASP.NET 2.0 you may read this article from the QuickStart Tutorials:
http://66.129.71.130/QuickStartv20/aspnet/doc/navigation/sitenavapi.aspx#security
The Personal Web Site Starter Kit is a good demonstration. You can create
one by selecting File->new->Website->Personal Web Site Starter Kit.
In one implementation using ASP.NET 1.x I had the menu entries saved in a
database (where each record stores the roles to which this menu item is
available). There are 2 aspects to handle: 1) the display of the menu item,
2) the access authority to the folder or file where the menu item is linked.
--
[note: if this post answers your question, you can mark it as an answer
using the web-based newsreader functions]
-----
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com
:
How would i go about using windows authentication to determine whether
someone was in a active directory group, and if they were the page would
display something different.
For instance, when someone goes to my default.asp page, only people within
the "ContactAdmins" group would see the admin links, and other people would
not!
Please help me!