1

I have added the SQL Role Provider and SQL Membership Provider to an existing application and set the authentication mode to Windows. I have created roles, but I cannot add users.

In the Security Tab of Web Site Administration Tool, I search for my user name and get the following:

No users found for this search.

It is my expectation that the tool would search AD for users. Am I supposed to add users to the aspnet_Users table manually? Or is there some key configuration element I'm supposed to set in the Web.config?

Blanthor
  • 2,568
  • 8
  • 48
  • 66

2 Answers2

3

Here is an article by Scott Gu on how to do what you want.

Zachary
  • 6,522
  • 22
  • 34
  • That's a great article! I was a bit surprised to see that I needed to handle this programmatically, but a lot of this was code I wanted to write anyway. – Blanthor Nov 04 '10 at 19:25
1

Forms authentication should be used in order to add users through the WebSite Administration Tool. WHen using Windows authentication new users must be added by creating a new account in ActiveDirectory on the domain.

Gthompson83
  • 1,099
  • 1
  • 8
  • 18