window authentication correction
-
Hi all, i am using window authentication in my asp.net page. In web.config file i am using following authentication mode="Windows" authentication authorization allow roles="Administrators" deny users="*" authorization identity impersonate="true" here tag sign are not written here(because in that case data is not shown here in the forum) but are in present in the web.config, so ignore them here. i want that only the users in 'Administrators' group have access to the application and all other users are denied. But when i run the application then the access of all users are denied including the users in Administrators group. Can u tell me what is wrong in above settings. What should i do to allow access to users of administartors group while deny all others.
-
Hi all, i am using window authentication in my asp.net page. In web.config file i am using following authentication mode="Windows" authentication authorization allow roles="Administrators" deny users="*" authorization identity impersonate="true" here tag sign are not written here(because in that case data is not shown here in the forum) but are in present in the web.config, so ignore them here. i want that only the users in 'Administrators' group have access to the application and all other users are denied. But when i run the application then the access of all users are denied including the users in Administrators group. Can u tell me what is wrong in above settings. What should i do to allow access to users of administartors group while deny all others.
The allow roles should look something like this:
<allow roles="MACHINE_OR_DOMAIN_NAME\Administrators"/>
The bit before the slash in the attribute is the name of the machine or the domain (which ever is relevant) Does this help?
Do you want to know more? WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and Forums
-
The allow roles should look something like this:
<allow roles="MACHINE_OR_DOMAIN_NAME\Administrators"/>
The bit before the slash in the attribute is the name of the machine or the domain (which ever is relevant) Does this help?
Do you want to know more? WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and Forums
yeah , it worked.... thankx