i have an asp.net application that uses windows authentication.
i installed IIS server 5.1 on my xp machine and it works great with the win authorization; however, i am unable to use "roles" because for some reason it does not synchronize with the active directory and i dont know how to get it to synchronize.
do you know what kind of configuration/settings i need for IIS to synchronize with the AD? when i go into the Web Site Administration Tool and look at the roles and users in roles in shows me no users. i did create the security groups in AD and added users to them but i do not see them in the Web Site Administration Tool.
thanks so much for your guidance.
i am currently getting this error:
Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS1061: 'ASP.default_aspx' does not contain a definition for 'SqlDataSource1_Selecting' and no extension method 'SqlDataSource1_Selecting' accepting a first argument of type 'ASP.default_aspx' could be found (are you missing a using directive or an assembly reference?) Source Error: Line 143: </ItemTemplate> Line 144: – I__ 12 mins ago
</asp:FormView> Line 145: <asp:SqlDataSource ID="SqlDataSource1" runat="server" Line 146: ConnectionString="<%$ ConnectionStrings:qcvalues_testConnectionString %>" Line 147: SelectCommand="SELECT * FROM [batchinfo]" Source File: c:\Documents and Settings\agordon\My Documents\Visual Studio 2008\Projects\EnterData\EnterData\Default.aspx Line: 145 – I__
i did follow joel's advice and did this:
<roleManager enabled="true"
defaultProvider="AspNetWindowsTokenRoleProvider"/>
If you've gotten Windows Authentication to work then the connection to the active directory is working just fine. The configuration point that you're probably missing is the roles provider that belongs in the web.config:
This should also give you immediate access to the groups a user is a member of through the roles by calling the following methods:
Here is the MSDN article that discusses the incorporation of windows authentication into an asp.net site "out of the box".
http://msdn.microsoft.com/en-us/library/ff647405.aspx