Windows authentication and SqlRoleProvider

M

matsla

Hi all,

Is it possible to use SqlRoleProvider with windows authentication?

I've tried the Web Site Administration Tool to enable windows
authentication and SqlRoleProvider. When i try to add a user to a
created role i'm not able to see any windows account.

I've tried the WindowsTokenRoleProvider without any problem but i'd
like to store the roles on the sql server and use
User.IsInRole("aRole")

Thanks in advance!

// Mats
 
D

Dominick Baier [DevelopMentor]

yes thats possible, but the web admin tool won't help here

you have to call AddUserToRole manually for every windows account...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,814
Latest member
SpicetreeDigital

Latest Threads

Top